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.04k stars 497 forks source link

landmarks calculation #12

Closed eeric closed 3 years ago

eeric commented 3 years ago

in yolov5-face/utils/loss.py: the 169th, 170th:

landmarks loss

        plandmarks = ps[:,5:15].sigmoid() * 8. - 4.

why landmarks multiply 8 and minus 4?

derronqi commented 3 years ago

image