hf_down.py 991 Bytes
Newer Older
chenpangpang's avatar
chenpangpang committed
1
2
3
4
5
6
# pip install huggingface-cli
import os

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

model_list = [
chenpangpang's avatar
chenpangpang committed
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
    "black-forest-labs/FLUX.1-dev",
    "multimodalart/flux-tarot-v1",
    "alvdansen/frosting_lane_flux",
    "XLabs-AI/flux-RealismLora",
    "nerijs/animation2k-flux",
    "alvdansen/softserve_anime",
    "veryVANYA/ps1-style-flux",
    "alvdansen/flux-koda",
    "davisbro/half_illustration",
    "fofr/flux-wrong",
    "linoyts/yarn_art_Flux_LoRA",
    "SebastianBodza/Flux_Aquarell_Watercolor_v2",
    "dataautogpt3/FLUX-SyntheticAnime",
    "XLabs-AI/flux-lora-collection",
    "kudzueye/Boreal",
    "XLabs-AI/flux-lora-collection",
    "XLabs-AI/flux-lora-collection",
    "martintomov/retrofuturism-flux"
chenpangpang's avatar
chenpangpang committed
25
26
]

chenpangpang's avatar
chenpangpang committed
27
#os.system("pip install -U huggingface-hub")
chenpangpang's avatar
chenpangpang committed
28
29
30

for model_path in model_list:
    os.system(
chenpangpang's avatar
chenpangpang committed
31
        f"huggingface-cli download --resume-download  {model_path} --local-dir ./{model_path} --local-dir-use-symlinks False --token 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")