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

about data preprocessing #4

Closed
woody-panda opened this issue Sep 19, 2022 · 2 comments
Closed

about data preprocessing #4

woody-panda opened this issue Sep 19, 2022 · 2 comments

Comments

@woody-panda
Copy link

Thanks for sharing the code. I'm new to FAS and would be very grateful if you could give me some data preprocessing details.

  1. According to the paper, the FAS model and framework are frame-based, right? In preprocessing, is it necessary to extract frames from the video? Then crop out the face from each frame? How many frames are extract from each video?
@CHELSEA234
Copy link
Owner

Thanks to your comments. :)
Yes. Most FAS models are frame-based, except for a few works that takes videos (e.g., a few consecutive frames) as input. In my opinion, you have to extract frames given videos, and this is just one line of code using OpenCV; Cropping the face with bounding box, you can go with the off-the-shelf tools, such as RetinaFace and MTCNN.

@tangwudu
Copy link

You will just use original cropped face or any padding based on face bounding box?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants