deanngkl/raf-db-7emotions
Viewer β’ Updated β’ 20.5k β’ 260
A deep learning project that fine-tunes a Vision Transformer (ViT-Tiny) model for 7-class facial emotion classification using cleaned versions of FER+, AffectNet, and RAF-DB datasets.
['anger', 'disgust', 'fear', 'happiness', 'neutral', 'sadness', 'surprise']timm implementation)| Dataset | Link | Notes |
|---|---|---|
| FER+ | Hugging Face | Filtered to 7 basic emotions |
| AffectNet | Hugging Face | Removed 'contempt' class |
| RAF-DB | Hugging Face | Added proper emotion labels |
The total amount of datasets
Loaded 75398 training samples from 3 sources
Loaded 8377 validation samples from 3 sources
Training-set distribution:
0: 0 : 9738
1: 1 : 3385
2: 2 : 4313
3: 3 : 18315
4: 4 : 20987
5: 5 : 9289
6: 6 : 9371
Emotion batch torch.Size([64, 3, 224, 224])
πββοΈ Author
Blog : Portfolio
LinkedIn : LinkedIn
GitHub : GitHub
Email : kwanlung123@gmail.com
Base model
WinKawaks/vit-tiny-patch16-224