GilLevi / AgeGenderDeepLearning

633 stars 285 forks source link

Mean shape #3

Closed bkj closed 6 years ago

bkj commented 8 years ago

When I try to run the code from the notebook, I get the following error

ValueError: Mean shape incompatible with input shape.

which suggests that the mean array needs to be reshaped for input into caffe.Classifier. Any suggestions on how to proceed?

GilLevi commented 8 years ago

Hi,

Thank you for your interest in our work.

The problem you are describing is a know issue caused since the newer Caffe versions are not 100% compatible with the version used in our project.

For a detailed description of the problem and a solution, see the project page (update from the 15th of July): http://www.openu.ac.il/home/hassner/projects/cnn_agegender/

Best, Gil

bkj commented 8 years ago

Ah great thank you.

Also, do you know of any work that actually does face detection in images that I could use alongside your software. At the moment, if I get the network a picture of a street sign, it gives it a 100% male label. Ideally we'd want to detect age and gender of a face IFF a face is present in the image.

GilLevi commented 8 years ago

Hi,

You need to look for face detection code. There are many works on the subject, for example the following: https://www.ics.uci.edu/~xzhu/face/

Best, Gil

IvonaTau commented 7 years ago

Hi, I also run to the same issue and I was wondering:

which Caffe version did you use for the project?

Thanks!

GilLevi commented 7 years ago

Hi @IvonaTau ,

I'm afraid I don't remember which version we used. We used the latest source code from Caffe's github repository at that time (around February 2015).

Gil