Skip to content

Commit

Permalink
skip copy bboxes in horizontal flip augmentation for speedup (#606)
Browse files Browse the repository at this point in the history
  • Loading branch information
developer0hye committed Aug 28, 2021
1 parent 40bde39 commit 3571419
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion yolox/data/data_augment.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ def _mirror(image, boxes, prob=0.5):
_, width, _ = image.shape
if random.random() < prob:
image = image[:, ::-1]
boxes = boxes.copy()
boxes[:, 0::2] = width - boxes[:, 2::-2]
return image, boxes

Expand Down

0 comments on commit 3571419

Please sign in to comment.