yu4u / age-gender-estimation

Keras implementation of a CNN network for age and gender estimation
MIT License
1.46k stars 502 forks source link

run demo.py in "age_estimation" folder #138

Open maikhang opened 3 years ago

maikhang commented 3 years ago

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

anyones help me, thanks so much!!!

isbiong100 commented 3 years ago

Your cuda may have an error

RTnhN commented 3 years ago

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.