Downloads · 30 days
0
NipunD58/SER-CNN-Transformer
SER-CNN-Transformer is a machine learning model from NipunD58. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository implements a Speech Emotion Recognition (SER) system based on a hybrid CNN-Transformer architecture enhanced with a Multidimensional Attention Mechanism.
Downloads · 30 days
0
Access
Public
Updated Aug 7, 2026
Repo size
610 MB
Likes
0
Public
Click a slice to open those files.
.pkl606 MB · 99%
From the Hugging Face model README
This repository implements a Speech Emotion Recognition (SER) system based on a hybrid CNN-Transformer architecture enhanced with a Multidimensional Attention Mechanism.
pip install -r requirements.txt
python preprocessing/process_IEMOCAP.py
python train_IEMOCAP.py -f mfcc -m CTMAM -b 128 -e 150 -l 0.001 -g 0
python predict.py --model-path data/IEMOCAP/model_CTMAM_mfcc_all.pth --file examples/sample.wav
Notes:
-g to select GPU id (set to -1 for CPU).-f to change feature type (e.g., mfcc, fbank if supported).preprocessing/ to prepare the IEMOCAP features.data/IEMOCAP/ with precomputed feature files and checkpoints.train_IEMOCAP.py — training entrypointpredict.py — inference scriptmodels.py — model definitions (CNN-Transformer and attention modules)data_loader.py — dataset and dataloader utilitiespreprocessing/ — data processing helpers for IEMOCAPdata/IEMOCAP/model_CTMAM_mfcc_all.pth and metric/loss logs in the same folder.--model-path to the checkpoint file.data/IEMOCAP/.predict.py to compute per-file predictions and aggregate metrics.MIT