git clone https://github.com/Kichkun/age_model.git
cd age_model
pip install .
Age recognition
from age_model import AgeModel
import cv2
img = cv2.imread('img4.jpg')
demography = AgeModel.analyze(img)
#demography = AgeModel.analyze([img, img]) #analyzing multiple faces same time
print("Age: ", demography["age"])
#print("Age: ", demography)
{'age': 50.75593731981769}
Pretrained weights can be downloaded from here and should be placed in "models" folder