Spaces:
Paused
Paused
Sam Fred commited on
Commit ·
28875f2
1
Parent(s): 7a0c193
new
Browse files- api/mdm_loader.py +0 -0
- api/motion_routes.py +0 -0
- app.py +0 -0
- bvh_converter.py +3 -0
- requirements.txt +8 -0
- setup_mdm.sh +18 -0
api/mdm_loader.py
ADDED
|
File without changes
|
api/motion_routes.py
ADDED
|
File without changes
|
app.py
ADDED
|
File without changes
|
bvh_converter.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def save_to_bvh(joint_data, filename="output.bvh"):
|
| 2 |
+
# Stub: use HumanML3D utils or Blender to export BVH
|
| 3 |
+
pass
|
requirements.txt
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fastapi
|
| 2 |
+
uvicorn
|
| 3 |
+
torch
|
| 4 |
+
transformers
|
| 5 |
+
numpy
|
| 6 |
+
scipy
|
| 7 |
+
pydantic
|
| 8 |
+
python-multipart
|
setup_mdm.sh
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
# Run: bash setup_mdm.sh
|
| 3 |
+
|
| 4 |
+
# 1. Clone the MDM repo
|
| 5 |
+
git clone https://github.com/GuyTevet/motion-diffusion-model.git
|
| 6 |
+
cd motion-diffusion-model
|
| 7 |
+
|
| 8 |
+
# 2. Install dependencies
|
| 9 |
+
pip install -r requirements.txt
|
| 10 |
+
|
| 11 |
+
# 3. Download pretrained checkpoint (HumanML3D model)
|
| 12 |
+
mkdir -p checkpoints
|
| 13 |
+
cd checkpoints
|
| 14 |
+
wget https://huggingface.co/GuyTevet/MotionDiffuse/resolve/main/mdm_humanml3d.pt
|
| 15 |
+
cd ..
|
| 16 |
+
|
| 17 |
+
# 4. Optional: test generation
|
| 18 |
+
# python scripts/test_generate.py --text "a person jumps forward"
|