Before running the code, do the following:
pip3 install -r requirements.txt
- Download face detection and gender detection models and put them in the
weights
folder. Check the tutorial for more on how to set it up. - Run the program:
python predict_gender.py "images\\Donald Trump.jpg"