File size: 674 Bytes
8f33c2c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import subprocess

def run_command(cmd):
    print(f"πŸš€ Running: {cmd}")
    result = subprocess.run(cmd, shell=True)
    if result.returncode != 0:
        print(f"❌ Failed: {cmd}")
    else:
        print(f"βœ… Done: {cmd}")

def main():
    run_command("pip install 'huggingface_hub[cli]'")
    run_command("huggingface-cli download Wan-AI/Wan2.1-I2V-14B-720P --local-dir ./models/Wan2.1-I2V-14B-720P")
    run_command("huggingface-cli download facebook/wav2vec2-base-960h --local-dir ./models/wav2vec2-base-960h")
    run_command("huggingface-cli download acvlab/FantasyTalking fantasytalking_model.ckpt --local-dir ./models")

if __name__ == "__main__":
    main()