Fix: Resolves No face detected issue and Improves face detection reliability for low-resolution and blurry videos#15
Open
Aditi0522 wants to merge 2 commits intoruxailab:mainfrom
Open
Conversation
Author
|
@jvJUCA Kindly review the PR when free and if this doesn't align with the future goals of the organization, I would be happy to close it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
This PR improves the robustness of the face detection pipeline used for emotion analysis. The previous implementation occasionally failed to detect faces in low-resolution or blurry videos, resulting in logs showing "no face detected" for many frames. To address this, the face detection model has been updated and preprocessing improvements have been introduced.
Key Changes:
1. Switched face detector to SCRFD
Replaced the existing detector with SCRFD, which provides stronger performance for challenging conditions such as:
SCRFD offers a good balance between accuracy and computational cost.
2. Model selection reasoning
3. Frame preprocessing improvements
4. Improved detection success rate
These changes significantly reduce cases where the pipeline logs "no face detected", especially in:
low-quality recordings
compressed videos
distant subjects
Impact:
Testing:
Tested with:
Face detection now works consistently across these scenarios.
Closes #4