1adrianb / face-alignment

:fire: 2D and 3D Face alignment library build using pytorch
https://www.adrianbulat.com
BSD 3-Clause "New" or "Revised" License
6.94k stars 1.33k forks source link

Detector fails for this high resolution image #169

Closed weltonrodrigo closed 4 years ago

weltonrodrigo commented 4 years ago

https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/gettyimages-840637904-1537901994.jpg

Detector fails for this image. It work if the image is resized.

1adrianb commented 4 years ago

@weltonrodrigo The variant of the s3fd included is not run across multiple scales as such very large images may have their faces omitted. Furthermore this may also lead to an out of memory error. As an workaround you can either (1) resize the image, (2) detect the faces offline and just pass their location or (3) incorporate a better/faster face detection method.

weltonrodrigo commented 4 years ago

Changed the title just for the sake of google.

eyaler commented 3 years ago

can you give some thumb rules for acceptable image sizes?

livefire2015 commented 3 years ago

can you give some thumb rules for acceptable image sizes?

Just from my test: image sizes no bigger than 256x256 px work fine.