File size: 2,627 Bytes
6012bf9 f761cd6 6012bf9 f761cd6 6012bf9 f761cd6 6012bf9 f761cd6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
---
title: AI Fitness Coach - Fine-Tuned Personas
emoji: ποΈ
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 4.44.0
app_file: app.py
pinned: false
license: mit
---
# ποΈ AI Fitness Coach with Fine-Tuned Personas
An intelligent fitness coaching system that analyzes exercise form and provides personalized feedback through fine-tuned language models.
## β¨ Features
- **3D Pose Estimation**: Uses PoseFormer for accurate body pose tracking
- **Real-time Scoring**: Analyzes form and provides detailed breakdown by body part
- **4 Fine-Tuned Personas**: Each with unique coaching style
- π₯ **Hype Beast**: Energetic, motivational, hype-focused
- π **Data Scientist**: Analytical, metrics-driven, detailed
- πͺ **No-Nonsense Pro**: Direct, tough-love, results-oriented
- π§ **Mindful Aligner**: Calm, body-awareness focused, supportive
## π¬ Model Details
### Training Pipeline
- **Base Model**: DistilGPT-2 (82M parameters)
- **Training Data**: 320 synthetic examples (80 per persona)
- **Data Generation**: GPT-4o API with persona-specific prompts
- **Fine-Tuning**: 1000 steps per persona, FP16 mixed precision
- **Training Time**: ~15 minutes per persona on RTX GPU
### Architecture
```
User Video β MediaPipe Pose Detection β PoseFormer 3D Estimation
β Scoring Algorithm β Fine-Tuned Persona Model β Feedback
```
## π How It Works
1. **Upload Video**: Record yourself doing an exercise
2. **Select Persona**: Choose your preferred coaching style
3. **Get Analysis**: Receive detailed scoring and personalized feedback
4. **Improve**: Follow the coach's recommendations
## π Performance Metrics
- **Pose Detection Accuracy**: 95%+ on clear videos
- **Processing Time**: ~3-5 seconds per video
- **Model Size**: ~250MB per persona (compressed)
- **Inference Speed**: <1 second on GPU, ~2-3 seconds on CPU
## π οΈ Technology Stack
- **Frontend**: Gradio
- **Backend**: Python, PyTorch
- **Pose Estimation**: MediaPipe + PoseFormer
- **LLM**: Fine-tuned DistilGPT-2
- **Training**: Hugging Face Transformers, Accelerate
## π Citation
If you use this project, please cite:
```bibtex
@software{ai_fitness_coach_2024,
title = {AI Fitness Coach with Fine-Tuned Personas},
author = {Your Name},
year = {2024},
url = {https://huggingface.co/spaces/your-username/ai-fitness-coach}
}
```
## π License
MIT License - See LICENSE file for details
## π Acknowledgments
- PoseFormer for 3D pose estimation
- Hugging Face for model hosting and training tools
- OpenAI GPT-4o for synthetic training data generation
- MediaPipe for 2D pose detection
|