Skip to content

Commit

Permalink
fix(data): remove the restriction of the valid box size (#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joker316701882 committed Aug 27, 2021
1 parent 05b20c8 commit 57ec302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yolox/data/data_augment.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def __call__(self, image, targets, input_dim):
boxes = xyxy2cxcywh(boxes)
boxes *= r_

mask_b = np.minimum(boxes[:, 2], boxes[:, 3]) > 8
mask_b = np.minimum(boxes[:, 2], boxes[:, 3]) > 1
boxes_t = boxes[mask_b]
labels_t = labels[mask_b]

Expand Down

0 comments on commit 57ec302

Please sign in to comment.