Page 1 of 1

Skip specific face due to multiple faces existence in single frame

Posted: Sat Apr 09, 2022 9:42 am
by brianw0924

Their are some frames that have multiple faces.

I found that the face I want is always detected first (so the index is video_name_xxxx_0.png)

and I want to skip other faces in this frame (only save 1 image per frame)

For now, I just manually modify the "extract.py" code to skip the saving iteration if the idx != 0

I'm wondering if there is an argument to fix this problem. I have tried --skip-existing, but it requires alignment file.


Re: Skip specific face due to multiple faces existence in single frame

Posted: Sat Apr 09, 2022 5:12 pm
by torzdf

Your assertion is incorrect, I'm afraid. The index number of the face you want is entirely arbitrary. There is no guarantee that the face you want will be index 0.

The easiest and quickest way is definitely just to let the process extract all faces, then use sort by face so you can delete all the faces you don't want.

See here for more info:
viewtopic.php?t=27#sort