UTKFace dataset is a large-scale face dataset with long age span (range from 0 to 116 years old). The dataset consists of over 20,000 face images with annotations of age, gender, and ethnicity. The images cover large variation in pose, facial expression, illumination, occlusion, resolution, etc. This dataset could be used on a variety of tasks, e.g., face detection, age estimation, age progression/regression, landmark localization, etc.
load utkface images and train accordingly that have used in this notebook
after model training is done convert that weights file from keras to onnx using convert_2_onnx.py
### venv recommanded
pip install -r convert_2_onnx_requriements.txt
python3 convert_2_onnx.py ### here im using for gender , and u can change accordingly
##sgie1
....
[property]
enable=1
gpu-id=0
onnx-file=weights/gender_cnn/gender.onnx
labelfile-path=weights/gender_cnn/labels.txt
network-input-order=1
infer-dims= 3;224;224
batch-size=1
....
for reference : dstest2_sgie1_config.txt