Transformer-based Label Set Generation for Multi-modal Multi-label Emotion Detection This is the code for our paper MMESGN: Transformer-based Label Set Generation for Multi-modal Multi-label Emotion Detection [pdf]
Modify the data path in data_loader.py. Then:
bash preprocess.sh
Training the based model by:
bash train.sh
We utilize a reinforecement method to help optimize the model. Select one of train checkpoints and copy the path to -train_from in reinforce.sh,then :
bash reforce.sh
Similar to translation in NMT model, we need to generate the emotion label set.
bash translate.sh
python3 rein_evaluate_all.py
- Ubuntu 16.0.4
- Python version >= 3.6
- PyTorch version >= 1.1.0
Our used Mosei dataset can be downloaded from the page this link. The preprocess of the raw data clearly published in the information page. Download the data and follow the usage in readme.md
The code will be published after the ACM MM conference, happy to see you reading my code in the future.