Official Implementations of "Text Prompt Region Decomposition for Effective Facial Expression Recognition"
Our manuscript is currently under review; therefore, this project only provides inference code and weight files for testing.
The training code will be availabel later.
- Installation the package requirements
pip install -r requirements.txt
data/
├─ RAF-DB/
│ ├─ basic/
│ │ ├─ EmoLabel/
│ │ │ ├─ list_patition_label.txt
│ │ │ ├─ rafdb_occlusion_list.txt
│ │ │ ├─ val_raf_db_list.txt
│ │ │ ├─ val_raf_db_list_45.txt
│ │ ├─ Image/
│ │ │ ├─ aligned_224/ # reagliend by MTCNN
- The downloaded AffectNet are organized as follow:
data/
├─ AffectNet/
│ ├─ Manually_Annotated_Images/
│ │ ├─ training.csv
│ │ ├─ validation.csv
│ │ ├─ 1/
│ │ │ ├─ images
│ │ │ ├─ ...
│ │ ├─ 2/
│ │ ├─ ./
-
The FER2013, FERPlus, and pre-processing code are available at https://github.com/microsoft/FERPlus:
-
The Occlusion- and Pose- variant lists can be downloaded at RAN:
- Download model checkpoints from Google Drive.
- Modify the path of the downloaded weight files in the configuration files.
python test.py --config ${CONFIG_PATH}