UmeAiRT commited on
Commit
c188f39
·
verified ·
1 Parent(s): a652d7c

Upload ComfyUI-WAN2.1-AllinOne-Auto_install.bat

Browse files
Files changed (1) hide show
  1. ComfyUI-WAN2.1-AllinOne-Auto_install.bat +247 -247
ComfyUI-WAN2.1-AllinOne-Auto_install.bat CHANGED
@@ -1,248 +1,248 @@
1
- @echo off
2
- setlocal enabledelayedexpansion
3
-
4
- :CHOOSE_OPTION
5
- REM Ask user for installation type
6
- echo Choose your preferred installation:
7
- echo A) Fast-Lowvram install (GGUF)
8
- echo B) Unoptimized normal model (bf16)
9
- set /p "CHOICE=Enter your choice (A or B) and press Enter: "
10
-
11
- if /i "%CHOICE%"=="A" (
12
- set "INSTALL_TYPE=fast-lowvram"
13
- ) else if /i "%CHOICE%"=="B" (
14
- set "INSTALL_TYPE=unoptimized"
15
- set "DOWNLOAD_GGUF=no"
16
- ) else (
17
- echo Invalid choice. Please enter A or B.
18
- goto CHOOSE_OPTION
19
- )
20
-
21
- :CHOOSE_FLUX_GGUF
22
- REM Ask user if they want to download FLUX GGUF Model
23
- echo Do you want to download FLUX GGUF Models?
24
- echo A) Q8_0 + T5_Q8 (24GB Vram)
25
- echo B) Q5_K_S + T5_Q5_K_M (16GB Vram)
26
- echo C) Q4_K_S + T5_Q3_K_L (less than 12GB Vram)
27
- echo D) All
28
- echo E) No
29
- set /p "FLUX_GGUF_CHOICE=Enter your choice (A,B,C,D or E) and press Enter: "
30
- if /i "%FLUX_GGUF_CHOICE%"=="A" (
31
- set "DOWNLOAD_GGUF=yes"
32
- ) else if /i "%FLUX_GGUF_CHOICE%"=="B" (
33
- set "DOWNLOAD_GGUF=yes"
34
- ) else if /i "%FLUX_GGUF_CHOICE%"=="C" (
35
- set "DOWNLOAD_GGUF=yes"
36
- ) else if /i "%FLUX_GGUF_CHOICE%"=="D" (
37
- set "DOWNLOAD_GGUF=yes"
38
- ) else if /i "%FLUX_GGUF_CHOICE%"=="E" (
39
- set "DOWNLOAD_GGUF=no"
40
- ) else (
41
- echo Invalid choice. Please enter A or B.
42
- goto CHOOSE_FLUX_GGUF
43
- )
44
-
45
- REM Check if 7-Zip is installed and get its path
46
- for %%I in (7z.exe) do set "SEVEN_ZIP_PATH=%%~$PATH:I"
47
- if not defined SEVEN_ZIP_PATH (
48
- if exist "%ProgramFiles%\7-Zip\7z.exe" (
49
- set "SEVEN_ZIP_PATH=%ProgramFiles%\7-Zip\7z.exe"
50
- ) else if exist "%ProgramFiles(x86)%\7-Zip\7z.exe" (
51
- set "SEVEN_ZIP_PATH=%ProgramFiles(x86)%\7-Zip\7z.exe"
52
- ) else (
53
- echo 7-Zip is not installed. Downloading and installing...
54
- curl -L -o 7z-installer.exe https://www.7-zip.org/a/7z2201-x64.exe
55
- 7z-installer.exe /S
56
- set "SEVEN_ZIP_PATH=%ProgramFiles%\7-Zip\7z.exe"
57
- if not exist "%SEVEN_ZIP_PATH%" (
58
- echo Installation of 7-Zip failed. Please install it manually and try again.
59
- exit /b 1
60
- )
61
- del 7z-installer.exe
62
- )
63
- )
64
-
65
- REM Check and install Git
66
- git --version > NUL 2>&1
67
- if %errorlevel% NEQ 0 (
68
- echo Installing Git...
69
- powershell -Command "& {Invoke-WebRequest -Uri 'https://github.com/git-for-windows/git/releases/download/v2.41.0.windows.3/Git-2.41.0.3-64-bit.exe' -OutFile 'Git-2.41.0.3-64-bit.exe'; if ($LASTEXITCODE -ne 0) { exit 1 }}"
70
- if %errorlevel% NEQ 0 (
71
- echo Failed to download Git installer.
72
- exit /b
73
- )
74
- start /wait Git-2.41.0.3-64-bit.exe /VERYSILENT
75
- del Git-2.41.0.3-64-bit.exe
76
- ) else (
77
- echo Git already installed.
78
- )
79
-
80
- REM Download ComfyUI
81
- echo Downloading ComfyUI...
82
- curl -L -o ComfyUI_windows_portable_nvidia_cu121_or_cpu.7z https://github.com/comfyanonymous/ComfyUI/releases/download/latest/ComfyUI_windows_portable_nvidia_cu121_or_cpu.7z
83
-
84
- REM Extract ComfyUI
85
- echo Extracting ComfyUI...
86
- "%SEVEN_ZIP_PATH%" x ComfyUI_windows_portable_nvidia_cu121_or_cpu.7z -o"%CD%" -y >nul 2>&1
87
-
88
- REM Check if extraction was successful
89
- if not exist "ComfyUI_windows_portable" (
90
- echo Extraction failed. Please check the downloaded file and try again.
91
- exit /b 1
92
- )
93
-
94
- REM Delete archive
95
- del /f ComfyUI_windows_portable_nvidia_cu121_or_cpu.7z -force
96
-
97
-
98
- REM Navigate to custom_nodes folder
99
- REM Update ComfyUI
100
- cd ComfyUI_windows_portable\update
101
- ..\python_embeded\python.exe -m pip install --upgrade pip >nul 2>&1
102
- ..\python_embeded\python.exe .\update.py ..\ComfyUI\ >nul 2>&1
103
- if exist update_new.py (
104
- move /y update_new.py update.py
105
- echo Running updater again since it got updated.
106
- ..\python_embeded\python.exe .\update.py ..\ComfyUI\ --skip_self_update >nul 2>&1
107
- )
108
-
109
- cd ..
110
- cd ComfyUI\custom_nodes
111
-
112
- REM Clone ComfyUI-Manager
113
- echo Installing ComfyUI-Manager...
114
- git clone https://github.com/ltdrdata/ComfyUI-Manager.git >nul 2>&1
115
- echo Installing additional nodes...
116
- echo - Impact-Pack
117
- git clone https://github.com/ltdrdata/ComfyUI-Impact-Pack >nul 2>&1
118
- cd ComfyUI-Impact-Pack
119
- git clone https://github.com/ltdrdata/ComfyUI-Impact-Subpack impact_subpack >nul 2>&1
120
- ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
121
- ..\..\..\python_embeded\python.exe -s -m pip install ultralytics --no-warn-script-location >nul 2>&1
122
- cd ..
123
-
124
- echo - GGUF
125
- git clone https://github.com/city96/ComfyUI-GGUF >nul 2>&1
126
- cd ComfyUI-GGUF
127
- ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
128
- cd ..
129
-
130
- echo - Custom-Scripts
131
- git clone https://github.com/pythongosssss/ComfyUI-Custom-Scripts >nul 2>&1
132
-
133
- echo - KJNodes
134
- git clone https://github.com/kijai/ComfyUI-KJNodes >nul 2>&1
135
- cd ComfyUI-KJNodes
136
- ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
137
- cd ..
138
-
139
- echo - ComfyUI-VideoHelperSuite
140
- git clone https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite >nul 2>&1
141
- cd ComfyUI-VideoHelperSuite
142
- ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
143
- cd ..
144
-
145
- echo - ComfyUI-Frame-Interpolation
146
- git clone https://github.com/Fannovel16/ComfyUI-Frame-Interpolation >nul 2>&1
147
- cd ComfyUI-Frame-Interpolation
148
- ..\..\..\python_embeded\python.exe -s -m pip install -r requirements-with-cupy.txt --no-warn-script-location >nul 2>&1
149
- cd ..
150
-
151
- echo - rgthree
152
- git clone https://github.com/rgthree/rgthree-comfy >nul 2>&1
153
- cd rgthree-comfy
154
- ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
155
- cd ..
156
-
157
- cd ..
158
- cd models
159
- REM Download VAE file
160
- echo Downloading VAE file...
161
- cd vae
162
- 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
163
-
164
- cd ..
165
-
166
- REM Download CLIP files
167
- echo Downloading CLIP files...
168
- cd clip
169
- 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
170
- cd ..
171
-
172
- REM Download Diffusion models files
173
- cd diffusion_models
174
- if "%INSTALL_TYPE%"=="unoptimized" (
175
- echo Downloading diffusion models file...
176
- echo T2V Quant Model :
177
- 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
178
- echo I2V Quant Model :
179
- 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
180
- )
181
- if "%DOWNLOAD_GGUF%"=="yes" (
182
- echo Downloading GGUF T2V Quant Model...
183
- if /i "%FLUX_GGUF_CHOICE%"=="A" (
184
- 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
185
- ) else if /i "%FLUX_GGUF_CHOICE%"=="B" (
186
- 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
187
- ) else if /i "%FLUX_GGUF_CHOICE%"=="C" (
188
- 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
189
- ) else if /i "%FLUX_GGUF_CHOICE%"=="D" (
190
- 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
191
- 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
192
- 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
193
- )
194
- )
195
- if "%DOWNLOAD_GGUF%"=="yes" (
196
- echo Downloading GGUF I2V Quant Model...
197
- if /i "%FLUX_GGUF_CHOICE%"=="A" (
198
- 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
199
- ) else if /i "%FLUX_GGUF_CHOICE%"=="B" (
200
- 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
201
- ) else if /i "%FLUX_GGUF_CHOICE%"=="C" (
202
- 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
203
- ) else if /i "%FLUX_GGUF_CHOICE%"=="D" (
204
- 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
205
- 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
206
- 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
207
- )
208
- )
209
- cd ..
210
-
211
- REM Download clip vision
212
- cd clip_vision
213
- echo Downloading clip vision file...
214
- 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
215
- cd ..
216
-
217
- REM Download upscale model
218
- echo Downloading upscale models...
219
- cd upscale_models
220
- curl -L -o 4x_foolhardy_Remacri.pth https://huggingface.co/FacehugmanIII/4x_foolhardy_Remacri/resolve/main/4x_foolhardy_Remacri.pth?download=true
221
-
222
- cd ..\..
223
-
224
- mkdir .\user\default
225
- echo Downloading comfy settings...
226
- cd user\default
227
- curl -L -o comfy.settings.json https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/others/comfy.settings.json?download=true
228
- echo Downloading comfy workflow...
229
- mkdir .\workflows
230
- cd workflows
231
- curl -L -o "UmeAiRT - WAN21 workflow.7z" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/blob/main/workflows/UmeAiRT-WAN21_workflow.7z
232
- "%SEVEN_ZIP_PATH%" x "UmeAiRT - WAN21 workflow.7z" -o"%CD%" -y >nul 2>&1
233
- del /f "UmeAiRT - WAN21 workflow.7z" -force >nul 2>&1
234
- cd ..\..\..\..
235
-
236
- curl -L -o "UmeAiRT-WAN2.1-Missing_nodes.bat" "https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/UmeAiRT-WAN2.1-Missing_nodes.bat?download=true"
237
- curl -L -o "UmeAiRT-WAN2.1-Model_downloader.bat" "https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/UmeAiRT-WAN2.1-Model_downloader.bat?download=true"
238
-
239
- REM Final steps based on user choice
240
- if "%INSTALL_TYPE%"=="fast-lowvram" (
241
- echo Downloading special run file for fast-lowvram...
242
- curl -L -o "run_nvidia_gpu-LOWVRAM.bat" "https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/scripts/run_nvidia_gpu-LOWVRAM.bat?download=true"
243
- echo ComfyUI and FLUX installed. Running ComfyUI...
244
- call "run_nvidia_gpu-LOWVRAM.bat"
245
- ) else (
246
- echo ComfyUI and FLUX installed. HAVE FUN ;)
247
- call "run_nvidia_gpu.bat"
248
  )
 
1
+ @echo off
2
+ setlocal enabledelayedexpansion
3
+
4
+ :CHOOSE_OPTION
5
+ REM Ask user for installation type
6
+ echo Choose your preferred installation:
7
+ echo A) Fast-Lowvram install (GGUF)
8
+ echo B) Unoptimized normal model (bf16)
9
+ set /p "CHOICE=Enter your choice (A or B) and press Enter: "
10
+
11
+ if /i "%CHOICE%"=="A" (
12
+ set "INSTALL_TYPE=fast-lowvram"
13
+ ) else if /i "%CHOICE%"=="B" (
14
+ set "INSTALL_TYPE=unoptimized"
15
+ set "DOWNLOAD_GGUF=no"
16
+ ) else (
17
+ echo Invalid choice. Please enter A or B.
18
+ goto CHOOSE_OPTION
19
+ )
20
+
21
+ :CHOOSE_FLUX_GGUF
22
+ REM Ask user if they want to download FLUX GGUF Model
23
+ echo Do you want to download FLUX GGUF Models?
24
+ echo A) Q8_0 + T5_Q8 (24GB Vram)
25
+ echo B) Q5_K_S + T5_Q5_K_M (16GB Vram)
26
+ echo C) Q4_K_S + T5_Q3_K_L (less than 12GB Vram)
27
+ echo D) All
28
+ echo E) No
29
+ set /p "FLUX_GGUF_CHOICE=Enter your choice (A,B,C,D or E) and press Enter: "
30
+ if /i "%FLUX_GGUF_CHOICE%"=="A" (
31
+ set "DOWNLOAD_GGUF=yes"
32
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="B" (
33
+ set "DOWNLOAD_GGUF=yes"
34
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="C" (
35
+ set "DOWNLOAD_GGUF=yes"
36
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="D" (
37
+ set "DOWNLOAD_GGUF=yes"
38
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="E" (
39
+ set "DOWNLOAD_GGUF=no"
40
+ ) else (
41
+ echo Invalid choice. Please enter A or B.
42
+ goto CHOOSE_FLUX_GGUF
43
+ )
44
+
45
+ REM Check if 7-Zip is installed and get its path
46
+ for %%I in (7z.exe) do set "SEVEN_ZIP_PATH=%%~$PATH:I"
47
+ if not defined SEVEN_ZIP_PATH (
48
+ if exist "%ProgramFiles%\7-Zip\7z.exe" (
49
+ set "SEVEN_ZIP_PATH=%ProgramFiles%\7-Zip\7z.exe"
50
+ ) else if exist "%ProgramFiles(x86)%\7-Zip\7z.exe" (
51
+ set "SEVEN_ZIP_PATH=%ProgramFiles(x86)%\7-Zip\7z.exe"
52
+ ) else (
53
+ echo 7-Zip is not installed. Downloading and installing...
54
+ curl -L -o 7z-installer.exe https://www.7-zip.org/a/7z2201-x64.exe
55
+ 7z-installer.exe /S
56
+ set "SEVEN_ZIP_PATH=%ProgramFiles%\7-Zip\7z.exe"
57
+ if not exist "%SEVEN_ZIP_PATH%" (
58
+ echo Installation of 7-Zip failed. Please install it manually and try again.
59
+ exit /b 1
60
+ )
61
+ del 7z-installer.exe
62
+ )
63
+ )
64
+
65
+ REM Check and install Git
66
+ git --version > NUL 2>&1
67
+ if %errorlevel% NEQ 0 (
68
+ echo Installing Git...
69
+ powershell -Command "& {Invoke-WebRequest -Uri 'https://github.com/git-for-windows/git/releases/download/v2.41.0.windows.3/Git-2.41.0.3-64-bit.exe' -OutFile 'Git-2.41.0.3-64-bit.exe'; if ($LASTEXITCODE -ne 0) { exit 1 }}"
70
+ if %errorlevel% NEQ 0 (
71
+ echo Failed to download Git installer.
72
+ exit /b
73
+ )
74
+ start /wait Git-2.41.0.3-64-bit.exe /VERYSILENT
75
+ del Git-2.41.0.3-64-bit.exe
76
+ ) else (
77
+ echo Git already installed.
78
+ )
79
+
80
+ REM Download ComfyUI
81
+ echo Downloading ComfyUI...
82
+ curl -L -o ComfyUI_windows_portable_nvidia_cu121_or_cpu.7z https://github.com/comfyanonymous/ComfyUI/releases/download/latest/ComfyUI_windows_portable_nvidia_cu121_or_cpu.7z
83
+
84
+ REM Extract ComfyUI
85
+ echo Extracting ComfyUI...
86
+ "%SEVEN_ZIP_PATH%" x ComfyUI_windows_portable_nvidia_cu121_or_cpu.7z -o"%CD%" -y >nul 2>&1
87
+
88
+ REM Check if extraction was successful
89
+ if not exist "ComfyUI_windows_portable" (
90
+ echo Extraction failed. Please check the downloaded file and try again.
91
+ exit /b 1
92
+ )
93
+
94
+ REM Delete archive
95
+ del /f ComfyUI_windows_portable_nvidia_cu121_or_cpu.7z -force
96
+
97
+
98
+ REM Navigate to custom_nodes folder
99
+ REM Update ComfyUI
100
+ cd ComfyUI_windows_portable\update
101
+ ..\python_embeded\python.exe -m pip install --upgrade pip >nul 2>&1
102
+ ..\python_embeded\python.exe .\update.py ..\ComfyUI\ >nul 2>&1
103
+ if exist update_new.py (
104
+ move /y update_new.py update.py
105
+ echo Running updater again since it got updated.
106
+ ..\python_embeded\python.exe .\update.py ..\ComfyUI\ --skip_self_update >nul 2>&1
107
+ )
108
+
109
+ cd ..
110
+ cd ComfyUI\custom_nodes
111
+
112
+ REM Clone ComfyUI-Manager
113
+ echo Installing ComfyUI-Manager...
114
+ git clone https://github.com/ltdrdata/ComfyUI-Manager.git >nul 2>&1
115
+ echo Installing additional nodes...
116
+ echo - Impact-Pack
117
+ git clone https://github.com/ltdrdata/ComfyUI-Impact-Pack >nul 2>&1
118
+ cd ComfyUI-Impact-Pack
119
+ git clone https://github.com/ltdrdata/ComfyUI-Impact-Subpack impact_subpack >nul 2>&1
120
+ ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
121
+ ..\..\..\python_embeded\python.exe -s -m pip install ultralytics --no-warn-script-location >nul 2>&1
122
+ cd ..
123
+
124
+ echo - GGUF
125
+ git clone https://github.com/city96/ComfyUI-GGUF >nul 2>&1
126
+ cd ComfyUI-GGUF
127
+ ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
128
+ cd ..
129
+
130
+ echo - Custom-Scripts
131
+ git clone https://github.com/pythongosssss/ComfyUI-Custom-Scripts >nul 2>&1
132
+
133
+ echo - KJNodes
134
+ git clone https://github.com/kijai/ComfyUI-KJNodes >nul 2>&1
135
+ cd ComfyUI-KJNodes
136
+ ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
137
+ cd ..
138
+
139
+ echo - ComfyUI-VideoHelperSuite
140
+ git clone https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite >nul 2>&1
141
+ cd ComfyUI-VideoHelperSuite
142
+ ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
143
+ cd ..
144
+
145
+ echo - ComfyUI-Frame-Interpolation
146
+ git clone https://github.com/Fannovel16/ComfyUI-Frame-Interpolation >nul 2>&1
147
+ cd ComfyUI-Frame-Interpolation
148
+ ..\..\..\python_embeded\python.exe -s -m pip install -r requirements-with-cupy.txt --no-warn-script-location >nul 2>&1
149
+ cd ..
150
+
151
+ echo - rgthree
152
+ git clone https://github.com/rgthree/rgthree-comfy >nul 2>&1
153
+ cd rgthree-comfy
154
+ ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
155
+ cd ..
156
+
157
+ cd ..
158
+ cd models
159
+ REM Download VAE file
160
+ echo Downloading VAE file...
161
+ cd vae
162
+ 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
163
+
164
+ cd ..
165
+
166
+ REM Download CLIP files
167
+ echo Downloading CLIP files...
168
+ cd clip
169
+ 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
170
+ cd ..
171
+
172
+ REM Download Diffusion models files
173
+ cd diffusion_models
174
+ if "%INSTALL_TYPE%"=="unoptimized" (
175
+ echo Downloading diffusion models file...
176
+ echo T2V Quant Model :
177
+ 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
178
+ echo I2V Quant Model :
179
+ 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
180
+ )
181
+ if "%DOWNLOAD_GGUF%"=="yes" (
182
+ echo Downloading GGUF T2V Quant Model...
183
+ if /i "%FLUX_GGUF_CHOICE%"=="A" (
184
+ 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
185
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="B" (
186
+ 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
187
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="C" (
188
+ 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
189
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="D" (
190
+ 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
191
+ 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
192
+ 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
193
+ )
194
+ )
195
+ if "%DOWNLOAD_GGUF%"=="yes" (
196
+ echo Downloading GGUF I2V Quant Model...
197
+ if /i "%FLUX_GGUF_CHOICE%"=="A" (
198
+ 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
199
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="B" (
200
+ 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
201
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="C" (
202
+ 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
203
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="D" (
204
+ 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
205
+ 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
206
+ 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
207
+ )
208
+ )
209
+ cd ..
210
+
211
+ REM Download clip vision
212
+ cd clip_vision
213
+ echo Downloading clip vision file...
214
+ 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
215
+ cd ..
216
+
217
+ REM Download upscale model
218
+ echo Downloading upscale models...
219
+ cd upscale_models
220
+ curl -L -o 4x_foolhardy_Remacri.pth https://huggingface.co/FacehugmanIII/4x_foolhardy_Remacri/resolve/main/4x_foolhardy_Remacri.pth?download=true
221
+
222
+ cd ..\..
223
+
224
+ mkdir .\user\default
225
+ echo Downloading comfy settings...
226
+ cd user\default
227
+ curl -L -o comfy.settings.json https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/others/comfy.settings.json?download=true
228
+ echo Downloading comfy workflow...
229
+ mkdir .\workflows
230
+ cd workflows
231
+ curl -L -o "UmeAiRT-WAN21_workflow.7z" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/workflows/UmeAiRT-WAN21_workflow.7z?download=true
232
+ "%SEVEN_ZIP_PATH%" x "UmeAiRT-WAN21_workflow.7z" -o"%CD%" -y >nul 2>&1
233
+ del /f "UmeAiRT-WAN21_workflow.7z" -force >nul 2>&1
234
+ cd ..\..\..\..
235
+
236
+ curl -L -o "UmeAiRT-WAN2.1-Missing_nodes.bat" "https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/UmeAiRT-WAN2.1-Missing_nodes.bat?download=true"
237
+ curl -L -o "UmeAiRT-WAN2.1-Model_downloader.bat" "https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/UmeAiRT-WAN2.1-Model_downloader.bat?download=true"
238
+
239
+ REM Final steps based on user choice
240
+ if "%INSTALL_TYPE%"=="fast-lowvram" (
241
+ echo Downloading special run file for fast-lowvram...
242
+ curl -L -o "run_nvidia_gpu-LOWVRAM.bat" "https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/scripts/run_nvidia_gpu-LOWVRAM.bat?download=true"
243
+ echo ComfyUI and FLUX installed. Running ComfyUI...
244
+ call "run_nvidia_gpu-LOWVRAM.bat"
245
+ ) else (
246
+ echo ComfyUI and FLUX installed. HAVE FUN ;)
247
+ call "run_nvidia_gpu.bat"
248
  )