|
|
--- |
|
|
title: AI Emotion Detector |
|
|
emoji: π |
|
|
colorFrom: purple |
|
|
colorTo: pink |
|
|
sdk: gradio |
|
|
sdk_version: 4.44.0 |
|
|
app_file: app.py |
|
|
pinned: false |
|
|
license: mit |
|
|
--- |
|
|
|
|
|
# π AI Emotion Detector |
|
|
|
|
|
Real-time facial emotion detection using state-of-the-art Vision Transformer! |
|
|
|
|
|
## π Features |
|
|
|
|
|
- πΉ **Live Webcam Detection** - Capture and analyze emotions in real-time |
|
|
- πΌοΈ **Image Upload** - Drag & drop or upload any face image |
|
|
- π― **High Accuracy** - 98.80% validation accuracy |
|
|
- π¨ **Beautiful UI** - Animated results with confidence scores |
|
|
- 7οΈβ£ **7 Emotions** - Angry, Disgust, Fear, Happy, Sad, Surprise, Neutral |
|
|
|
|
|
## π Model Details |
|
|
|
|
|
- **Model ID**: `koyelog/face` |
|
|
- **Architecture**: Vision Transformer (ViT) |
|
|
- **Parameters**: 85.8 Million |
|
|
- **Training Dataset**: 181,230 images |
|
|
- **Training Accuracy**: 99.29% |
|
|
- **Validation Accuracy**: 98.80% |
|
|
- **License**: MIT |
|
|
|
|
|
## π Supported Emotions |
|
|
|
|
|
| Emotion | Emoji | Color | |
|
|
|---------|-------|-------| |
|
|
| Angry | π | Red | |
|
|
| Disgust | π€’ | Green | |
|
|
| Fear | π¨ | Purple | |
|
|
| Happy | π | Yellow | |
|
|
| Sad | π’ | Blue | |
|
|
| Surprise | π² | Magenta | |
|
|
| Neutral | π | Gray | |
|
|
|
|
|
## π‘ Usage Tips |
|
|
|
|
|
For best results: |
|
|
- β
Use front-facing photos |
|
|
- β
Ensure good lighting |
|
|
- β
Single face per image |
|
|
- β
Clear facial expressions |
|
|
|
|
|
## π©βπ» Created By |
|
|
|
|
|
**Koyeliya Ghosh** |
|
|
- HuggingFace: [@koyelog](https://huggingface.co/koyelog) |
|
|
- Model: [koyelog/face](https://huggingface.co/koyelog/face) |
|
|
|
|
|
## π License |
|
|
|
|
|
MIT License - Free to use and modify! |
|
|
|