-
Notifications
You must be signed in to change notification settings - Fork 1
Remove dlib for performance improvements #1
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
base: master
Are you sure you want to change the base?
Conversation
WeixuanZ
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Face detection works great, but cropping seems to be a bit dodgy now with more accurate detection
@FChippendale could you have a look
fyi I changed the defaults here: if it can't detect a face it'll set the entire image as a bounding box. We can revert this (with some other fix) if it messes with your assumptions in the cropping stage. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn’t copy secrets into the container - on production the env variables will be set in run config, while locally this will be explicitly passed into docker run command through Makefile variable substitution
Related to 9133f98
Ah I missed that commit; let me rebase this branch on master to include it. What happens when |
DLib and imutils were very slow for high resolution images and required a large build on the initial installation. Fortunately, at this resolution, `cv2.dnn` was ~4x faster, more accurate and already install with opencv. Alternatively, I have provided `FaceDetectorCascade` which uses `c2v.CascadeClassifier`. Although this is less accurate than dlib, I have found that it is much faster at the required resolutions.
- The Makefile runs yack in dev mode, because we want http locally. - Dockerfile only copies required files to the container image. - docker run called with --rm; there's no reason for the container to persist.
9cf3af2 to
1cb41c0
Compare
4695fd3 to
aae889c
Compare
In my tests,
cv2.dnnis faster and more accurate than dlib (seeFaceDetectorDNN). I've also addedFaceDetectorCascadefor faster but less accurate face detection.Please check that
requirements.txtwon't break production