Real_Time_Interactive_Avatar_v2 / download_models.py
wedyanessam's picture
Create download_models.py
8f33c2c verified
raw
history blame
805 Bytes
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():
# ุชุซุจูŠุช huggingface_hub ู…ุน CLI
run_command("pip install 'huggingface_hub[cli]'")
# ุชุญู…ูŠู„ Wan2.1 I2V
run_command("huggingface-cli download Wan-AI/Wan2.1-I2V-14B-720P --local-dir ./models/Wan2.1-I2V-14B-720P")
# ุชุญู…ูŠู„ wav2vec2
run_command("huggingface-cli download facebook/wav2vec2-base-960h --local-dir ./models/wav2vec2-base-960h")
# ุชุญู…ูŠู„ FantasyTalking
run_command("huggingface-cli download acvlab/FantasyTalking fantasytalking_model.ckpt --local-dir ./models")
if __name__ == "__main__":
main()