Skip to content
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

Age & gender models #339

Closed
vladmandic opened this issue Feb 15, 2023 Discussed in #338 · 1 comment
Closed

Age & gender models #339

vladmandic opened this issue Feb 15, 2023 Discussed in #338 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@vladmandic
Copy link
Owner

Discussed in #338

Originally posted by nicoeiris11 February 15, 2023
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 supports age.json, gender.json and gender-ssrnet-imdb.json.
When testing the last one using the demo I found an error regarding model input shape:

exception: The shape of dict['input_4'] provided in model.execute(dict) must be [-1,64,64,3], but was [1,64,64,1]

Am I missing something or is it actually an error in the pre-processing of the frame?

This is my current config:

ssrnet: {
      enabled: true,
      modelPathAge: 'age.json',
      modelPathGender: 'gender-ssrnet-imdb.json',
      skipFrames: 99,
      skipTime: 3000,
      minConfidence: 0.1,
    },
```</div>
@vladmandic vladmandic self-assigned this Feb 15, 2023
@vladmandic vladmandic added the bug Something isn't working label Feb 15, 2023
@vladmandic
Copy link
Owner Author

gender.json is rgb model and gender-ssrnet-imdb.json is grayscale model while both share same execution code.
added auto-detect which one is used in input processing and expanded automated test coverage.

new code is published on github.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant