[Fix]: fix random flipping ratio compare of mixup image (#9336)

pull/9435/head
Motoki Kimura 3 years ago committed by GitHub
parent 91f47c5ca0
commit 2c82b7ed1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      mmdet/datasets/pipelines/transforms.py

@ -2366,7 +2366,7 @@ class MixUp:
retrieve_img = retrieve_results['img']
jit_factor = random.uniform(*self.ratio_range)
is_filp = random.uniform(0, 1) > self.flip_ratio
is_filp = random.uniform(0, 1) < self.flip_ratio
if len(retrieve_img.shape) == 3:
out_img = np.ones(

Loading…
Cancel
Save