Paperspace / DataAugmentationForObjectDetection

Data Augmentation For Object Detection
https://blog.paperspace.com/data-augmentation-for-bounding-boxes/
MIT License
1.13k stars 318 forks source link

Bug in clip_box function #9

Open txytju opened 5 years ago

txytju commented 5 years ago

in clip_box function, if x1<x2 or y1<y2 is not true, a area wil still be returned, but there is no box.

ghost commented 3 years ago

Because annotations are in form (x1, y1, x2, y2); x1, y1 require to < x2, y2

Thanks.