gender/age classification
Pour exécuter le script python prediction_age_gender.py
en modifiant le lien de la photo dans image_path
python prediction_age_gender.py
You can modify the value of image_path
in prediction_age_gender.py
to run our model on your own picture/video.
Note: For the sake of simplicity, I use Keras for the YOLO implementation, but I usetensorflow for the other graphs.
Note2: Don't forget to download the weight and to put them in th corresponding folder (ageWeights/freeze_graph/genderWeights)
Several prediction errors could happen in the following case:
In deep learning, it important to know that the training set should cover sufficiently the scenarios that you want to score later on. If the classifier sees fully new concepts or contexts it is likely to perform badly. Just a few examples:
As a result, we invite the reader to fine tune our model in case it makes some prediction errors with their test set (see previous section). Another parameter that ca be adjusted is size of the face that is extracted (go to "utils.py" and search for 'getFacesList' and adjust the size of maxDist)
Input | Output |
---|---|