hf_down.py 521 Bytes
Newer Older
chenpangpang's avatar
chenpangpang committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# pip install huggingface-cli
import os
import requests
import json

os.environ['HF_ENDPOINT'] = 'https://hf-mirror.com'

model_list = [
        "dantea1118/juggernaut_reborn",
        "ai-forever/Real-ESRGAN",
        "philz1337x/embeddings",
        "philz1337x/loras",
        "lllyasviel/ControlNet-v1-1",
        "stabilityai/sd-vae-ft-mse-original",
]

for model_path in model_list:
    os.system(f"huggingface-cli download --resume-download  {model_path} --local-dir ./{model_path} --local-dir-use-symlinks False")