Spaces:
Paused
Paused
| set -e | |
| echo "Setting up Wan2.1 VACE environment..." | |
| # Clone repositories if they don't exist | |
| if [ ! -d "Wan2.1" ]; then | |
| echo "Cloning Wan2.1 repository..." | |
| git clone https://github.com/Wan-Video/Wan2.1.git | |
| fi | |
| if [ ! -d "VACE" ]; then | |
| echo "Cloning VACE repository..." | |
| git clone https://github.com/ali-vilab/VACE.git | |
| fi | |
| # Download model weights | |
| echo "Downloading model weights..." | |
| huggingface-cli download Wan-AI/Wan2.1-VACE-1.3B \ | |
| --local-dir Wan2.1-VACE-1.3B \ | |
| --local-dir-use-symlinks False | |
| huggingface-cli download Wan-AI/Wan2.1-FLF2V-14B-720P \ | |
| --local-dir Wan2.1-FLF2V-14B-720P \ | |
| --local-dir-use-symlinks False | |
| echo "Setup complete!" |