deepcam-cn / yolov5-face

YOLO5Face: Why Reinventing a Face Detector (https://arxiv.org/abs/2105.12931) ECCV Workshops 2022)
GNU General Public License v3.0
2.06k stars 497 forks source link

fix clamp range #288

Open azizmousa opened 3 months ago

azizmousa commented 3 months ago

the expected range of the boxes and the landmarks should be between the range of [0, img_shape - 1] to avoid out of range exception when we try to access the landmarks later.

Changes to be committed: modified: test_widerface.py modified: utils/general.py