Views
No views yet
| ID | Emotion |
|---|---|
| 0 | Anger |
| 1 | Contempt |
| 2 | Disgust |
| 3 | Fear |
| 4 | Happiness |
| 5 | Sadness |
| 6 | Surprise |
| File | Description |
|---|---|
backbone_weights.tar | ResNet50 backbone pre-trained on ImageNet-21K |
tsam_weights.tar | Trained TSAM model checkpoint (best balanced accuracy) |
1from huggingface_hub import snapshot_download
2
3snapshot_download(
4 repo_id="dnamodel/tsam-viewer-emotions",
5 local_dir="./tsam-weights"
6)1# 1. Clone the code repo
2git clone https://github.com/gmontana/DecodingViewerEmotions.git
3cd DecodingViewerEmotions
4
5# 2. Install dependencies
6pip install -r requirements.txt
7
8# 3. Download dataset and model weights
9# 4. Run setup_data.py to extract frames and audio
10# 5. Run predict.py for inference
11python predict.py1@article{antonov2024decoding,
2 title={Decoding viewer emotions in video ads},
3 author={Antonov, Alexey and Kumar, Shravan Sampath and Wei, Jiefei and Headley, William and Wood, Orlando and Montana, Giovanni},
4 journal={Scientific Reports},
5 volume={14},
6 pages={25680},
7 year={2024},
8 publisher={Nature Publishing Group},
9 doi={10.1038/s41598-024-76968-9}
10}