Spaces:
Paused
Paused
File size: 1,960 Bytes
0084610 |
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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
import os
from huggingface_hub import snapshot_download
if __name__ == "__main__":
cache_dir = "./weights"
dit_path = snapshot_download(
repo_id="ai-forever/Kandinsky-5.0-T2V-Lite-pretrain-5s",
allow_patterns="model/*",
local_dir=cache_dir,
)
dit_path = snapshot_download(
repo_id="ai-forever/Kandinsky-5.0-T2V-Lite-pretrain-10s",
allow_patterns="model/*",
local_dir=cache_dir,
)
dit_path = snapshot_download(
repo_id="ai-forever/Kandinsky-5.0-T2V-Lite-sft-5s",
allow_patterns="model/*",
local_dir=cache_dir,
)
dit_path = snapshot_download(
repo_id="ai-forever/Kandinsky-5.0-T2V-Lite-sft-10s",
allow_patterns="model/*",
local_dir=cache_dir,
)
dit_path = snapshot_download(
repo_id="ai-forever/Kandinsky-5.0-T2V-Lite-nocfg-5s",
allow_patterns="model/*",
local_dir=cache_dir,
)
dit_path = snapshot_download(
repo_id="ai-forever/Kandinsky-5.0-T2V-Lite-nocfg-10s",
allow_patterns="model/*",
local_dir=cache_dir,
)
dit_path = snapshot_download(
repo_id="ai-forever/Kandinsky-5.0-T2V-Lite-distilled16steps-5s",
allow_patterns="model/*",
local_dir=cache_dir,
)
dit_path = snapshot_download(
repo_id="ai-forever/Kandinsky-5.0-T2V-Lite-distilled16steps-10s",
allow_patterns="model/*",
local_dir=cache_dir,
)
vae_path = snapshot_download(
repo_id="hunyuanvideo-community/HunyuanVideo",
allow_patterns="vae/*",
local_dir=cache_dir,
)
text_encoder_path = snapshot_download(
repo_id="Qwen/Qwen2.5-VL-7B-Instruct",
local_dir=os.path.join(cache_dir, "text_encoder/"),
)
text_encoder2_path = snapshot_download(
repo_id="openai/clip-vit-large-patch14",
local_dir=os.path.join(cache_dir, "text_encoder2/"),
)
|