Prathamesh Sarjerao Vaidya commited on
Commit
66e45b5
Β·
1 Parent(s): 6961111

made changes

Browse files
.github/workflows/main.yml CHANGED
@@ -41,4 +41,4 @@ jobs:
41
  run: |
42
  git config user.name "github-actions"
43
  git config user.email "github-actions@github.com"
44
- git push --force https://prathameshv07:$HF_TOKEN@huggingface.co/spaces/prathameshv07/Dance-Movement-Analyzer.git main
 
41
  run: |
42
  git config user.name "github-actions"
43
  git config user.email "github-actions@github.com"
44
+ git push --force https://prathameshv07:$HF_TOKEN@huggingface.co/spaces/prathameshv07/DanceDynamics.git main
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: Dance Movement Analyzer
3
  emoji: πŸ•Ί
4
  colorFrom: purple
5
  colorTo: indigo
@@ -10,7 +10,7 @@ short_description: AI-powered tool for real-time dance movement analysis.
10
  pinned: false
11
  ---
12
 
13
- # πŸ•Ί Dance Movement Analyzer
14
 
15
  <p align="center">
16
  <strong>AI-Powered Dance Movement Analysis System</strong>
@@ -27,7 +27,7 @@ pinned: false
27
 
28
  ## 🎯 Overview
29
 
30
- The **Dance Movement Analyzer** is a production-ready web application that uses AI-powered pose detection to analyze dance movements in real-time. Built with MediaPipe, FastAPI, and modern web technologies, it provides comprehensive movement analysis with an intuitive glassmorphism user interface.
31
 
32
  ### What It Does
33
 
@@ -78,8 +78,8 @@ The **Dance Movement Analyzer** is a production-ready web application that uses
78
 
79
  ```bash
80
  # 1. Clone repository
81
- git clone https://github.com/Prathameshv07/Dance-Movement-Analyzer.git
82
- cd dance-movement-analyzer
83
 
84
  # 2. Backend setup
85
  cd backend
@@ -98,8 +98,8 @@ python app/main.py
98
 
99
  ```bash
100
  # 1. Clone repository
101
- git clone https://github.com/Prathameshv07/Dance-Movement-Analyzer.git
102
- cd dance-movement-analyzer
103
 
104
  # 2. Build and run with Docker Compose
105
  docker-compose up -d
@@ -169,7 +169,7 @@ docker-compose down
169
  ## πŸ“ Project Structure
170
 
171
  ```
172
- dance-movement-analyzer/
173
  β”œβ”€β”€ backend/ # Backend application
174
  β”‚ β”œβ”€β”€ app/
175
  β”‚ β”‚ β”œβ”€β”€ __init__.py # Package initialization
@@ -378,7 +378,7 @@ curl http://localhost:8000/health
378
 
379
  ```bash
380
  git init
381
- git remote add hf https://huggingface.co/spaces/prathameshv07/Dance-Movement-Analyzer
382
  git add .
383
  git commit -m "Deploy to Hugging Face"
384
  git push hf main
@@ -396,7 +396,7 @@ curl -fsSL https://get.docker.com | sh
396
 
397
  # Clone and run
398
  git clone <repo-url>
399
- cd dance-movement-analyzer
400
  docker-compose up -d
401
  ```
402
 
@@ -534,8 +534,8 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
534
  ## πŸ“ž Support
535
 
536
  - **Documentation**: Check docs/ folder
537
- - **Issues**: [GitHub Issues](https://github.com/Prathameshv07/Dance-Movement-Analyzer/issues)
538
- - **Discussions**: [GitHub Discussions](https://github.com/Prathameshv07/Dance-Movement-Analyzer/discussions)
539
 
540
  ## ⭐ Star History
541
 
 
1
  ---
2
+ title: DanceDynamics
3
  emoji: πŸ•Ί
4
  colorFrom: purple
5
  colorTo: indigo
 
10
  pinned: false
11
  ---
12
 
13
+ # πŸ•Ί DanceDynamics
14
 
15
  <p align="center">
16
  <strong>AI-Powered Dance Movement Analysis System</strong>
 
27
 
28
  ## 🎯 Overview
29
 
30
+ The **DanceDynamics** is a production-ready web application that uses AI-powered pose detection to analyze dance movements in real-time. Built with MediaPipe, FastAPI, and modern web technologies, it provides comprehensive movement analysis with an intuitive glassmorphism user interface.
31
 
32
  ### What It Does
33
 
 
78
 
79
  ```bash
80
  # 1. Clone repository
81
+ git clone https://github.com/Prathameshv07/DanceDynamics.git
82
+ cd DanceDynamics
83
 
84
  # 2. Backend setup
85
  cd backend
 
98
 
99
  ```bash
100
  # 1. Clone repository
101
+ git clone https://github.com/Prathameshv07/DanceDynamics.git
102
+ cd DanceDynamics
103
 
104
  # 2. Build and run with Docker Compose
105
  docker-compose up -d
 
169
  ## πŸ“ Project Structure
170
 
171
  ```
172
+ DanceDynamics/
173
  β”œβ”€β”€ backend/ # Backend application
174
  β”‚ β”œβ”€β”€ app/
175
  β”‚ β”‚ β”œβ”€β”€ __init__.py # Package initialization
 
378
 
379
  ```bash
380
  git init
381
+ git remote add hf https://huggingface.co/spaces/prathameshv07/DanceDynamics
382
  git add .
383
  git commit -m "Deploy to Hugging Face"
384
  git push hf main
 
396
 
397
  # Clone and run
398
  git clone <repo-url>
399
+ cd DanceDynamics
400
  docker-compose up -d
401
  ```
402
 
 
534
  ## πŸ“ž Support
535
 
536
  - **Documentation**: Check docs/ folder
537
+ - **Issues**: [GitHub Issues](https://github.com/Prathameshv07/DanceDynamics/issues)
538
+ - **Discussions**: [GitHub Discussions](https://github.com/Prathameshv07/DanceDynamics/discussions)
539
 
540
  ## ⭐ Star History
541
 
backend/app/__init__.py CHANGED
@@ -1,5 +1,5 @@
1
  """
2
- Dance Movement Analyzer - AI/ML Server for Dance Video Analysis
3
  Provides pose detection, movement classification, and rhythm analysis
4
  """
5
 
 
1
  """
2
+ DanceDynamics - AI/ML Server for Dance Video Analysis
3
  Provides pose detection, movement classification, and rhythm analysis
4
  """
5
 
backend/app/main.py CHANGED
@@ -27,7 +27,7 @@ logger = logging.getLogger(__name__)
27
  async def lifespan(app: FastAPI):
28
  """Lifespan event handler"""
29
  # Startup
30
- logger.info("πŸš€ Starting Dance Movement Analyzer...")
31
  Config.initialize_folders()
32
  logger.info("βœ… Folders initialized")
33
 
 
27
  async def lifespan(app: FastAPI):
28
  """Lifespan event handler"""
29
  # Startup
30
+ logger.info("πŸš€ Starting DanceDynamics...")
31
  Config.initialize_folders()
32
  logger.info("βœ… Folders initialized")
33
 
backend/run_all_tests.py CHANGED
@@ -1,5 +1,5 @@
1
  """
2
- Master Test Runner for Dance Movement Analyzer
3
  Runs all test suites and generates comprehensive reports
4
  """
5
 
@@ -218,7 +218,7 @@ class TestRunner:
218
  def run_all(self):
219
  """Run all test suites"""
220
  print("\n" + "="*70)
221
- print(" πŸ§ͺ DANCE MOVEMENT ANALYZER - COMPREHENSIVE TEST SUITE")
222
  print("="*70)
223
 
224
  self.start_time = time.time()
 
1
  """
2
+ Master Test Runner for DanceDynamics
3
  Runs all test suites and generates comprehensive reports
4
  """
5
 
 
218
  def run_all(self):
219
  """Run all test suites"""
220
  print("\n" + "="*70)
221
+ print(" πŸ§ͺ DanceDynamics - COMPREHENSIVE TEST SUITE")
222
  print("="*70)
223
 
224
  self.start_time = time.time()
backend/tests/run_tests.py CHANGED
@@ -1,5 +1,5 @@
1
  """
2
- Test Runner for Dance Movement Analyzer
3
  Runs all tests and generates coverage report
4
  """
5
 
@@ -25,7 +25,7 @@ def run_tests():
25
  ]
26
 
27
  print("=" * 70)
28
- print("Running Dance Movement Analyzer Tests")
29
  print("=" * 70)
30
  print()
31
 
 
1
  """
2
+ Test Runner for DanceDynamics
3
  Runs all tests and generates coverage report
4
  """
5
 
 
25
  ]
26
 
27
  print("=" * 70)
28
+ print("Running DanceDynamics Tests")
29
  print("=" * 70)
30
  print()
31
 
backend/tests/test_integration.py CHANGED
@@ -1,5 +1,5 @@
1
  """
2
- Integration Tests for Dance Movement Analyzer
3
  Tests complete workflows and API integration
4
  """
5
 
 
1
  """
2
+ Integration Tests for DanceDynamics
3
  Tests complete workflows and API integration
4
  """
5
 
backend/tests/test_load.py CHANGED
@@ -1,5 +1,5 @@
1
  """
2
- Load Testing Script for Dance Movement Analyzer
3
  Tests system performance under various loads
4
  """
5
 
@@ -185,7 +185,7 @@ async def main():
185
  """Run load tests"""
186
 
187
  print("=" * 60)
188
- print("πŸ§ͺ Dance Movement Analyzer - Load Testing")
189
  print("=" * 60)
190
 
191
  # Initialize tester
 
1
  """
2
+ Load Testing Script for DanceDynamics
3
  Tests system performance under various loads
4
  """
5
 
 
185
  """Run load tests"""
186
 
187
  print("=" * 60)
188
+ print("πŸ§ͺ DanceDynamics - Load Testing")
189
  print("=" * 60)
190
 
191
  # Initialize tester
docs/DEPLOYMENT.md CHANGED
@@ -1,8 +1,8 @@
1
- # Deployment Guide - Dance Movement Analyzer
2
 
3
  ## πŸš€ Deployment Options
4
 
5
- This guide covers multiple deployment strategies for the Dance Movement Analyzer.
6
 
7
  ---
8
 
@@ -18,8 +18,8 @@ This guide covers multiple deployment strategies for the Dance Movement Analyzer
18
 
19
  ```bash
20
  # 1. Clone repository
21
- git clone https://github.com/Prathameshv07/Dance-Movement-Analyzer
22
- cd dance-movement-analyzer
23
 
24
  # 2. Build Docker image
25
  docker-compose build
@@ -71,7 +71,7 @@ docker system prune -a # Clean unused images
71
  - Go to https://huggingface.co/spaces
72
  - Click "Create new Space"
73
  - Choose Docker SDK
74
- - Name: dance-movement-analyzer
75
 
76
  2. **Prepare Files**
77
 
@@ -106,7 +106,7 @@ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
106
  3. **Push to Space**
107
  ```bash
108
  git init
109
- git remote add space https://huggingface.co/spaces/prathameshv07/Dance-Movement-Analyzer
110
  git add .
111
  git commit -m "Initial deployment"
112
  git push --force space main
@@ -151,8 +151,8 @@ sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-
151
  sudo chmod +x /usr/local/bin/docker-compose
152
 
153
  # Clone repository
154
- git clone https://github.com/Prathameshv07/Dance-Movement-Analyzer
155
- cd dance-movement-analyzer
156
 
157
  # Start services
158
  docker-compose up -d
@@ -366,8 +366,8 @@ logging:
366
  ```bash
367
  # Backup uploads and outputs
368
  docker run --rm \
369
- -v dance-movement-analyzer_uploads:/uploads \
370
- -v dance-movement-analyzer_outputs:/outputs \
371
  -v $(pwd)/backup:/backup \
372
  alpine \
373
  tar czf /backup/data-$(date +%Y%m%d).tar.gz /uploads /outputs
@@ -378,8 +378,8 @@ docker run --rm \
378
  ```bash
379
  # Restore from backup
380
  docker run --rm \
381
- -v dance-movement-analyzer_uploads:/uploads \
382
- -v dance-movement-analyzer_outputs:/outputs \
383
  -v $(pwd)/backup:/backup \
384
  alpine \
385
  tar xzf /backup/data-YYYYMMDD.tar.gz -C /
@@ -580,7 +580,7 @@ jobs:
580
  username: ${{ secrets.SERVER_USER }}
581
  key: ${{ secrets.SSH_KEY }}
582
  script: |
583
- cd /app/dance-movement-analyzer
584
  docker-compose pull
585
  docker-compose up -d
586
  ```
 
1
+ # Deployment Guide - DanceDynamics
2
 
3
  ## πŸš€ Deployment Options
4
 
5
+ This guide covers multiple deployment strategies for the DanceDynamics.
6
 
7
  ---
8
 
 
18
 
19
  ```bash
20
  # 1. Clone repository
21
+ git clone https://github.com/Prathameshv07/DanceDynamics
22
+ cd DanceDynamics
23
 
24
  # 2. Build Docker image
25
  docker-compose build
 
71
  - Go to https://huggingface.co/spaces
72
  - Click "Create new Space"
73
  - Choose Docker SDK
74
+ - Name: DanceDynamics
75
 
76
  2. **Prepare Files**
77
 
 
106
  3. **Push to Space**
107
  ```bash
108
  git init
109
+ git remote add space https://huggingface.co/spaces/prathameshv07/DanceDynamics
110
  git add .
111
  git commit -m "Initial deployment"
112
  git push --force space main
 
151
  sudo chmod +x /usr/local/bin/docker-compose
152
 
153
  # Clone repository
154
+ git clone https://github.com/Prathameshv07/DanceDynamics
155
+ cd DanceDynamics
156
 
157
  # Start services
158
  docker-compose up -d
 
366
  ```bash
367
  # Backup uploads and outputs
368
  docker run --rm \
369
+ -v DanceDynamics_uploads:/uploads \
370
+ -v DanceDynamics_outputs:/outputs \
371
  -v $(pwd)/backup:/backup \
372
  alpine \
373
  tar czf /backup/data-$(date +%Y%m%d).tar.gz /uploads /outputs
 
378
  ```bash
379
  # Restore from backup
380
  docker run --rm \
381
+ -v DanceDynamics_uploads:/uploads \
382
+ -v DanceDynamics_outputs:/outputs \
383
  -v $(pwd)/backup:/backup \
384
  alpine \
385
  tar xzf /backup/data-YYYYMMDD.tar.gz -C /
 
580
  username: ${{ secrets.SERVER_USER }}
581
  key: ${{ secrets.SSH_KEY }}
582
  script: |
583
+ cd /app/DanceDynamics
584
  docker-compose pull
585
  docker-compose up -d
586
  ```
docs/DOCUMENTATION.md CHANGED
@@ -1,12 +1,12 @@
1
- # Dance Movement Analyzer - Technical Documentation
2
 
3
  ## 1. Project Overview
4
 
5
- The Dance Movement Analyzer is an AI-powered web application that leverages advanced computer vision and machine learning technologies to provide comprehensive analysis of dance movements. Using MediaPipe's pose estimation, the system detects 33 body keypoints, classifies movements into distinct categories, tracks individual body part activities, detects rhythmic patterns, and generates detailed analytics with visual overlays, transforming raw video into actionable insights for dancers, coaches, and researchers.
6
 
7
  ## 2. Objective
8
 
9
- The primary objective of the Dance Movement Analyzer is to democratize movement analysis by providing:
10
 
11
  - **Accurate Pose Detection**: Utilizing MediaPipe Pose to track 33 body landmarks with 95%+ accuracy
12
  - **Movement Classification**: Categorizing movements into 5 distinct types (Standing, Walking, Dancing, Jumping, Crouching)
@@ -161,8 +161,8 @@ Glassmorphism design with smooth animations:
161
 
162
  #### **Step 1: Clone Repository**
163
  ```bash
164
- git clone https://github.com/Prathameshv07/Dance-Movement-Analyzer.git
165
- cd dance-movement-analyzer
166
  ```
167
 
168
  #### **Step 2: Backend Setup**
@@ -252,7 +252,7 @@ See [DEPLOYMENT.md](DEPLOYMENT.md) for detailed guides on:
252
  ## 7. Detailed Project Structure
253
 
254
  ```
255
- dance-movement-analyzer/
256
  β”‚
257
  β”œβ”€β”€ backend/ # Backend application
258
  β”‚ β”œβ”€β”€ app/ # Main application package
 
1
+ # DanceDynamics - Technical Documentation
2
 
3
  ## 1. Project Overview
4
 
5
+ The DanceDynamics is an AI-powered web application that leverages advanced computer vision and machine learning technologies to provide comprehensive analysis of dance movements. Using MediaPipe's pose estimation, the system detects 33 body keypoints, classifies movements into distinct categories, tracks individual body part activities, detects rhythmic patterns, and generates detailed analytics with visual overlays, transforming raw video into actionable insights for dancers, coaches, and researchers.
6
 
7
  ## 2. Objective
8
 
9
+ The primary objective of the DanceDynamics is to democratize movement analysis by providing:
10
 
11
  - **Accurate Pose Detection**: Utilizing MediaPipe Pose to track 33 body landmarks with 95%+ accuracy
12
  - **Movement Classification**: Categorizing movements into 5 distinct types (Standing, Walking, Dancing, Jumping, Crouching)
 
161
 
162
  #### **Step 1: Clone Repository**
163
  ```bash
164
+ git clone https://github.com/Prathameshv07/DanceDynamics.git
165
+ cd DanceDynamics
166
  ```
167
 
168
  #### **Step 2: Backend Setup**
 
252
  ## 7. Detailed Project Structure
253
 
254
  ```
255
+ DanceDynamics/
256
  β”‚
257
  β”œβ”€β”€ backend/ # Backend application
258
  β”‚ β”œβ”€β”€ app/ # Main application package
frontend/index.html CHANGED
@@ -3,7 +3,7 @@
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Dance Movement Analyzer</title>
7
  <link rel="stylesheet" href="/static/css/styles.css">
8
  </head>
9
  <body>
@@ -16,7 +16,7 @@
16
  <div class="header-content">
17
  <h1 class="logo">
18
  <span class="icon">πŸ•Ί</span>
19
- Dance Movement Analyzer
20
  </h1>
21
  <p class="tagline">AI-Powered Pose Detection & Movement Classification</p>
22
  </div>
@@ -227,10 +227,10 @@
227
  <!-- Footer -->
228
  <footer class="footer">
229
  <div class="container">
230
- <p>&copy; 2024 Dance Movement Analyzer β€’ Built with MediaPipe & FastAPI</p>
231
  <div class="footer-links">
232
  <a href="/api/docs" target="_blank">API Docs</a>
233
- <a href="https://github.com/Prathameshv07/Dance-Movement-Analyzer" target="_blank">GitHub</a>
234
  </div>
235
  </div>
236
  </footer>
 
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>DanceDynamics</title>
7
  <link rel="stylesheet" href="/static/css/styles.css">
8
  </head>
9
  <body>
 
16
  <div class="header-content">
17
  <h1 class="logo">
18
  <span class="icon">πŸ•Ί</span>
19
+ DanceDynamics
20
  </h1>
21
  <p class="tagline">AI-Powered Pose Detection & Movement Classification</p>
22
  </div>
 
227
  <!-- Footer -->
228
  <footer class="footer">
229
  <div class="container">
230
+ <p>&copy; 2024 DanceDynamics β€’ Built with MediaPipe & FastAPI</p>
231
  <div class="footer-links">
232
  <a href="/api/docs" target="_blank">API Docs</a>
233
+ <a href="https://github.com/Prathameshv07/DanceDynamics" target="_blank">GitHub</a>
234
  </div>
235
  </div>
236
  </footer>
spaces.yaml CHANGED
@@ -1,4 +1,4 @@
1
- title: Dance Movement Analyzer
2
  emoji: πŸ•Ί
3
  colorFrom: purple
4
  colorTo: indigo
 
1
+ title: DanceDynamics
2
  emoji: πŸ•Ί
3
  colorFrom: purple
4
  colorTo: indigo
startup.sh CHANGED
@@ -1,4 +1,4 @@
1
  #!/bin/bash
2
- echo "πŸš€ Starting Dance Movement Analyzer..."
3
  PORT=${PORT:-7860}
4
  exec uvicorn app.main:app --host 0.0.0.0 --port $PORT --workers 1
 
1
  #!/bin/bash
2
+ echo "πŸš€ Starting DanceDynamics..."
3
  PORT=${PORT:-7860}
4
  exec uvicorn app.main:app --host 0.0.0.0 --port $PORT --workers 1