yu4u / age-gender-estimation

Keras implementation of a CNN network for age and gender estimation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

run demo.py in "age_estimation" folder

maikhang opened this issue · comments

hi, when i run:
python demo.py
it error:
image

anyones help me, thanks so much!!!

commented

Your cuda may have an error

This is pretty old, but maybe it will help others.

I had this problem too. I found this stack overflow answer that helped me. You just need to add by_name=True in the model.load_weights(weight_file) method call. It should be model.load_weights(weight_file,by_name=True). It worked for me, so it might work for you too.