Skip to content

Commit

Permalink
Merge pull request PaddlePaddle#1536 from RainFrost1/cherrpy_pic
Browse files Browse the repository at this point in the history
[CherryPick]fix augmix bug
  • Loading branch information
cuicheng01 authored Dec 9, 2021
2 parents 164994f + 54188b9 commit 0aeca3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ppcls/data/preprocess/ops/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def __call__(self, image):
np.random.beta(self.aug_prob_coeff, self.aug_prob_coeff))

# image = Image.fromarray(image)
mix = np.zeros([image.shape[1], image.shape[0], 3])
mix = np.zeros(image.shape)
for i in range(self.mixture_width):
image_aug = image.copy()
image_aug = Image.fromarray(image_aug)
Expand Down

0 comments on commit 0aeca3f

Please sign in to comment.