File size: 3,069 Bytes
6f2c7f0 |
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 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# Quick Guide: Adding Video Templates to HuggingFace Space
## Steps to Upload Templates from assets.zip
### 1. Download and Extract
1. Download `assets.zip` from: https://drive.google.com/file/d/1dg0SDAxEARClYq_6L1T1XIfWvC5iA8WD/view
2. Extract the zip file on your computer
3. You should see a structure like:
```
assets/
βββ video_template/
β βββ dance_indoor_1/
β β βββ sdc.mp4
β β βββ vid.mp4
β β βββ ...
β βββ sports_basketball_gym/
β βββ ...
```
### 2. Upload to HuggingFace Space
**Option A: Via Web Interface (Easier)**
1. Go to your Space: https://huggingface.co/spaces/minhho/mimo-1.0
2. Click on **"Files"** tab
3. Navigate to or create: `assets/video_template/`
4. Click **"Add file"** β **"Upload files"**
5. Drag and drop template folders (or individual files)
6. Commit the changes
**Option B: Via Git (Better for many files)**
```bash
# Clone your space repository
git clone https://huggingface.co/spaces/minhho/mimo-1.0
cd mimo-1.0
# Copy templates from extracted assets.zip
cp -r /path/to/extracted/assets/video_template/* ./assets/video_template/
# Important: Don't add binary files to git without LFS
# Instead, add them one folder at a time through web interface
# OR set up Git LFS:
git lfs install
git lfs track "assets/video_template/**/*.mp4"
git add .gitattributes
git add assets/video_template/
git commit -m "Add video templates"
git push
```
### 3. Verify Templates Loaded
After uploading:
1. Go back to your Space app
2. Click **"π Refresh Templates"** button
3. The dropdown should now show your uploaded templates
## Which Templates to Upload First
If space is limited, prioritize these:
1. **dance_indoor_1** - Popular dance motion
2. **sports_basketball_gym** - Sports motion
3. **movie_BruceLee1** - Martial arts action
4. **shorts_kungfu_desert1** - Another action template
Each template folder should contain **at minimum**:
- `sdc.mp4` (REQUIRED - pose skeleton video)
- Other files (vid.mp4, bk.mp4, occ.mp4) are optional but improve quality
## Expected File Sizes
- Each template: ~10-50 MB
- Full template set: ~200-500 MB
- HuggingFace Spaces free tier: ~50GB storage (plenty for templates)
## Troubleshooting
### "No templates available" message
- Templates not uploaded yet
- Check file structure: must be in `assets/video_template/[template_name]/`
- Each template folder must have `sdc.mp4`
### Upload fails / Space crashes
- Try uploading one template at a time
- Use smaller templates first
- Consider using Git LFS for large files
### Templates don't show after upload
- Click "π Refresh Templates" button
- Restart the Space (Settings β Factory reboot)
- Check file permissions (should be readable)
## Alternative: Work Without Templates
The app works perfectly fine WITHOUT templates:
- Use **reference image only** mode
- Generate animations based on the input image
- Upload templates later when convenient
Templates enhance variety but aren't required for core functionality!
|