UmeAiRT commited on
Commit
461d9f7
·
1 Parent(s): 290d8b0

New WAN2.1 scripts

Browse files
Files changed (1) hide show
  1. UmeAiRT-WAN2.1-Model_downloader.bat +123 -0
UmeAiRT-WAN2.1-Model_downloader.bat ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ setlocal enabledelayedexpansion
3
+
4
+ set "comfyUIPath=%CD%"
5
+
6
+ :check_folder
7
+ if exist "%comfyUIPath%\ComfyUI" (
8
+ echo ComfyUI folder detected
9
+ ) else if exist "%comfyUIPath%\ComfyUI_windows_portable" (
10
+ cd ComfyUI_windows_portable
11
+ echo ComfyUI folder detected
12
+ ) else (
13
+ echo ComfyUI folder not detected
14
+ pause
15
+ exit /b
16
+ )
17
+
18
+ :CHOOSE_OPTION
19
+ REM Ask user for installation type
20
+ echo Choose your preferred installation:
21
+ echo A) Fast-Lowvram install (GGUF)
22
+ echo B) Unoptimized normal model (bf16)
23
+ set /p "CHOICE=Enter your choice (A or B) and press Enter: "
24
+
25
+ if /i "%CHOICE%"=="A" (
26
+ set "INSTALL_TYPE=fast-lowvram"
27
+ ) else if /i "%CHOICE%"=="B" (
28
+ set "INSTALL_TYPE=unoptimized"
29
+ set "DOWNLOAD_GGUF=no"
30
+ ) else (
31
+ echo Invalid choice. Please enter A or B.
32
+ goto CHOOSE_OPTION
33
+ )
34
+
35
+ :CHOOSE_FLUX_GGUF
36
+ REM Ask user if they want to download FLUX GGUF Model
37
+ echo Do you want to download FLUX GGUF Models?
38
+ echo A) Q8_0 + T5_Q8 (24GB Vram)
39
+ echo B) Q5_K_S + T5_Q5_K_M (16GB Vram)
40
+ echo C) Q4_K_S + T5_Q3_K_L (less than 12GB Vram)
41
+ echo D) All
42
+ echo E) No
43
+ set /p "FLUX_GGUF_CHOICE=Enter your choice (A,B,C,D or E) and press Enter: "
44
+ if /i "%FLUX_GGUF_CHOICE%"=="A" (
45
+ set "DOWNLOAD_GGUF=yes"
46
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="B" (
47
+ set "DOWNLOAD_GGUF=yes"
48
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="C" (
49
+ set "DOWNLOAD_GGUF=yes"
50
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="D" (
51
+ set "DOWNLOAD_GGUF=yes"
52
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="E" (
53
+ set "DOWNLOAD_GGUF=no"
54
+ ) else (
55
+ echo Invalid choice. Please enter A or B.
56
+ goto CHOOSE_FLUX_GGUF
57
+ )
58
+
59
+ cd ComfyUI\models
60
+ REM Download VAE file
61
+ echo Downloading VAE file...
62
+ cd vae
63
+ curl -L -o wan_2.1_vae.safetensors https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors?download=true
64
+
65
+ cd ..
66
+
67
+ REM Download CLIP files
68
+ echo Downloading CLIP files...
69
+ cd clip
70
+ curl -L -o "umt5_xxl_fp8_e4m3fn_scaled.safetensors" https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors?download=true
71
+ cd ..
72
+
73
+ REM Download Diffusion models files
74
+ cd diffusion_models
75
+ if "%INSTALL_TYPE%"=="unoptimized" (
76
+ echo Downloading diffusion models file...
77
+ echo T2V Quant Model :
78
+ curl -L -o wan2.1_i2v_480p_14B_bf16.safetensors https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/diffusion_models/wan2.1_i2v_480p_14B_bf16.safetensors?download=true
79
+ echo I2V Quant Model :
80
+ curl -L -o wan2.1_t2v_1.3B_bf16.safetensors https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/diffusion_models/wan2.1_t2v_1.3B_bf16.safetensors?download=true
81
+ )
82
+ if "%DOWNLOAD_GGUF%"=="yes" (
83
+ echo Downloading GGUF T2V Quant Model...
84
+ if /i "%FLUX_GGUF_CHOICE%"=="A" (
85
+ curl -L -o wan2.1-t2v-14b-Q8_0.gguf https://huggingface.co/city96/Wan2.1-T2V-14B-gguf/resolve/main/wan2.1-t2v-14b-Q8_0.gguf?download=true
86
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="B" (
87
+ curl -L -o wan2.1-t2v-14b-Q5_K_M.gguf https://huggingface.co/city96/Wan2.1-T2V-14B-gguf/resolve/main/wan2.1-t2v-14b-Q5_K_M.gguf?download=true
88
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="C" (
89
+ curl -L -o wan2.1-t2v-14b-Q3_K_S.gguf https://huggingface.co/city96/Wan2.1-T2V-14B-gguf/resolve/main/wan2.1-t2v-14b-Q3_K_S.gguf?download=true
90
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="D" (
91
+ curl -L -o wan2.1-t2v-14b-Q8_0.gguf https://huggingface.co/city96/Wan2.1-T2V-14B-gguf/resolve/main/wan2.1-t2v-14b-Q8_0.gguf?download=true
92
+ curl -L -o wan2.1-t2v-14b-Q5_K_M.gguf https://huggingface.co/city96/Wan2.1-T2V-14B-gguf/resolve/main/wan2.1-t2v-14b-Q5_K_M.gguf?download=true
93
+ curl -L -o wan2.1-t2v-14b-Q3_K_S.gguf https://huggingface.co/city96/Wan2.1-T2V-14B-gguf/resolve/main/wan2.1-t2v-14b-Q3_K_S.gguf?download=true
94
+ )
95
+ )
96
+ if "%DOWNLOAD_GGUF%"=="yes" (
97
+ echo Downloading GGUF I2V Quant Model...
98
+ if /i "%FLUX_GGUF_CHOICE%"=="A" (
99
+ curl -L -o wan2.1-i2v-14b-480p-Q8_0.gguf https://huggingface.co/city96/Wan2.1-I2V-14B-480P-gguf/resolve/main/wan2.1-i2v-14b-480p-Q8_0.gguf?download=true
100
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="B" (
101
+ curl -L -o wan2.1-i2v-14b-480p-Q5_K_M.gguf https://huggingface.co/city96/Wan2.1-I2V-14B-480P-gguf/resolve/main/wan2.1-i2v-14b-480p-Q5_K_M.gguf?download=true
102
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="C" (
103
+ curl -L -o wan2.1-i2v-14b-480p-Q3_K_S.gguf https://huggingface.co/city96/Wan2.1-I2V-14B-480P-gguf/resolve/main/wan2.1-i2v-14b-480p-Q3_K_S.gguf?download=true
104
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="D" (
105
+ curl -L -o wan2.1-i2v-14b-480p-Q8_0.gguf https://huggingface.co/city96/Wan2.1-I2V-14B-480P-gguf/resolve/main/wan2.1-i2v-14b-480p-Q8_0.gguf?download=true
106
+ curl -L -o wan2.1-i2v-14b-480p-Q5_K_M.gguf https://huggingface.co/city96/Wan2.1-I2V-14B-480P-gguf/resolve/main/wan2.1-i2v-14b-480p-Q5_K_M.gguf?download=true
107
+ curl -L -o wan2.1-i2v-14b-480p-Q3_K_S.gguf https://huggingface.co/city96/Wan2.1-I2V-14B-480P-gguf/resolve/main/wan2.1-i2v-14b-480p-Q3_K_S.gguf?download=true
108
+ )
109
+ )
110
+ cd ..
111
+
112
+ REM Download clip vision
113
+ cd clip_vision
114
+ echo Downloading clip vision file...
115
+ curl -L -o clip_vision_h.safetensors https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/clip_vision/clip_vision_h.safetensors?download=true
116
+ cd ..
117
+
118
+ REM Download upscale model
119
+ echo Downloading upscale models...
120
+ cd upscale_models
121
+ curl -L -o 4x_foolhardy_Remacri.pth https://huggingface.co/FacehugmanIII/4x_foolhardy_Remacri/resolve/main/4x_foolhardy_Remacri.pth?download=true
122
+
123
+ cd ..\..