We have experimented the implementation on the following enviornment.
# create virtual python enviroment
python -m venv venv_vit
source venv_vit/Scripts/activate
# install required libraries
pip install -r requirements.txt
Datasets we used are as follows:
Dataset | Download | Comment |
---|---|---|
FER-2013 | Link | Change categories 7 to 4 |
For more details, please refer to data description.
python train.py -c base_config
Download the haarcascade_frontface_default.xml file and place it in the haarcascade_files folder.
You can use the trained model by specifying the base_config from Hugging Face (StoneSeller/emotion-classifier-vit).
python inference.py -c inference_config