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.88k stars 1.33k forks source link

Warning: No faces were detected. #265

Closed JOST777 closed 3 years ago

JOST777 commented 3 years ago

I'm wondering if it would make sense to make this an actual warning instead of a print call. My work flow involves processing many images where only a fraction contain faces, so its inconvenient to print a line every time that happens. Maybe there is a recommended pre-screening procedure? But even then, I think I would still want to suppress the message in the event that it did happen.

1adrianb commented 3 years ago

Agree, this makes sense to me. Feel free to make a pull request if you prefer. If not I can adjust it this week.