Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter to limit the number of faces in the scene #7

Open
OndraZizka opened this issue Mar 3, 2021 · 2 comments
Open

Parameter to limit the number of faces in the scene #7

OndraZizka opened this issue Mar 3, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@OndraZizka
Copy link

OndraZizka commented Mar 3, 2021

Sometimes there's a scene with a fixed number of people.
So there is an assumption they each have 1 face.

deface --facesCount=3

This would reduce the blurred regions to just the 3 top candidates.

By having such parameter, the false positives could be reduced.

@mdraw
Copy link
Member

mdraw commented Apr 6, 2021

Good idea 👍 A maximum setting would be easy to implement, something like:

  • --max-faces=k: Face detection candidates are sorted by their scores and only the top k candidates are selected. Does nothing if there are less than k candidates.

Instead of implementing a setting for the or exact number of expected faces (if such a need arises), I would rather recommend setting the --thresh to a very low number (0.1 or 0.05 - smaller numbers slow down inference too much) and setting --max-faces to the expected number of hits.

Would you like to implement this? Otherwise I'll work on it myself in the near future.

@OndraZizka
Copy link
Author

OndraZizka commented Jun 14, 2021

Yes, exactly.
I could have a look at implementing it, but first around autumn this year. So, if "near future" is before that, you'll be quicker.
Thanks!

@mdraw mdraw added the enhancement New feature or request label Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants