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

BGR2RGB color conversion #51

Closed
aristofun opened this issue Aug 8, 2018 · 2 comments
Closed

BGR2RGB color conversion #51

aristofun opened this issue Aug 8, 2018 · 2 comments

Comments

@aristofun
Copy link

aristofun commented Aug 8, 2018

It seems like you're feeding RGB images to the Net in demo
https://github.com/yu4u/age-gender-estimation/blob/master/demo.py#L83

But looks like it is trained on BGR default opencv images:
https://github.com/yu4u/age-gender-estimation/blob/master/create_db.py#L55

Please clarify. And, btw, what are the image size you used for pretrained model provided (weights.28-3.73.hdf5)? Thank you in advance.

@yu4u
Copy link
Owner

yu4u commented Aug 9, 2018

The RGB image (input_img) is used for dlib (it assumes RGB images).
The input to the age-gender-estimation model is BGR images (cropped from img not input_img; yes, it's confusing).

https://github.com/yu4u/age-gender-estimation/blob/master/demo.py#L99

And, btw, what are the image size you used for pretrained model provided (weights.28-3.73.hdf5)? Thank you in advance.

The size is 64x64.

@aristofun
Copy link
Author

Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants