please install Python 3.9 first
python -m pip install -r requirements.txt
python main.py --input fixture/sample.jpg
python main.py --input_folder example_folder
p.s. only the face with largest confidence will be evaluated
Loading the Pytorch state_dict:
--checkpoint weight/best.ckpt
There are 2 different pretrained weights
best.ckpt
is the cross-dataset model (default)fine_tune.ckpt
is the fine-tuned weights on TW old faces.
python -m unittest
Please request the data from the author of the following paper:
and put the face images from pick_faces_628
to the folder ./data
Also, put the FaceTake_SubjList.csv
to the project folder
Then, run:
python main.py
- De-Wei Ye, Automatic Facial Expression Recognition for Taiwanese Elders with Deep Convolutional Neural Network,” Master’s thesis, Graduate Institute of Communication Engineering, National Taiwan University, 2020.