-
Notifications
You must be signed in to change notification settings - Fork 792
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
EFSR-885 gender age plugins #281
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ |
59f4b80
to
6bdcede
Compare
19a29b4
to
c895943
Compare
f1028fa
to
c7126c4
Compare
c7126c4
to
27df431
Compare
27df431
to
0a6aa79
Compare
0ea6696
to
3d81d75
Compare
@@ -2,7 +2,7 @@ tags: | |||
- Core | |||
summary: 'Find faces in the given image and return their bounding boxes.' | |||
description: 'Returns bounding boxes of detected faces on the image.' | |||
operationId: scanFacesPost | |||
operationId: findFacesPost |
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.
Is this swagger file? Then I don't see descriptions of gender and age plugins
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.
It's just a fix of wrong name. Swagger description updated in PR #302
ml_models = ( | ||
# links from https://github.com/davidsandberg/facenet#pre-trained-models | ||
# VGGFace2 training set, 0.9965 LFW accuracy | ||
('20180402-114759', 'https://drive.google.com/uc?id=1EXPBSXwTaqrSC0OhUdXNmKSh9qJUQ55-'), |
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.
Are this models stored on our google drive? If not - let's put them to our google drive
IMG_LENGTH_LIMIT = ENV.IMG_LENGTH_LIMIT | ||
class FaceDetector(InsightFaceMixin, base.BaseFaceDetector): | ||
ml_models = ( | ||
('retinaface_r50_v1', 'http://insightface.ai/files/models/retinaface_r50_v1.zip'), |
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.
The same - let's store this models in our google drive
Or as an alternative - look at this solution - https://git-lfs.github.com/
|
||
class Calculator(InsightFaceMixin, base.BaseCalculator): | ||
ml_models = ( | ||
('arcface_r100_v1', 'http://insightface.ai/files/models/arcface_r100_v1.zip'), |
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.
The same - let's store this models in our google drive
class GenderAgeDetector(InsightFaceMixin, base.BasePlugin): | ||
slug = 'gender_age' | ||
ml_models = ( | ||
('genderage_v1', 'http://insightface.ai/files/models/genderage_v1.zip'), |
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.
The same - let's store this models in our google drive
slug = 'age' | ||
LABELS = ((0, 2), (4, 6), (8, 12), (15, 20), (25, 32), (38, 43), (48, 53), (60, 100)) | ||
ml_models = ( | ||
('22801', 'https://drive.google.com/uc?id=1JSggfO1FPu8eM1BeQ6yMG5nKrGbJDyqG'), |
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.
The same - let's store this models in our google drive
slug = 'gender' | ||
LABELS = ('male', 'female') | ||
ml_models = ( | ||
('21936', 'https://drive.google.com/uc?id=1Gem2hM6bg746pqgTHQCyNv-Egf3CFgYf'), |
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.
The same - let's store this models in our google drive
@@ -0,0 +1,227 @@ | |||
Rude Carnie: Age and Gender Deep Learning with TensorFlow |
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 need to ask for permission or license before adding their code to our repository...
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.
Removed this code until we get permissions
491c9fc
to
d3a40f7
Compare
Change list for the embedding calculator:
embedding_calculator/srcext/
, now these install from pypi if necessaryrude_carnie (tensorflow)/status
returns a list of availiable plugins with their short names/find_faces
accepts argumentface_plugins
with a comma-separated list of plugins short names (e.g.face_plugins=calculator,age
/find_faces
returns execution time of each plugin on each detected face