serengil / retinaface

RetinaFace: Deep Face Detection Library for Python
https://www.youtube.com/watch?v=Wm1DucuQk70&list=PLsS_1RYmYQQFdWqxQggXHynP1rqaYXv_E&index=3
MIT License
1.15k stars 150 forks source link

detect_faces image preprocessing? #96

Closed utility-aagrawal closed 5 months ago

utility-aagrawal commented 5 months ago

Hi,

I see that images are upscaled before running them through the model in detect_faces(). Why is that so? My understanding is that retinaface expects input image of 640 x 640 but that's not what images are upscaled to? Can you please explain the reasoning behind the upscaling?

Thanks!

serengil commented 5 months ago

Hi,

As I added comments into the source code, that logic is copied from another repo. TBH, I do not know the reason behind it.

utility-aagrawal commented 5 months ago

No problem, Thanks for your response! Let me see if they can answer it.