Technical test David Campoy#50
Open
kmpoy wants to merge 3 commits into
Open
Conversation
| 1. How can we improve face detection by adding **reidentification** to anonymize only specific individuals while keeping computational cost low? | ||
| In general, to reduce the computational cost of any ML model one can reduce the model size (e.g. a model with less parameters/layers, use quantization, etc.). However, this could reduce the model accuracy if not done properly. | ||
|
|
||
| To maintain precision while reducing computational cost, we can run our face detection model at the very first frame, extract the detected face embeddings, compare them againts a "face gallery", and if the similarity is above a threshold, then anonymize. In the following frames, we can implement a face tracker to follow the faces in the video (e.g. by using a Kalman filter) and re-run the face detection + reidentification model every 5-10-15 frames (depending on how fast people move, or triggered by a tracker confidence drop). This way we can recenter (if needed) the centroid of the already detected faces and detect new ones. This strategy creates a tradeoff between computational cost and face detection speed, but it can be resolved at an optimal point where computational cost is reduced by a factor 10x with equivalent performance. |
Contributor
There was a problem hiding this comment.
Kalman Filter review
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.
Answers are written in separate files named "answers_DC.md", one for each Q1 and Q2.