Spaces:
Paused
Paused
File size: 1,691 Bytes
725a76b 24d2e2b 81887d4 24d2e2b 6ef3540 725a76b 6ef3540 725a76b 6ef3540 00f4fda 6ef3540 81887d4 24d2e2b |
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 |
#!/bin/bash
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 with all files
echo "Downloading model weights..."
# Download VACE model (1.3B) - download ALL files
echo "Downloading Wan2.1-VACE-1.3B model (this may take a while)..."
huggingface-cli download Wan-AI/Wan2.1-VACE-1.3B \
--local-dir Wan2.1-VACE-1.3B \
--local-dir-use-symlinks False
# Download FLF2V model (14B) - download ALL files
echo "Downloading Wan2.1-FLF2V-14B-720P model (this may take a while)..."
huggingface-cli download Wan-AI/Wan2.1-FLF2V-14B-720P \
--local-dir Wan2.1-FLF2V-14B-720P \
--local-dir-use-symlinks False
# Verify critical files exist
echo "Verifying downloaded files..."
CRITICAL_FILES=(
"Wan2.1-VACE-1.3B/models_t5_umt5-xxl-enc-bf16.pth"
"Wan2.1-VACE-1.3B/diffusion_pytorch_model.safetensors"
"Wan2.1-FLF2V-14B-720P/models_t5_umt5-xxl-enc-bf16.pth"
"Wan2.1-FLF2V-14B-720P/diffusion_pytorch_model.safetensors.index.json"
)
ALL_GOOD=true
for file in "${CRITICAL_FILES[@]}"; do
if [ -f "$file" ]; then
echo "β Found: $file"
else
echo "β Missing: $file"
ALL_GOOD=false
fi
done
if [ "$ALL_GOOD" = true ]; then
echo "β
All critical model files downloaded successfully!"
else
echo "β Some model files are missing. Please check your internet connection and try again."
exit 1
fi
echo "Setup complete!" |