Predicts age,gender,ethnicty of image of person uploaded
may take few minutes to load
-
- contains images needed for frontend
-
- css
- contains CSS files
- js
- contains Java script files
- css
-
- contains HTML files
-
- image uploaded during prediction are temporarily stored in this folder. Make sure this folder is not empty during deployment, as git will not track empty folders.
Age Gender Ethnicity Predictor is web-app deployed on Heroku.
-
Go to my training notebook on kaggle
- Library used : TensorFlow
- Pretrained Model : MobileNetV2 (Due to 500MB limit on heroku I used smaller model. A big model with better training will give better results)
- Technique used : MultiLabel classification.
- Dataset : UTK Face Dataset
- My model will output a
19D
array as output when given an image as input (resized to(200,200,3)
) - ID
0-11
gives information about Age- MultiClass classification.
- if
argmax(predicted[:12] = 3)
that means the age is between 3*10+1 and 3*10+10 ie., 31-40.
- ID
12-13
gives information about Gender- Binary Classification
- 0- Male 1- Female
- ID
14-18
gives information about Ethnicity- MultiClass Classification
- 0- White, 1- Black, 2- Asian, 3-Indian, 4-Others
Note : All the labels used are defined in UTK Face Dataset
-
- used an online template and made changes to HTML,CSS,JS files.
-
- You can go through this YT playlist created by me for reference Deploying ML model on Heroku using Flask.
- For more details visit Heroku.
- Using
MTCNN
to detect whether the face is present in uploaded image or not. - Using better pretrained models for training on UTK face dataset.