Age & gender models #338
Replies: 8 comments 12 replies
-
thats weird, in my code its clearly marked as it requires float grayscale input normalized to -1..1: human/src/gear/ssrnet-gender.ts Lines 45 to 53 in c8571ad but model signature is definitely RGB: signature gender-ssrnet-imdb.json
2023-02-15 14:48:35 INFO: graph model: /home/vlado/dev/human-models/models/gender-ssrnet-imdb.json
2023-02-15 14:48:35 INFO: created on: 2022-02-09T16:25:35.010Z
2023-02-15 14:48:35 INFO: metadata
2023-02-15 14:48:35 { generatedBy: '2.3.1', convertedBy: 'TensorFlow.js Converter v2.4.0', version: '440.undefined' }
2023-02-15 14:48:35 INFO: model inputs based on signature
2023-02-15 14:48:35 { name: 'input_4:0', dtype: 'DT_FLOAT', shape: [ -1, 64, 64, 3 ] }
2023-02-15 14:48:35 INFO: model inputs based on executor
2023-02-15 14:48:35 { name: 'input_4', dtype: 'float32', shape: [ -1, 64, 64, 3 ] }
2023-02-15 14:48:35 INFO: model outputs based on signature
2023-02-15 14:48:35 { id: 0, name: 'Identity:0', dytpe: 'DT_FLOAT', shape: [ -1, 1 ] }
2023-02-15 14:48:35 INFO: model outputs based on executor
2023-02-15 14:48:35 { id: 0, name: 'Identity', dtype: 'DT_FLOAT', shape: undefined }
2023-02-15 14:48:35 INFO: tensors: 157
2023-02-15 14:48:35 DATA: topology: { nodes: 294 }
2023-02-15 14:48:35 DATA: weights: {
files: [ 'gender-ssrnet-imdb.bin' ],
size: { disk: 161236, memory: 161236 },
count: { total: 157, int32: 72, float32: 85 },
quantized: { none: 157 },
values: { total: 40309, int32: 141, float32: 40168 }
} i added that code for a reason, but shoot me if i recall why. created issue #339 to track |
Beta Was this translation helpful? Give feedback.
-
Hi Vlad! Is it possible to include Thank you! |
Beta Was this translation helpful? Give feedback.
-
sure. config.face.description.crop
config.face.gear.crop
config.face.ssrnet.crop note that this has minimal testing (e.g. only automated tests, i don't have time right now for extensive manual testing). when you do have a chance to try it out and find out what are the best values, please share and i'd like to set them as defaults. |
Beta Was this translation helpful? Give feedback.
-
Hi Vlad! Is there any specific reason why face result does not contain |
Beta Was this translation helpful? Give feedback.
-
simple - can't return what model does not have :) |
Beta Was this translation helpful? Give feedback.
-
Here are some preliminary findings for age and gender models.
I'll continue looking for more alternatives, but I'd like to have your feedback about these ones while I continue my research. Thank you so much Vlad! |
Beta Was this translation helpful? Give feedback.
-
idea is when doing pondering to assign more spread out age score than original face score. so something like |
Beta Was this translation helpful? Give feedback.
-
What do you think about this possible implementation?
|
Beta Was this translation helpful? Give feedback.
-
Hi Vlad!
I'm testing alternative age and gender models instead of using the default description config with
faceres.json
model.While reading the wiki I found that
ssrnet
supportsage.json
,gender.json
andgender-ssrnet-imdb.json
.When testing the last one using the demo I found an error regarding model input shape:
Am I missing something or is it actually an error in the pre-processing of the frame?
This is my current config:
Beta Was this translation helpful? Give feedback.
All reactions