UmeAiRT commited on
Commit
f707293
·
verified ·
1 Parent(s): c188f39
Files changed (1) hide show
  1. ComfyUI-FLUX-AllinOne-Auto_install.bat +397 -397
ComfyUI-FLUX-AllinOne-Auto_install.bat CHANGED
@@ -1,398 +1,398 @@
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
8
- echo B) Unoptimized normal model
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
- ) else (
16
- echo Invalid choice. Please enter A or B.
17
- goto CHOOSE_OPTION
18
- )
19
-
20
- :CHOOSE_FLUX_SCHNELL
21
- REM Ask user if they want to download FLUX SCHNELL Model
22
- echo Do you want to download the FLUX SCHNELL Model?
23
- echo A) Yes
24
- echo B) No
25
- set /p "FLUX_SCHNELL_CHOICE=Enter your choice (A or B) and press Enter: "
26
-
27
- if /i "%FLUX_SCHNELL_CHOICE%"=="A" (
28
- set "DOWNLOAD_FLUX_SCHNELL=yes"
29
- ) else if /i "%FLUX_SCHNELL_CHOICE%"=="B" (
30
- set "DOWNLOAD_FLUX_SCHNELL=no"
31
- ) else (
32
- echo Invalid choice. Please enter A or B.
33
- goto CHOOSE_FLUX_SCHNELL
34
- )
35
-
36
- :CHOOSE_FLUX_GGUF
37
- REM Ask user if they want to download FLUX GGUF Model
38
- echo Do you want to download FLUX GGUF Models?
39
- echo A) Q8_0 + T5_Q8 (24GB Vram)
40
- echo B) Q5_K_S + T5_Q5_K_M (16GB Vram)
41
- echo C) Q4_K_S + T5_Q3_K_L (less than 12GB Vram)
42
- echo D) All
43
- echo E) No
44
- set /p "FLUX_GGUF_CHOICE=Enter your choice (A,B,C,D or E) and press Enter: "
45
-
46
- if /i "%FLUX_GGUF_CHOICE%"=="A" (
47
- set "DOWNLOAD_GGUF=yes"
48
- ) else if /i "%FLUX_GGUF_CHOICE%"=="B" (
49
- set "DOWNLOAD_GGUF=yes"
50
- ) else if /i "%FLUX_GGUF_CHOICE%"=="C" (
51
- set "DOWNLOAD_GGUF=yes"
52
- ) else if /i "%FLUX_GGUF_CHOICE%"=="D" (
53
- set "DOWNLOAD_GGUF=yes"
54
- ) else if /i "%FLUX_GGUF_CHOICE%"=="E" (
55
- set "DOWNLOAD_GGUF=no"
56
- ) else (
57
- echo Invalid choice. Please enter A or B.
58
- goto CHOOSE_FLUX_GGUF
59
- )
60
-
61
- :CHOOSE_FLUX_CONTROLNET
62
- REM Ask user if they want to download FLUX SCHNELL Model
63
- echo Do you want to download FLUX ControlNet Models?
64
- echo A) Yes
65
- echo B) No
66
- set /p "FLUX_CONTROLNET_CHOICE=Enter your choice (A or B) and press Enter: "
67
-
68
- if /i "%FLUX_CONTROLNET_CHOICE%"=="A" (
69
- set "DOWNLOAD_FLUX_CONTROLNET=yes"
70
- ) else if /i "%FLUX_CONTROLNET_CHOICE%"=="B" (
71
- set "DOWNLOAD_FLUX_CONTROLNET=no"
72
- ) else (
73
- echo Invalid choice. Please enter A or B.
74
- goto CHOOSE_FLUX_CONTROLNET
75
- )
76
-
77
- :CHOOSE_FLUX_LORA
78
- REM Ask user if they want to download FLUX LORA
79
- echo Do you want to download UmeAiRT LoRAs?
80
- echo A) Yes
81
- echo B) No
82
- set /p "FLUX_LORA_CHOICE=Enter your choice (A or B) and press Enter: "
83
-
84
- if /i "%FLUX_LORA_CHOICE%"=="A" (
85
- set "DOWNLOAD_FLUX_LORA=yes"
86
- ) else if /i "%FLUX_LORA_CHOICE%"=="B" (
87
- set "DOWNLOAD_FLUX_LORA=no"
88
- ) else (
89
- echo Invalid choice. Please enter A or B.
90
- goto CHOOSE_FLUX_LORA
91
- )
92
-
93
- REM Check if 7-Zip is installed and get its path
94
- for %%I in (7z.exe) do set "SEVEN_ZIP_PATH=%%~$PATH:I"
95
- if not defined SEVEN_ZIP_PATH (
96
- if exist "%ProgramFiles%\7-Zip\7z.exe" (
97
- set "SEVEN_ZIP_PATH=%ProgramFiles%\7-Zip\7z.exe"
98
- ) else if exist "%ProgramFiles(x86)%\7-Zip\7z.exe" (
99
- set "SEVEN_ZIP_PATH=%ProgramFiles(x86)%\7-Zip\7z.exe"
100
- ) else (
101
- echo 7-Zip is not installed. Downloading and installing...
102
- curl -L -o 7z-installer.exe https://www.7-zip.org/a/7z2201-x64.exe
103
- 7z-installer.exe /S
104
- set "SEVEN_ZIP_PATH=%ProgramFiles%\7-Zip\7z.exe"
105
- if not exist "%SEVEN_ZIP_PATH%" (
106
- echo Installation of 7-Zip failed. Please install it manually and try again.
107
- exit /b 1
108
- )
109
- del 7z-installer.exe
110
- )
111
- )
112
-
113
- REM Check and install Git
114
- git --version > NUL 2>&1
115
- if %errorlevel% NEQ 0 (
116
- echo Installing Git...
117
- 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 }}"
118
- if %errorlevel% NEQ 0 (
119
- echo Failed to download Git installer.
120
- exit /b
121
- )
122
- start /wait Git-2.41.0.3-64-bit.exe /VERYSILENT
123
- del Git-2.41.0.3-64-bit.exe
124
- ) else (
125
- echo Git already installed.
126
- )
127
-
128
- REM Download ComfyUI
129
- echo Downloading ComfyUI...
130
- 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
131
-
132
- REM Extract ComfyUI
133
- echo Extracting ComfyUI...
134
- "%SEVEN_ZIP_PATH%" x ComfyUI_windows_portable_nvidia_cu121_or_cpu.7z -o"%CD%" -y >nul 2>&1
135
-
136
- REM Check if extraction was successful
137
- if not exist "ComfyUI_windows_portable" (
138
- echo Extraction failed. Please check the downloaded file and try again.
139
- exit /b 1
140
- )
141
-
142
- REM Delete archive
143
- del /f ComfyUI_windows_portable_nvidia_cu121_or_cpu.7z -force
144
-
145
-
146
- REM Navigate to custom_nodes folder
147
- REM Update ComfyUI
148
- cd ComfyUI_windows_portable\update
149
- ..\python_embeded\python.exe -m pip install --upgrade pip >nul 2>&1
150
- ..\python_embeded\python.exe .\update.py ..\ComfyUI\ >nul 2>&1
151
- if exist update_new.py (
152
- move /y update_new.py update.py
153
- echo Running updater again since it got updated.
154
- ..\python_embeded\python.exe .\update.py ..\ComfyUI\ --skip_self_update >nul 2>&1
155
- )
156
-
157
- cd ..
158
- cd ComfyUI\custom_nodes
159
-
160
- REM Clone ComfyUI-Manager
161
- echo Installing ComfyUI-Manager...
162
- git clone https://github.com/ltdrdata/ComfyUI-Manager.git >nul 2>&1
163
- echo Installing additional nodes...
164
- echo - Impact-Pack
165
- git clone https://github.com/ltdrdata/ComfyUI-Impact-Pack >nul 2>&1
166
- cd ComfyUI-Impact-Pack
167
- git clone https://github.com/ltdrdata/ComfyUI-Impact-Subpack impact_subpack >nul 2>&1
168
- ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
169
- ..\..\..\python_embeded\python.exe -s -m pip install ultralytics --no-warn-script-location >nul 2>&1
170
- cd ..
171
-
172
- echo - WAS-Suite
173
- git clone https://github.com/WASasquatch/was-node-suite-comfyui >nul 2>&1
174
- cd was-node-suite-comfyui
175
- ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
176
- cd ..
177
-
178
- echo - GGUF
179
- git clone https://github.com/city96/ComfyUI-GGUF >nul 2>&1
180
- cd ComfyUI-GGUF
181
- ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
182
- cd ..
183
-
184
- echo - Custom-Scripts
185
- git clone https://github.com/pythongosssss/ComfyUI-Custom-Scripts >nul 2>&1
186
-
187
- echo - UltimateSDUpscale
188
- git clone https://github.com/ssitu/ComfyUI_UltimateSDUpscale --recursive >nul 2>&1
189
-
190
- echo - rgthree
191
- git clone https://github.com/rgthree/rgthree-comfy >nul 2>&1
192
- cd rgthree-comfy
193
- ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
194
- cd ..
195
-
196
- echo - Florence2
197
- git clone https://github.com/kijai/ComfyUI-Florence2 >nul 2>&1
198
- cd ComfyUI-Florence2
199
- ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
200
- cd ..
201
-
202
- echo - KJNodes
203
- git clone https://github.com/kijai/ComfyUI-KJNodes >nul 2>&1
204
- cd ComfyUI-KJNodes
205
- ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
206
- cd ..
207
-
208
- echo - Image-Saver
209
- git clone https://github.com/alexopus/ComfyUI-Image-Saver >nul 2>&1
210
- cd ComfyUI-Image-Saver
211
- ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
212
- cd ..
213
-
214
- echo - RMBG
215
- git clone https://github.com/1038lab/ComfyUI-RMBG >nul 2>&1
216
- cd ComfyUI-RMBG
217
- ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
218
- cd ..
219
-
220
- echo - X-Flux
221
- git clone https://github.com/XLabs-AI/x-flux-comfyui >nul 2>&1
222
- cd x-flux-comfyui
223
- ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
224
- cd ..
225
-
226
- echo - mxToolkit
227
- git clone https://github.com/Smirnov75/ComfyUI-mxToolkit >nul 2>&1
228
-
229
- echo - Comfyroll
230
- git clone https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes >nul 2>&1
231
-
232
- echo - PulID
233
- git clone https://github.com/sipie800/ComfyUI-PuLID-Flux-Enhanced >nul 2>&1
234
- cd ..\..\python_embeded
235
- curl -L -o "insightface-0.7.3-cp311-cp311-win_amd64.whl" https://github.com/Gourieff/Assets/raw/main/Insightface/insightface-0.7.3-cp311-cp311-win_amd64.whl >nul 2>&1
236
- .\python.exe -m pip install --use-pep517 facexlib >nul 2>&1
237
- .\python.exe -m pip install git+https://github.com/rodjjo/filterpy.git >nul 2>&1
238
- .\python.exe -m pip install onnxruntime==1.19.2 onnxruntime-gpu==1.15.1 insightface-0.7.3-cp311-cp311-win_amd64.whl >nul 2>&1
239
- cd ..
240
- cd ComfyUI\custom_nodes\ComfyUI-PuLID-Flux-Enhanced
241
- ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
242
- cd ..\..
243
- cd models
244
- curl -L -o "insightface.7z" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/insightface.7z?download=true >nul 2>&1
245
- "%SEVEN_ZIP_PATH%" x insightface.7z -o"%CD%" -y >nul 2>&1
246
- del /f insightface.7z -force >nul 2>&1
247
- mkdir pulid
248
- cd pulid
249
- curl -L -o "pulid_flux_v0.9.0.safetensors" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/pulid/pulid_flux_v0.9.0.safetensors?download=true >nul 2>&1
250
- cd ..
251
-
252
- REM Download VAE file
253
- echo Downloading VAE file...
254
- cd vae
255
- curl -L -o ae.safetensors https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/vae/ae.safetensors?download=true
256
-
257
- cd ..
258
-
259
- REM Download CLIP files
260
- echo Downloading CLIP files...
261
- cd clip
262
- curl -L -o "clip_l.safetensors" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/clip/clip_l.safetensors?download=true
263
- curl -L -o "longclip-L.pt" https://huggingface.co/BeichenZhang/LongCLIP-L/blob/main/longclip-L.pt?download=true
264
- curl -L -o "t5xxl_fp8_e4m3fn.safetensors" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/clip/t5xxl_fp8_e4m3fn.safetensors?download=true
265
- curl -L -o "t5xxl_fp16.safetensors" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/clip/t5xxl_fp16.safetensors?download=true
266
- curl -L -o "ViT-L-14-TEXT-detail-improved-hiT-GmP-TE-only-HF.safetensors" https://huggingface.co/zer0int/CLIP-GmP-ViT-L-14/resolve/main/ViT-L-14-TEXT-detail-improved-hiT-GmP-TE-only-HF.safetensors?download=true
267
-
268
- if "%DOWNLOAD_GGUF%"=="yes" (
269
- echo Downloading FLUX GGUF encoder Model...
270
- if /i "%FLUX_GGUF_CHOICE%"=="A" (
271
- curl -L -o t5-v1_1-xxl-encoder-Q8_0.gguf https://huggingface.co/city96/t5-v1_1-xxl-encoder-gguf/resolve/main/t5-v1_1-xxl-encoder-Q8_0.gguf?download=true
272
- ) else if /i "%FLUX_GGUF_CHOICE%"=="B" (
273
- curl -L -o t5-v1_1-xxl-encoder-Q5_K_M.gguf https://huggingface.co/city96/t5-v1_1-xxl-encoder-gguf/resolve/main/t5-v1_1-xxl-encoder-Q5_K_M.gguf?download=true
274
- ) else if /i "%FLUX_GGUF_CHOICE%"=="C" (
275
- curl -L -o t5-v1_1-xxl-encoder-Q3_K_L.gguf https://huggingface.co/city96/t5-v1_1-xxl-encoder-gguf/resolve/main/t5-v1_1-xxl-encoder-Q3_K_L.gguf?download=true
276
- ) else if /i "%FLUX_GGUF_CHOICE%"=="D" (
277
- curl -L -o t5-v1_1-xxl-encoder-Q8_0.gguf https://huggingface.co/city96/t5-v1_1-xxl-encoder-gguf/resolve/main/t5-v1_1-xxl-encoder-Q8_0.gguf?download=true
278
- curl -L -o t5-v1_1-xxl-encoder-Q5_K_M.gguf https://huggingface.co/city96/t5-v1_1-xxl-encoder-gguf/resolve/main/t5-v1_1-xxl-encoder-Q5_K_M.gguf?download=true
279
- curl -L -o t5-v1_1-xxl-encoder-Q3_K_L.gguf https://huggingface.co/city96/t5-v1_1-xxl-encoder-gguf/resolve/main/t5-v1_1-xxl-encoder-Q3_K_L.gguf?download=true
280
- )
281
- )
282
- cd ..
283
-
284
- REM Download UNET file based on user choice
285
- echo Downloading UNET file...
286
- cd unet
287
- if "%INSTALL_TYPE%"=="fast-lowvram" (
288
- curl -L -o flux1-dev-fp8.safetensors https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/unet/flux1-dev-fp8.safetensors?download=true
289
- ) else (
290
- curl -L -o flux1-dev.sft https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/unet/flux1-dev.sft?download=true
291
- )
292
-
293
- if "%DOWNLOAD_GGUF%"=="yes" (
294
- echo Downloading FLUX GGUF Model...
295
- if /i "%FLUX_GGUF_CHOICE%"=="A" (
296
- curl -L -o flux1-dev-Q8_0.gguf https://huggingface.co/city96/FLUX.1-dev-gguf/resolve/main/flux1-dev-Q8_0.gguf?download=true
297
- ) else if /i "%FLUX_GGUF_CHOICE%"=="B" (
298
- curl -L -o flux1-dev-Q5_K_S.gguf https://huggingface.co/city96/FLUX.1-dev-gguf/resolve/main/flux1-dev-Q5_K_S.gguf?download=true
299
- ) else if /i "%FLUX_GGUF_CHOICE%"=="C" (
300
- curl -L -o flux1-dev-Q4_K_S.gguf https://huggingface.co/city96/FLUX.1-dev-gguf/resolve/main/flux1-dev-Q4_K_S.gguf?download=true
301
- ) else if /i "%FLUX_GGUF_CHOICE%"=="D" (
302
- curl -L -o flux1-dev-Q8_0.gguf https://huggingface.co/city96/FLUX.1-dev-gguf/resolve/main/flux1-dev-Q8_0.gguf?download=true
303
- curl -L -o flux1-dev-Q5_K_S.gguf https://huggingface.co/city96/FLUX.1-dev-gguf/resolve/main/flux1-dev-Q5_K_S.gguf?download=true
304
- curl -L -o flux1-dev-Q4_K_S.gguf https://huggingface.co/city96/FLUX.1-dev-gguf/resolve/main/flux1-dev-Q4_K_S.gguf?download=true
305
- )
306
- )
307
-
308
- REM Download FLUX SCHNELL Model if user chose to
309
- if "%DOWNLOAD_FLUX_SCHNELL%"=="yes" (
310
- echo Downloading FLUX SCHNELL Model...
311
- curl -L -o flux1-schnell-fp8.safetensors https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/unet/flux1-schnell-fp8.safetensors?download=true
312
- )
313
-
314
- cd ..
315
-
316
- cd loras
317
- REM Download FLUX SCHNELL Model if user chose to
318
- if "%DOWNLOAD_FLUX_LORA%"=="yes" (
319
- echo Downloading UmeAiRT LoRAs...
320
- curl -L -o ume_sky_v2.safetensors https://huggingface.co/UmeAiRT/FLUX.1-dev-LoRA-Ume_Sky/resolve/main/ume_sky_v2.safetensors?download=true
321
- curl -L -o ume_modern_pixelart.safetensors https://huggingface.co/UmeAiRT/FLUX.1-dev-LoRA-Modern_Pixel_art/resolve/main/ume_modern_pixelart.safetensors?download=true
322
- curl -L -o ume_classic_Romanticism.safetensors https://huggingface.co/UmeAiRT/FLUX.1-dev-LoRA-Romanticism/resolve/main/ume_classic_Romanticism.safetensors?download=true
323
- curl -L -o ume_classic_impressionist.safetensors https://huggingface.co/UmeAiRT/FLUX.1-dev-LoRA-Impressionism/resolve/main/ume_classic_impressionist.safetensors?download=true
324
- curl -L -o ume_the-little-newspaper.safetensors https://huggingface.co/UmeAiRT/FLUX.1-dev-LoRA-Ume_J1900/resolve/main/umej1900.safetensors?download=true
325
- curl -L -o ume_knight.safetensors https://huggingface.co/UmeAiRT/FLUX.1-dev-LoRA-Ume_Knight/resolve/main/ume_gachaak.safetensors?download=true
326
- )
327
-
328
- cd ..
329
-
330
- REM Download upscale model
331
- echo Downloading upscale models...
332
- cd upscale_models
333
- curl -L -o 4x_NMKD-Siax_200k.pth https://huggingface.co/uwg/upscaler/resolve/main/ESRGAN/4x_NMKD-Siax_200k.pth?download=true
334
- curl -L -o 4x-ClearRealityV1.pth https://huggingface.co/skbhadra/ClearRealityV1/resolve/main/4x-ClearRealityV1.pth?download=true
335
-
336
- cd ..
337
-
338
- mkdir LLM
339
- mkdir .\xlabs\controlnets
340
- cd xlabs\controlnets
341
- REM Download FLUX ControlNet Models if user chose to
342
- if "%DOWNLOAD_FLUX_CONTROLNET%"=="yes" (
343
- echo Downloading FLUX ControlNet Models...
344
- curl -L -o flux-canny-controlnet-v3.safetensors https://huggingface.co/XLabs-AI/flux-controlnet-canny-v3/resolve/main/flux-canny-controlnet-v3.safetensors?download=true
345
- curl -L -o flux-depth-controlnet-v3.safetensors https://huggingface.co/XLabs-AI/flux-controlnet-depth-v3/resolve/main/flux-depth-controlnet-v3.safetensors?download=true
346
- curl -L -o flux-hed-controlnet-v3.safetensors https://huggingface.co/XLabs-AI/flux-controlnet-hed-v3/resolve/main/flux-hed-controlnet-v3.safetensors?download=true
347
- cd ..\..
348
- cd unet
349
- curl -L -o flux1-depth-dev-fp8.safetensors https://huggingface.co/boricuapab/flux1-depth-dev-fp8/resolve/main/flux1-depth-dev-fp8.safetensors?download=true
350
- curl -L -o flux1-canny-dev-fp8.safetensors https://huggingface.co/boricuapab/flux1-canny-dev-fp8/resolve/main/flux1-canny-dev-fp8.safetensors?download=true
351
- if "%DOWNLOAD_GGUF%"=="yes" (
352
- echo Downloading ControlNet GGUF Model...
353
- if /i "%FLUX_GGUF_CHOICE%"=="A" (
354
- curl -L -o flux1-depth-dev-fp16-Q8_0-GGUF.gguf https://huggingface.co/SporkySporkness/FLUX.1-Depth-dev-GGUF/resolve/main/flux1-depth-dev-fp16-Q8_0-GGUF.gguf?download=true
355
- curl -L -o flux1-canny-dev-fp16-Q8_0-GGUF.gguf https://huggingface.co/SporkySporkness/FLUX.1-Canny-dev-GGUF/resolve/main/flux1-canny-dev-fp16-Q8_0-GGUF.gguf?download=true
356
- ) else if /i "%FLUX_GGUF_CHOICE%"=="B" (
357
- curl -L -o flux1-depth-dev-fp16-Q5_0-GGUF.gguf https://huggingface.co/SporkySporkness/FLUX.1-Depth-dev-GGUF/resolve/main/flux1-depth-dev-fp16-Q5_0-GGUF.gguf?download=true
358
- curl -L -o flux1-canny-dev-fp16-Q5_0-GGUF.gguf https://huggingface.co/SporkySporkness/FLUX.1-Canny-dev-GGUF/resolve/main/flux1-canny-dev-fp16-Q5_0-GGUF.gguf?download=true
359
- ) else if /i "%FLUX_GGUF_CHOICE%"=="C" (
360
- curl -L -o flux1-depth-dev-fp16-Q4_0-GGUF.gguf https://huggingface.co/SporkySporkness/FLUX.1-Depth-dev-GGUF/resolve/main/flux1-depth-dev-fp16-Q4_0-GGUF.gguf?download=true
361
- curl -L -o flux1-canny-dev-fp16-Q4_0-GGUF.gguf https://huggingface.co/SporkySporkness/FLUX.1-Canny-dev-GGUF/resolve/main/flux1-canny-dev-fp16-Q4_0-GGUF.gguf?download=true
362
- ) else if /i "%FLUX_GGUF_CHOICE%"=="D" (
363
- curl -L -o flux1-depth-dev-fp16-Q8_0-GGUF.gguf https://huggingface.co/SporkySporkness/FLUX.1-Depth-dev-GGUF/resolve/main/flux1-depth-dev-fp16-Q8_0-GGUF.gguf?download=true
364
- curl -L -o flux1-depth-dev-fp16-Q5_0-GGUF.gguf https://huggingface.co/SporkySporkness/FLUX.1-Depth-dev-GGUF/resolve/main/flux1-depth-dev-fp16-Q5_0-GGUF.gguf?download=true
365
- curl -L -o flux1-depth-dev-fp16-Q4_0-GGUF.gguf https://huggingface.co/SporkySporkness/FLUX.1-Depth-dev-GGUF/resolve/main/flux1-depth-dev-fp16-Q4_0-GGUF.gguf?download=true
366
- curl -L -o flux1-canny-dev-fp16-Q8_0-GGUF.gguf https://huggingface.co/SporkySporkness/FLUX.1-Canny-dev-GGUF/resolve/main/flux1-canny-dev-fp16-Q8_0-GGUF.gguf?download=true
367
- curl -L -o flux1-canny-dev-fp16-Q5_0-GGUF.gguf https://huggingface.co/SporkySporkness/FLUX.1-Canny-dev-GGUF/resolve/main/flux1-canny-dev-fp16-Q5_0-GGUF.gguf?download=true
368
- curl -L -o flux1-canny-dev-fp16-Q4_0-GGUF.gguf https://huggingface.co/SporkySporkness/FLUX.1-Canny-dev-GGUF/resolve/main/flux1-canny-dev-fp16-Q4_0-GGUF.gguf?download=true
369
- )
370
- )
371
- cd ..
372
- cd controlnet
373
- curl -L -o diffusion_pytorch_model_promax.safetensors https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/controlnet/diffusion_pytorch_model_promax.safetensors?download=true
374
- curl -L -o Shakker-LabsFLUX1-dev-ControlNet-Union-Pro.safetensors https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/controlnet/Shakker-LabsFLUX1-dev-ControlNet-Union-Pro.safetensors?download=true
375
- )
376
-
377
- cd ..\..\..
378
- mkdir .\user\default
379
- echo Downloading comfy settings...
380
- cd user\default
381
- curl -L -o comfy.settings.json https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/others/comfy.settings.json?download=true
382
- echo Downloading comfy workflow...
383
- mkdir .\workflows
384
- cd workflows
385
- curl -L -o "UmeAiRT - Flux workflow.7z" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/workflows/UmeAiRT-Flux_workflow.7z?download=true
386
- "%SEVEN_ZIP_PATH%" x "UmeAiRT - Flux workflow.7z" -o"%CD%" -y >nul 2>&1
387
- del /f "UmeAiRT - Flux workflow.7z" -force >nul 2>&1
388
- cd ..\..\..\..\..
389
-
390
- REM Final steps based on user choice
391
- if "%INSTALL_TYPE%"=="fast-lowvram" (
392
- echo Downloading special run file for fast-lowvram...
393
- 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"
394
- echo ComfyUI and FLUX installed. Running ComfyUI...
395
- call "run_nvidia_gpu-LOWVRAM.bat"
396
- ) else (
397
- echo ComfyUI and FLUX installed. HAVE FUN ;)
398
  )
 
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
8
+ echo B) Unoptimized normal model
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
+ ) else (
16
+ echo Invalid choice. Please enter A or B.
17
+ goto CHOOSE_OPTION
18
+ )
19
+
20
+ :CHOOSE_FLUX_SCHNELL
21
+ REM Ask user if they want to download FLUX SCHNELL Model
22
+ echo Do you want to download the FLUX SCHNELL Model?
23
+ echo A) Yes
24
+ echo B) No
25
+ set /p "FLUX_SCHNELL_CHOICE=Enter your choice (A or B) and press Enter: "
26
+
27
+ if /i "%FLUX_SCHNELL_CHOICE%"=="A" (
28
+ set "DOWNLOAD_FLUX_SCHNELL=yes"
29
+ ) else if /i "%FLUX_SCHNELL_CHOICE%"=="B" (
30
+ set "DOWNLOAD_FLUX_SCHNELL=no"
31
+ ) else (
32
+ echo Invalid choice. Please enter A or B.
33
+ goto CHOOSE_FLUX_SCHNELL
34
+ )
35
+
36
+ :CHOOSE_FLUX_GGUF
37
+ REM Ask user if they want to download FLUX GGUF Model
38
+ echo Do you want to download FLUX GGUF Models?
39
+ echo A) Q8_0 + T5_Q8 (24GB Vram)
40
+ echo B) Q5_K_S + T5_Q5_K_M (16GB Vram)
41
+ echo C) Q4_K_S + T5_Q3_K_L (less than 12GB Vram)
42
+ echo D) All
43
+ echo E) No
44
+ set /p "FLUX_GGUF_CHOICE=Enter your choice (A,B,C,D or E) and press Enter: "
45
+
46
+ if /i "%FLUX_GGUF_CHOICE%"=="A" (
47
+ set "DOWNLOAD_GGUF=yes"
48
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="B" (
49
+ set "DOWNLOAD_GGUF=yes"
50
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="C" (
51
+ set "DOWNLOAD_GGUF=yes"
52
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="D" (
53
+ set "DOWNLOAD_GGUF=yes"
54
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="E" (
55
+ set "DOWNLOAD_GGUF=no"
56
+ ) else (
57
+ echo Invalid choice. Please enter A or B.
58
+ goto CHOOSE_FLUX_GGUF
59
+ )
60
+
61
+ :CHOOSE_FLUX_CONTROLNET
62
+ REM Ask user if they want to download FLUX SCHNELL Model
63
+ echo Do you want to download FLUX ControlNet Models?
64
+ echo A) Yes
65
+ echo B) No
66
+ set /p "FLUX_CONTROLNET_CHOICE=Enter your choice (A or B) and press Enter: "
67
+
68
+ if /i "%FLUX_CONTROLNET_CHOICE%"=="A" (
69
+ set "DOWNLOAD_FLUX_CONTROLNET=yes"
70
+ ) else if /i "%FLUX_CONTROLNET_CHOICE%"=="B" (
71
+ set "DOWNLOAD_FLUX_CONTROLNET=no"
72
+ ) else (
73
+ echo Invalid choice. Please enter A or B.
74
+ goto CHOOSE_FLUX_CONTROLNET
75
+ )
76
+
77
+ :CHOOSE_FLUX_LORA
78
+ REM Ask user if they want to download FLUX LORA
79
+ echo Do you want to download UmeAiRT LoRAs?
80
+ echo A) Yes
81
+ echo B) No
82
+ set /p "FLUX_LORA_CHOICE=Enter your choice (A or B) and press Enter: "
83
+
84
+ if /i "%FLUX_LORA_CHOICE%"=="A" (
85
+ set "DOWNLOAD_FLUX_LORA=yes"
86
+ ) else if /i "%FLUX_LORA_CHOICE%"=="B" (
87
+ set "DOWNLOAD_FLUX_LORA=no"
88
+ ) else (
89
+ echo Invalid choice. Please enter A or B.
90
+ goto CHOOSE_FLUX_LORA
91
+ )
92
+
93
+ REM Check if 7-Zip is installed and get its path
94
+ for %%I in (7z.exe) do set "SEVEN_ZIP_PATH=%%~$PATH:I"
95
+ if not defined SEVEN_ZIP_PATH (
96
+ if exist "%ProgramFiles%\7-Zip\7z.exe" (
97
+ set "SEVEN_ZIP_PATH=%ProgramFiles%\7-Zip\7z.exe"
98
+ ) else if exist "%ProgramFiles(x86)%\7-Zip\7z.exe" (
99
+ set "SEVEN_ZIP_PATH=%ProgramFiles(x86)%\7-Zip\7z.exe"
100
+ ) else (
101
+ echo 7-Zip is not installed. Downloading and installing...
102
+ curl -L -o 7z-installer.exe https://www.7-zip.org/a/7z2201-x64.exe
103
+ 7z-installer.exe /S
104
+ set "SEVEN_ZIP_PATH=%ProgramFiles%\7-Zip\7z.exe"
105
+ if not exist "%SEVEN_ZIP_PATH%" (
106
+ echo Installation of 7-Zip failed. Please install it manually and try again.
107
+ exit /b 1
108
+ )
109
+ del 7z-installer.exe
110
+ )
111
+ )
112
+
113
+ REM Check and install Git
114
+ git --version > NUL 2>&1
115
+ if %errorlevel% NEQ 0 (
116
+ echo Installing Git...
117
+ 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 }}"
118
+ if %errorlevel% NEQ 0 (
119
+ echo Failed to download Git installer.
120
+ exit /b
121
+ )
122
+ start /wait Git-2.41.0.3-64-bit.exe /VERYSILENT
123
+ del Git-2.41.0.3-64-bit.exe
124
+ ) else (
125
+ echo Git already installed.
126
+ )
127
+
128
+ REM Download ComfyUI
129
+ echo Downloading ComfyUI...
130
+ 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
131
+
132
+ REM Extract ComfyUI
133
+ echo Extracting ComfyUI...
134
+ "%SEVEN_ZIP_PATH%" x ComfyUI_windows_portable_nvidia_cu121_or_cpu.7z -o"%CD%" -y >nul 2>&1
135
+
136
+ REM Check if extraction was successful
137
+ if not exist "ComfyUI_windows_portable" (
138
+ echo Extraction failed. Please check the downloaded file and try again.
139
+ exit /b 1
140
+ )
141
+
142
+ REM Delete archive
143
+ del /f ComfyUI_windows_portable_nvidia_cu121_or_cpu.7z -force
144
+
145
+
146
+ REM Navigate to custom_nodes folder
147
+ REM Update ComfyUI
148
+ cd ComfyUI_windows_portable\update
149
+ ..\python_embeded\python.exe -m pip install --upgrade pip >nul 2>&1
150
+ ..\python_embeded\python.exe .\update.py ..\ComfyUI\ >nul 2>&1
151
+ if exist update_new.py (
152
+ move /y update_new.py update.py
153
+ echo Running updater again since it got updated.
154
+ ..\python_embeded\python.exe .\update.py ..\ComfyUI\ --skip_self_update >nul 2>&1
155
+ )
156
+
157
+ cd ..
158
+ cd ComfyUI\custom_nodes
159
+
160
+ REM Clone ComfyUI-Manager
161
+ echo Installing ComfyUI-Manager...
162
+ git clone https://github.com/ltdrdata/ComfyUI-Manager.git >nul 2>&1
163
+ echo Installing additional nodes...
164
+ echo - Impact-Pack
165
+ git clone https://github.com/ltdrdata/ComfyUI-Impact-Pack >nul 2>&1
166
+ cd ComfyUI-Impact-Pack
167
+ git clone https://github.com/ltdrdata/ComfyUI-Impact-Subpack impact_subpack >nul 2>&1
168
+ ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
169
+ ..\..\..\python_embeded\python.exe -s -m pip install ultralytics --no-warn-script-location >nul 2>&1
170
+ cd ..
171
+
172
+ echo - WAS-Suite
173
+ git clone https://github.com/WASasquatch/was-node-suite-comfyui >nul 2>&1
174
+ cd was-node-suite-comfyui
175
+ ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
176
+ cd ..
177
+
178
+ echo - GGUF
179
+ git clone https://github.com/city96/ComfyUI-GGUF >nul 2>&1
180
+ cd ComfyUI-GGUF
181
+ ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
182
+ cd ..
183
+
184
+ echo - Custom-Scripts
185
+ git clone https://github.com/pythongosssss/ComfyUI-Custom-Scripts >nul 2>&1
186
+
187
+ echo - UltimateSDUpscale
188
+ git clone https://github.com/ssitu/ComfyUI_UltimateSDUpscale --recursive >nul 2>&1
189
+
190
+ echo - rgthree
191
+ git clone https://github.com/rgthree/rgthree-comfy >nul 2>&1
192
+ cd rgthree-comfy
193
+ ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
194
+ cd ..
195
+
196
+ echo - Florence2
197
+ git clone https://github.com/kijai/ComfyUI-Florence2 >nul 2>&1
198
+ cd ComfyUI-Florence2
199
+ ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
200
+ cd ..
201
+
202
+ echo - KJNodes
203
+ git clone https://github.com/kijai/ComfyUI-KJNodes >nul 2>&1
204
+ cd ComfyUI-KJNodes
205
+ ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
206
+ cd ..
207
+
208
+ echo - Image-Saver
209
+ git clone https://github.com/alexopus/ComfyUI-Image-Saver >nul 2>&1
210
+ cd ComfyUI-Image-Saver
211
+ ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
212
+ cd ..
213
+
214
+ echo - RMBG
215
+ git clone https://github.com/1038lab/ComfyUI-RMBG >nul 2>&1
216
+ cd ComfyUI-RMBG
217
+ ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
218
+ cd ..
219
+
220
+ echo - X-Flux
221
+ git clone https://github.com/XLabs-AI/x-flux-comfyui >nul 2>&1
222
+ cd x-flux-comfyui
223
+ ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
224
+ cd ..
225
+
226
+ echo - mxToolkit
227
+ git clone https://github.com/Smirnov75/ComfyUI-mxToolkit >nul 2>&1
228
+
229
+ echo - Comfyroll
230
+ git clone https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes >nul 2>&1
231
+
232
+ echo - PulID
233
+ git clone https://github.com/sipie800/ComfyUI-PuLID-Flux-Enhanced >nul 2>&1
234
+ cd ..\..\python_embeded
235
+ curl -L -o "insightface-0.7.3-cp311-cp311-win_amd64.whl" https://github.com/Gourieff/Assets/raw/main/Insightface/insightface-0.7.3-cp311-cp311-win_amd64.whl >nul 2>&1
236
+ .\python.exe -m pip install --use-pep517 facexlib >nul 2>&1
237
+ .\python.exe -m pip install git+https://github.com/rodjjo/filterpy.git >nul 2>&1
238
+ .\python.exe -m pip install onnxruntime==1.19.2 onnxruntime-gpu==1.15.1 insightface-0.7.3-cp311-cp311-win_amd64.whl >nul 2>&1
239
+ cd ..
240
+ cd ComfyUI\custom_nodes\ComfyUI-PuLID-Flux-Enhanced
241
+ ..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt --no-warn-script-location >nul 2>&1
242
+ cd ..\..
243
+ cd models
244
+ curl -L -o "insightface.7z" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/insightface.7z?download=true >nul 2>&1
245
+ "%SEVEN_ZIP_PATH%" x insightface.7z -o"%CD%" -y >nul 2>&1
246
+ del /f insightface.7z -force >nul 2>&1
247
+ mkdir pulid
248
+ cd pulid
249
+ curl -L -o "pulid_flux_v0.9.0.safetensors" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/pulid/pulid_flux_v0.9.0.safetensors?download=true >nul 2>&1
250
+ cd ..
251
+
252
+ REM Download VAE file
253
+ echo Downloading VAE file...
254
+ cd vae
255
+ curl -L -o ae.safetensors https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/vae/ae.safetensors?download=true
256
+
257
+ cd ..
258
+
259
+ REM Download CLIP files
260
+ echo Downloading CLIP files...
261
+ cd clip
262
+ curl -L -o "clip_l.safetensors" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/clip/clip_l.safetensors?download=true
263
+ curl -L -o "longclip-L.pt" https://huggingface.co/BeichenZhang/LongCLIP-L/blob/main/longclip-L.pt?download=true
264
+ curl -L -o "t5xxl_fp8_e4m3fn.safetensors" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/clip/t5xxl_fp8_e4m3fn.safetensors?download=true
265
+ curl -L -o "t5xxl_fp16.safetensors" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/clip/t5xxl_fp16.safetensors?download=true
266
+ curl -L -o "ViT-L-14-TEXT-detail-improved-hiT-GmP-TE-only-HF.safetensors" https://huggingface.co/zer0int/CLIP-GmP-ViT-L-14/resolve/main/ViT-L-14-TEXT-detail-improved-hiT-GmP-TE-only-HF.safetensors?download=true
267
+
268
+ if "%DOWNLOAD_GGUF%"=="yes" (
269
+ echo Downloading FLUX GGUF encoder Model...
270
+ if /i "%FLUX_GGUF_CHOICE%"=="A" (
271
+ curl -L -o t5-v1_1-xxl-encoder-Q8_0.gguf https://huggingface.co/city96/t5-v1_1-xxl-encoder-gguf/resolve/main/t5-v1_1-xxl-encoder-Q8_0.gguf?download=true
272
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="B" (
273
+ curl -L -o t5-v1_1-xxl-encoder-Q5_K_M.gguf https://huggingface.co/city96/t5-v1_1-xxl-encoder-gguf/resolve/main/t5-v1_1-xxl-encoder-Q5_K_M.gguf?download=true
274
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="C" (
275
+ curl -L -o t5-v1_1-xxl-encoder-Q3_K_L.gguf https://huggingface.co/city96/t5-v1_1-xxl-encoder-gguf/resolve/main/t5-v1_1-xxl-encoder-Q3_K_L.gguf?download=true
276
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="D" (
277
+ curl -L -o t5-v1_1-xxl-encoder-Q8_0.gguf https://huggingface.co/city96/t5-v1_1-xxl-encoder-gguf/resolve/main/t5-v1_1-xxl-encoder-Q8_0.gguf?download=true
278
+ curl -L -o t5-v1_1-xxl-encoder-Q5_K_M.gguf https://huggingface.co/city96/t5-v1_1-xxl-encoder-gguf/resolve/main/t5-v1_1-xxl-encoder-Q5_K_M.gguf?download=true
279
+ curl -L -o t5-v1_1-xxl-encoder-Q3_K_L.gguf https://huggingface.co/city96/t5-v1_1-xxl-encoder-gguf/resolve/main/t5-v1_1-xxl-encoder-Q3_K_L.gguf?download=true
280
+ )
281
+ )
282
+ cd ..
283
+
284
+ REM Download UNET file based on user choice
285
+ echo Downloading UNET file...
286
+ cd unet
287
+ if "%INSTALL_TYPE%"=="fast-lowvram" (
288
+ curl -L -o flux1-dev-fp8.safetensors https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/unet/flux1-dev-fp8.safetensors?download=true
289
+ ) else (
290
+ curl -L -o flux1-dev.sft https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/unet/flux1-dev.sft?download=true
291
+ )
292
+
293
+ if "%DOWNLOAD_GGUF%"=="yes" (
294
+ echo Downloading FLUX GGUF Model...
295
+ if /i "%FLUX_GGUF_CHOICE%"=="A" (
296
+ curl -L -o flux1-dev-Q8_0.gguf https://huggingface.co/city96/FLUX.1-dev-gguf/resolve/main/flux1-dev-Q8_0.gguf?download=true
297
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="B" (
298
+ curl -L -o flux1-dev-Q5_K_S.gguf https://huggingface.co/city96/FLUX.1-dev-gguf/resolve/main/flux1-dev-Q5_K_S.gguf?download=true
299
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="C" (
300
+ curl -L -o flux1-dev-Q4_K_S.gguf https://huggingface.co/city96/FLUX.1-dev-gguf/resolve/main/flux1-dev-Q4_K_S.gguf?download=true
301
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="D" (
302
+ curl -L -o flux1-dev-Q8_0.gguf https://huggingface.co/city96/FLUX.1-dev-gguf/resolve/main/flux1-dev-Q8_0.gguf?download=true
303
+ curl -L -o flux1-dev-Q5_K_S.gguf https://huggingface.co/city96/FLUX.1-dev-gguf/resolve/main/flux1-dev-Q5_K_S.gguf?download=true
304
+ curl -L -o flux1-dev-Q4_K_S.gguf https://huggingface.co/city96/FLUX.1-dev-gguf/resolve/main/flux1-dev-Q4_K_S.gguf?download=true
305
+ )
306
+ )
307
+
308
+ REM Download FLUX SCHNELL Model if user chose to
309
+ if "%DOWNLOAD_FLUX_SCHNELL%"=="yes" (
310
+ echo Downloading FLUX SCHNELL Model...
311
+ curl -L -o flux1-schnell-fp8.safetensors https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/unet/flux1-schnell-fp8.safetensors?download=true
312
+ )
313
+
314
+ cd ..
315
+
316
+ cd loras
317
+ REM Download FLUX SCHNELL Model if user chose to
318
+ if "%DOWNLOAD_FLUX_LORA%"=="yes" (
319
+ echo Downloading UmeAiRT LoRAs...
320
+ curl -L -o ume_sky_v2.safetensors https://huggingface.co/UmeAiRT/FLUX.1-dev-LoRA-Ume_Sky/resolve/main/ume_sky_v2.safetensors?download=true
321
+ curl -L -o ume_modern_pixelart.safetensors https://huggingface.co/UmeAiRT/FLUX.1-dev-LoRA-Modern_Pixel_art/resolve/main/ume_modern_pixelart.safetensors?download=true
322
+ curl -L -o ume_classic_Romanticism.safetensors https://huggingface.co/UmeAiRT/FLUX.1-dev-LoRA-Romanticism/resolve/main/ume_classic_Romanticism.safetensors?download=true
323
+ curl -L -o ume_classic_impressionist.safetensors https://huggingface.co/UmeAiRT/FLUX.1-dev-LoRA-Impressionism/resolve/main/ume_classic_impressionist.safetensors?download=true
324
+ curl -L -o ume_the-little-newspaper.safetensors https://huggingface.co/UmeAiRT/FLUX.1-dev-LoRA-Ume_J1900/resolve/main/umej1900.safetensors?download=true
325
+ curl -L -o ume_knight.safetensors https://huggingface.co/UmeAiRT/FLUX.1-dev-LoRA-Ume_Knight/resolve/main/ume_gachaak.safetensors?download=true
326
+ )
327
+
328
+ cd ..
329
+
330
+ REM Download upscale model
331
+ echo Downloading upscale models...
332
+ cd upscale_models
333
+ curl -L -o 4x_NMKD-Siax_200k.pth https://huggingface.co/uwg/upscaler/resolve/main/ESRGAN/4x_NMKD-Siax_200k.pth?download=true
334
+ curl -L -o 4x-ClearRealityV1.pth https://huggingface.co/skbhadra/ClearRealityV1/resolve/main/4x-ClearRealityV1.pth?download=true
335
+
336
+ cd ..
337
+
338
+ mkdir LLM
339
+ mkdir .\xlabs\controlnets
340
+ cd xlabs\controlnets
341
+ REM Download FLUX ControlNet Models if user chose to
342
+ if "%DOWNLOAD_FLUX_CONTROLNET%"=="yes" (
343
+ echo Downloading FLUX ControlNet Models...
344
+ curl -L -o flux-canny-controlnet-v3.safetensors https://huggingface.co/XLabs-AI/flux-controlnet-canny-v3/resolve/main/flux-canny-controlnet-v3.safetensors?download=true
345
+ curl -L -o flux-depth-controlnet-v3.safetensors https://huggingface.co/XLabs-AI/flux-controlnet-depth-v3/resolve/main/flux-depth-controlnet-v3.safetensors?download=true
346
+ curl -L -o flux-hed-controlnet-v3.safetensors https://huggingface.co/XLabs-AI/flux-controlnet-hed-v3/resolve/main/flux-hed-controlnet-v3.safetensors?download=true
347
+ cd ..\..
348
+ cd unet
349
+ curl -L -o flux1-depth-dev-fp8.safetensors https://huggingface.co/boricuapab/flux1-depth-dev-fp8/resolve/main/flux1-depth-dev-fp8.safetensors?download=true
350
+ curl -L -o flux1-canny-dev-fp8.safetensors https://huggingface.co/boricuapab/flux1-canny-dev-fp8/resolve/main/flux1-canny-dev-fp8.safetensors?download=true
351
+ if "%DOWNLOAD_GGUF%"=="yes" (
352
+ echo Downloading ControlNet GGUF Model...
353
+ if /i "%FLUX_GGUF_CHOICE%"=="A" (
354
+ curl -L -o flux1-depth-dev-fp16-Q8_0-GGUF.gguf https://huggingface.co/SporkySporkness/FLUX.1-Depth-dev-GGUF/resolve/main/flux1-depth-dev-fp16-Q8_0-GGUF.gguf?download=true
355
+ curl -L -o flux1-canny-dev-fp16-Q8_0-GGUF.gguf https://huggingface.co/SporkySporkness/FLUX.1-Canny-dev-GGUF/resolve/main/flux1-canny-dev-fp16-Q8_0-GGUF.gguf?download=true
356
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="B" (
357
+ curl -L -o flux1-depth-dev-fp16-Q5_0-GGUF.gguf https://huggingface.co/SporkySporkness/FLUX.1-Depth-dev-GGUF/resolve/main/flux1-depth-dev-fp16-Q5_0-GGUF.gguf?download=true
358
+ curl -L -o flux1-canny-dev-fp16-Q5_0-GGUF.gguf https://huggingface.co/SporkySporkness/FLUX.1-Canny-dev-GGUF/resolve/main/flux1-canny-dev-fp16-Q5_0-GGUF.gguf?download=true
359
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="C" (
360
+ curl -L -o flux1-depth-dev-fp16-Q4_0-GGUF.gguf https://huggingface.co/SporkySporkness/FLUX.1-Depth-dev-GGUF/resolve/main/flux1-depth-dev-fp16-Q4_0-GGUF.gguf?download=true
361
+ curl -L -o flux1-canny-dev-fp16-Q4_0-GGUF.gguf https://huggingface.co/SporkySporkness/FLUX.1-Canny-dev-GGUF/resolve/main/flux1-canny-dev-fp16-Q4_0-GGUF.gguf?download=true
362
+ ) else if /i "%FLUX_GGUF_CHOICE%"=="D" (
363
+ curl -L -o flux1-depth-dev-fp16-Q8_0-GGUF.gguf https://huggingface.co/SporkySporkness/FLUX.1-Depth-dev-GGUF/resolve/main/flux1-depth-dev-fp16-Q8_0-GGUF.gguf?download=true
364
+ curl -L -o flux1-depth-dev-fp16-Q5_0-GGUF.gguf https://huggingface.co/SporkySporkness/FLUX.1-Depth-dev-GGUF/resolve/main/flux1-depth-dev-fp16-Q5_0-GGUF.gguf?download=true
365
+ curl -L -o flux1-depth-dev-fp16-Q4_0-GGUF.gguf https://huggingface.co/SporkySporkness/FLUX.1-Depth-dev-GGUF/resolve/main/flux1-depth-dev-fp16-Q4_0-GGUF.gguf?download=true
366
+ curl -L -o flux1-canny-dev-fp16-Q8_0-GGUF.gguf https://huggingface.co/SporkySporkness/FLUX.1-Canny-dev-GGUF/resolve/main/flux1-canny-dev-fp16-Q8_0-GGUF.gguf?download=true
367
+ curl -L -o flux1-canny-dev-fp16-Q5_0-GGUF.gguf https://huggingface.co/SporkySporkness/FLUX.1-Canny-dev-GGUF/resolve/main/flux1-canny-dev-fp16-Q5_0-GGUF.gguf?download=true
368
+ curl -L -o flux1-canny-dev-fp16-Q4_0-GGUF.gguf https://huggingface.co/SporkySporkness/FLUX.1-Canny-dev-GGUF/resolve/main/flux1-canny-dev-fp16-Q4_0-GGUF.gguf?download=true
369
+ )
370
+ )
371
+ cd ..
372
+ cd controlnet
373
+ curl -L -o diffusion_pytorch_model_promax.safetensors https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/controlnet/diffusion_pytorch_model_promax.safetensors?download=true
374
+ curl -L -o Shakker-LabsFLUX1-dev-ControlNet-Union-Pro.safetensors https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/controlnet/Shakker-LabsFLUX1-dev-ControlNet-Union-Pro.safetensors?download=true
375
+ )
376
+
377
+ cd ..\..\..
378
+ mkdir .\user\default
379
+ echo Downloading comfy settings...
380
+ cd user\default
381
+ curl -L -o comfy.settings.json https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/others/comfy.settings.json?download=true
382
+ echo Downloading comfy workflow...
383
+ mkdir .\workflows
384
+ cd workflows
385
+ curl -L -o "UmeAiRT - Flux workflow.7z" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/workflows/UmeAiRT-Flux_workflow.7z?download=true
386
+ "%SEVEN_ZIP_PATH%" x "UmeAiRT - Flux workflow.7z" -o"%CD%" -y >nul 2>&1
387
+ del /f "UmeAiRT - Flux workflow.7z" -force >nul 2>&1
388
+ cd ..\..\..\..\..
389
+
390
+ REM Final steps based on user choice
391
+ if "%INSTALL_TYPE%"=="fast-lowvram" (
392
+ echo Downloading special run file for fast-lowvram...
393
+ 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"
394
+ echo ComfyUI and FLUX installed. Running ComfyUI...
395
+ call "run_nvidia_gpu-LOWVRAM.bat"
396
+ ) else (
397
+ echo ComfyUI and FLUX installed. HAVE FUN ;)
398
  )