UmeAiRT commited on
Commit
79819c7
·
verified ·
1 Parent(s): ebe6fdb

Upload UmeAiRT-FLUX-AllinOne-Auto_install.bat

Browse files
UmeAiRT-FLUX-AllinOne-Auto_install.bat ADDED
@@ -0,0 +1,264 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ setlocal enabledelayedexpansion
3
+
4
+ set "installPath=%CD%"
5
+ set "basePath=%installPath%\ComfyUI_windows_portable"
6
+ set "comfyPath=%basePath%\ComfyUI"
7
+ set "customNodesPath=%comfyPath%\custom_nodes"
8
+ set "modelsPath=%comfyPath%\models"
9
+
10
+ if not exist "%installPath%\logs" mkdir "%installPath%\logs"
11
+
12
+ curl -L -o banner.txt https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/others/banner.txt?download=true >> "%installPath%\logs\install.txt" 2>&1
13
+ echo -------------------------------------------------------------------------------
14
+ type banner.txt
15
+ echo -------------------------------------------------------------------------------
16
+ echo ComfyUI - FLUX - All in one installer
17
+ echo V4.0 for CUDA 12.8
18
+ echo -------------------------------------------------------------------------------
19
+ del /f banner.txt
20
+
21
+ REM Check if 7-Zip is installed and get its path
22
+ for %%I in (7z.exe) do set "SEVEN_ZIP_PATH=%%~$PATH:I"
23
+ if not defined SEVEN_ZIP_PATH (
24
+ if exist "%ProgramFiles%\7-Zip\7z.exe" (
25
+ set "SEVEN_ZIP_PATH=%ProgramFiles%\7-Zip\7z.exe"
26
+ ) else if exist "%ProgramFiles(x86)%\7-Zip\7z.exe" (
27
+ set "SEVEN_ZIP_PATH=%ProgramFiles(x86)%\7-Zip\7z.exe"
28
+ ) else (
29
+ echo 7-Zip is not installed. Downloading and installing...
30
+ curl -L -o 7z-installer.exe https://www.7-zip.org/a/7z2201-x64.exe
31
+ 7z-installer.exe /S
32
+ set "SEVEN_ZIP_PATH=%ProgramFiles%\7-Zip\7z.exe"
33
+ if not exist "%SEVEN_ZIP_PATH%" (
34
+ echo Installation of 7-Zip failed. Please install it manually and try again.
35
+ pause
36
+ exit /b 1
37
+ )
38
+ del 7z-installer.exe
39
+ )
40
+ )
41
+
42
+ REM Check and install Git
43
+ git --version > NUL 2>&1
44
+ if %errorlevel% NEQ 0 (
45
+ echo Installing Git...
46
+ 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 }}"
47
+ if %errorlevel% NEQ 0 (
48
+ echo Failed to download Git installer.
49
+ pause
50
+ exit /b
51
+ )
52
+ start /wait Git-2.41.0.3-64-bit.exe /VERYSILENT
53
+ del Git-2.41.0.3-64-bit.exe
54
+ )
55
+ echo Enabling long paths for git...
56
+ powershell -Command "Start-Process git -WindowStyle Hidden -ArgumentList 'config','--system','core.longpaths','true' -Verb RunAs"
57
+
58
+ REM Download ComfyUI
59
+ echo Downloading ComfyUI...
60
+ curl -L -o ComfyUI_windows_portable_nvidia.7z https://github.com/comfyanonymous/ComfyUI/releases/download/v0.3.30/ComfyUI_windows_portable_nvidia.7z
61
+
62
+ REM Extract ComfyUI
63
+ echo Extracting ComfyUI...
64
+ "%SEVEN_ZIP_PATH%" x ComfyUI_windows_portable_nvidia.7z -o"%CD%" -y >> "%installPath%\logs\install.txt" 2>&1
65
+
66
+ REM Check if extraction was successful
67
+ if not exist "ComfyUI_windows_portable" (
68
+ echo Extraction failed. Please check the downloaded file and try again.
69
+ pause
70
+ exit /b 1
71
+ )
72
+
73
+ REM Delete archive
74
+ del /f ComfyUI_windows_portable_nvidia.7z -force
75
+
76
+
77
+ REM Navigate to custom_nodes folder
78
+ REM Update ComfyUI
79
+ "%basePath%\python_embeded\python.exe" -m pip install --upgrade pip >> "%installPath%\logs\install.txt" 2>&1
80
+ "%basePath%\python_embeded\python.exe" "%basePath%\update\update.py" "%basePath%\ComfyUI" >> "%installPath%\logs\install.txt" 2>&1
81
+ if exist update_new.py (
82
+ move /y update_new.py update.py
83
+ echo Running updater again since it got updated.
84
+ "%basePath%\python_embeded\python.exe" "%basePath%\update\update.py" "%basePath%\ComfyUI" --skip_self_update >> "%installPath%\logs\install.txt" 2>&1
85
+ )
86
+ "%basePath%\python_embeded\python.exe" -s -m pip install -r "%basePath%/ComfyUI/requirements.txt" >> "%installPath%\logs\install.txt" 2>&1
87
+
88
+
89
+
90
+ REM Clone ComfyUI-Manager
91
+ echo Installing ComfyUI-Manager...
92
+ git clone https://github.com/ltdrdata/ComfyUI-Manager.git "%customNodesPath%/ComfyUI-Manager" >> "%installPath%\logs\install.txt" 2>&1
93
+
94
+ echo Installing additional nodes...
95
+
96
+ echo - Impact-Pack
97
+ git clone https://github.com/ltdrdata/ComfyUI-Impact-Pack "%customNodesPath%/ComfyUI-Impact-Pack" >> "%installPath%\logs\install.txt" 2>&1
98
+ "%basePath%\python_embeded\python.exe" -s -m pip install -r "%customNodesPath%/ComfyUI-Impact-Pack/requirements.txt" --no-warn-script-location >> "%installPath%\logs\install.txt" 2>&1
99
+ git clone https://github.com/ltdrdata/ComfyUI-Impact-Subpack "%customNodesPath%/ComfyUI-Impact-Pack/impact_subpack" >> "%installPath%\logs\install.txt" 2>&1
100
+ "%basePath%\python_embeded\python.exe" -s -m pip install -r "%customNodesPath%/ComfyUI-Impact-Pack/impact_subpack/requirements.txt" --no-warn-script-location >> "%installPath%\logs\install.txt" 2>&1
101
+ "%basePath%\python_embeded\python.exe" -s -m pip install ultralytics --no-warn-script-location >> "%installPath%\logs\install.txt" 2>&1
102
+
103
+ echo - GGUF
104
+ git clone https://github.com/city96/ComfyUI-GGUF "%customNodesPath%/ComfyUI-GGUF" >> "%installPath%\logs\install.txt" 2>&1
105
+ "%basePath%\python_embeded\python.exe" -s -m pip install -r "%customNodesPath%/ComfyUI-GGUF/requirements.txt" --no-warn-script-location >> "%installPath%\logs\install.txt" 2>&1
106
+
107
+ echo - mxToolkit
108
+ git clone https://github.com/Smirnov75/ComfyUI-mxToolkit "%customNodesPath%/ComfyUI-mxToolkit" >> "%installPath%\logs\install.txt" 2>&1
109
+
110
+ echo - Custom-Scripts
111
+ git clone https://github.com/pythongosssss/ComfyUI-Custom-Scripts "%customNodesPath%/ComfyUI-Custom-Scripts" >> "%installPath%\logs\install.txt" 2>&1
112
+
113
+ echo - KJNodes
114
+ git clone https://github.com/kijai/ComfyUI-KJNodes "%customNodesPath%/ComfyUI-KJNodes" >> "%installPath%\logs\install.txt" 2>&1
115
+ "%basePath%\python_embeded\python.exe" -s -m pip install -r "%customNodesPath%/ComfyUI-KJNodes/requirements.txt" --no-warn-script-location >> "%installPath%\logs\install.txt" 2>&1
116
+
117
+ echo - WanVideoWrapper
118
+ git clone https://github.com/kijai/ComfyUI-WanVideoWrapper "%customNodesPath%/ComfyUI-WanVideoWrapper" >> "%installPath%\logs\install.txt" 2>&1
119
+ "%basePath%\python_embeded\python.exe" -s -m pip install -r "%customNodesPath%/ComfyUI-WanVideoWrapper/requirements.txt" --no-warn-script-location >> "%installPath%\logs\install.txt" 2>&1
120
+
121
+ echo - VideoHelperSuite
122
+ git clone https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite "%customNodesPath%/ComfyUI-VideoHelperSuite" >> "%installPath%\logs\install.txt" 2>&1
123
+ "%basePath%\python_embeded\python.exe" -s -m pip install -r "%customNodesPath%/ComfyUI-VideoHelperSuite/requirements.txt" --no-warn-script-location >> "%installPath%\logs\install.txt" 2>&1
124
+
125
+ echo - Frame-Interpolation
126
+ git clone https://github.com/Fannovel16/ComfyUI-Frame-Interpolation "%customNodesPath%/ComfyUI-Frame-Interpolation" >> "%installPath%\logs\install.txt" 2>&1
127
+ "%basePath%\python_embeded\python.exe" -s -m pip install -r "%customNodesPath%/ComfyUI-Frame-Interpolation/requirements-with-cupy.txt" --no-warn-script-location >> "%installPath%\logs\install.txt" 2>&1
128
+
129
+ echo - rgthree
130
+ git clone https://github.com/rgthree/rgthree-comfy "%customNodesPath%/rgthree-comfy" >> "%installPath%\logs\install.txt" 2>&1
131
+ "%basePath%\python_embeded\python.exe" -s -m pip install -r "%customNodesPath%/rgthree-comfy/requirements.txt" --no-warn-script-location >> "%installPath%\logs\install.txt" 2>&1
132
+
133
+ echo - Easy-Use
134
+ git clone https://github.com/yolain/ComfyUI-Easy-Use "%customNodesPath%/ComfyUI-Easy-Use" >> "%installPath%\logs\install.txt" 2>&1
135
+ "%basePath%\python_embeded\python.exe" -s -m pip install -r "%customNodesPath%/ComfyUI-Easy-Use/requirements.txt" --no-warn-script-location >> "%installPath%\logs\install.txt" 2>&1
136
+
137
+ echo - PuLID_Flux_ll
138
+ git clone https://github.com/lldacing/ComfyUI_PuLID_Flux_ll "%customNodesPath%/ComfyUI_PuLID_Flux_ll" >> "%installPath%\logs\install.txt" 2>&1
139
+ "%basePath%\python_embeded\python.exe" -s -m pip install -r "%customNodesPath%/ComfyUI_PuLID_Flux_ll/requirements.txt" --no-warn-script-location >> "%installPath%\logs\install.txt" 2>&1
140
+ curl -L -o "%basePath%\python_embeded\insightface-0.7.3-cp312-cp312-win_amd64.whl" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/others/insightface-0.7.3-cp312-cp312-win_amd64.whl?download=true >> "%installPath%\logs\install.txt" 2>&1
141
+ "%basePath%\python_embeded\python.exe" -m pip install --use-pep517 facexlib >> "%installPath%\logs\install.txt" 2>&1
142
+ "%basePath%\python_embeded\python.exe" -m pip install git+https://github.com/rodjjo/filterpy.git >> "%installPath%\logs\install.txt" 2>&1
143
+ "%basePath%\python_embeded\python.exe" -m pip install onnxruntime==1.19.2 onnxruntime-gpu==1.17.1 "%basePath%\python_embeded\insightface-0.7.3-cp312-cp312-win_amd64.whl" >> "%installPath%\logs\install.txt" 2>&1
144
+
145
+ echo - HunyuanVideoMultiLora
146
+ git clone https://github.com/facok/ComfyUI-HunyuanVideoMultiLora "%customNodesPath%/ComfyUI-HunyuanVideoMultiLora" >> "%installPath%\logs\install.txt" 2>&1
147
+
148
+ echo - was-node-suite-comfyui
149
+ git clone https://github.com/WASasquatch/was-node-suite-comfyui "%customNodesPath%/was-node-suite-comfyui" >> "%installPath%\logs\install.txt" 2>&1
150
+ "%basePath%\python_embeded\python.exe" -s -m pip install -r "%customNodesPath%/was-node-suite-comfyui/requirements.txt" --no-warn-script-location >> "%installPath%\logs\install.txt" 2>&1
151
+
152
+ echo - Florence2
153
+ git clone https://github.com/kijai/ComfyUI-Florence2 "%customNodesPath%/ComfyUI-Florence2">> "%installPath%\logs\install.txt" 2>&1
154
+ "%basePath%\python_embeded\python.exe" -m pip install transformers==4.49.0 --upgrade >> "%installPath%\logs\install.txt" 2>&1
155
+ "%basePath%\python_embeded\python.exe" -s -m pip install -r "%customNodesPath%/ComfyUI-Florence2/requirements.txt" --no-warn-script-location >> "%installPath%\logs\install.txt" 2>&1
156
+
157
+ echo - Upscaler-Tensorrt
158
+ git clone https://github.com/yuvraj108c/ComfyUI-Upscaler-Tensorrt "%customNodesPath%/ComfyUI-Upscaler-Tensorrt" >> "%installPath%\logs\install.txt" 2>&1
159
+ "%basePath%\python_embeded\python.exe" -s -m pip install wheel-stub >> "%installPath%\logs\install.txt" 2>&1
160
+ "%basePath%\python_embeded\python.exe" -s -m pip install -r "%customNodesPath%/ComfyUI-Upscaler-Tensorrt/requirements.txt" --no-warn-script-location >> "%installPath%\logs\install.txt" 2>&1
161
+
162
+ echo - MultiGPU
163
+ git clone https://github.com/pollockjj/ComfyUI-MultiGPU "%customNodesPath%/ComfyUI-MultiGPU" >> "%installPath%\logs\install.txt" 2>&1
164
+
165
+ echo - WanStartEndFramesNative
166
+ git clone https://github.com/Flow-two/ComfyUI-WanStartEndFramesNative "%customNodesPath%/ComfyUI-WanStartEndFramesNative" >> "%installPath%\logs\install.txt" 2>&1
167
+
168
+ echo - Image-Saver
169
+ git clone https://github.com/alexopus/ComfyUI-Image-Saver "%customNodesPath%/ComfyUI-Image-Saver" >> "%installPath%\logs\install.txt" 2>&1
170
+ "%basePath%\python_embeded\python.exe" -s -m pip install -r "%customNodesPath%/ComfyUI-Image-Saver/requirements.txt" --no-warn-script-location >> "%installPath%\logs\install.txt" 2>&1
171
+
172
+ echo - UltimateSDUpscale
173
+ git clone https://github.com/ssitu/ComfyUI_UltimateSDUpscale "%customNodesPath%/ComfyUI_UltimateSDUpscale" >> "%installPath%\logs\install.txt" 2>&1
174
+
175
+ echo - Controlnet_Aux
176
+ git clone https://github.com/Fannovel16/comfyui_controlnet_aux "%customNodesPath%/comfyui_controlnet_aux" >> "%installPath%\logs\install.txt" 2>&1
177
+ "%basePath%\python_embeded\python.exe" -s -m pip install -r "%customNodesPath%/comfyui_controlnet_aux/requirements.txt" --no-warn-script-location >> "%installPath%\logs\install.txt" 2>&1
178
+
179
+ echo - X-Flux
180
+ git clone https://github.com/XLabs-AI/x-flux-comfyui "%customNodesPath%/x-flux-comfyui" >> "%installPath%\logs\install.txt" 2>&1
181
+ "%basePath%\python_embeded\python.exe" -s -m pip install -r "%customNodesPath%/x-flux-comfyui/requirements.txt" --no-warn-script-location >> "%installPath%\logs\install.txt" 2>&1
182
+
183
+ echo - RMBG
184
+ git clone https://github.com/1038lab/ComfyUI-RMBG "%customNodesPath%/ComfyUI-RMBG" >> "%installPath%\logs\install.txt" 2>&1
185
+ "%basePath%\python_embeded\python.exe" -s -m pip install -r "%customNodesPath%/ComfyUI-RMBG/requirements.txt" --no-warn-script-location >> "%installPath%\logs\install.txt" 2>&1
186
+
187
+ mkdir "%comfyPath%\user\default\workflows"
188
+ echo Downloading comfy settings...
189
+ curl -L -o "%comfyPath%\user\default\comfy.settings.json" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/others/comfy.settings.json?download=true >> "%installPath%\logs\install.txt" 2>&1
190
+ echo Downloading comfy workflow...
191
+ curl -L -o "%comfyPath%\user\default\workflows\UmeAiRT-Flux_Workflow.7z" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/workflows/UmeAiRT-Flux_Workflow.7z?download=true >> "%installPath%\logs\install.txt" 2>&1
192
+ "%SEVEN_ZIP_PATH%" x "%comfyPath%\user\default\workflows\UmeAiRT-WAN21_workflow.7z" -o"%comfyPath%\user\default\workflows\" -y >> "%installPath%\logs\install.txt" 2>&1
193
+ del /f "%comfyPath%\user\default\workflows\UmeAiRT-WAN21_workflow.7z" -force >> "%installPath%\logs\install.txt" 2>&1
194
+
195
+ curl -L -o "%installPath%/UmeAiRT-Missing_nodes.bat" "https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/UmeAiRT-Missing_nodes.bat?download=true" >> "%installPath%\logs\install.txt" 2>&1
196
+ curl -L -o "%installPath%/UmeAiRT-WAN2.1-Model_downloader.bat" "https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/UmeAiRT-WAN2.1-Model_downloader.bat?download=true" >> "%installPath%\logs\install.txt" 2>&1
197
+ curl -L -o "%installPath%/UmeAiRT-FLUX-Model_downloader.bat" "https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/UmeAiRT-FLUX-Model_downloader.bat?download=true" >> "%installPath%\logs\install.txt" 2>&1
198
+
199
+ REM Final steps based on user choice
200
+ curl -L -o "%basePath%/run_nvidia_gpu-LOWVRAM.bat" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/scripts/run_nvidia_gpu-LOWVRAM.bat?download=true >> "%installPath%\logs\install.txt" 2>&1
201
+ curl -L -o "%basePath%/run_nvidia_gpu-sageattention.bat" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/scripts/run_nvidia_gpu-sageattention.bat?download=true >> "%installPath%\logs\install.txt" 2>&1
202
+
203
+ echo Installing additional modules for Python...
204
+
205
+ echo - Visual Studio Build Tools
206
+ powershell -Command "Start-Process winget -WindowStyle Hidden -ArgumentList 'install','--id','Microsoft.VisualStudio.2022.BuildTools','-e','--source','winget','--override','--quiet --wait --norestart --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.Windows10SDK.20348' -Verb RunAs"
207
+
208
+ echo - Python include/libs
209
+ curl -L -o "%basePath%\python_embeded\python_3.12.9_include_libs.zip" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/others/python_3.12.9_include_libs.zip?download=true >> "%installPath%\logs\install.txt" 2>&1
210
+ tar -xf "%basePath%\python_embeded\python_3.12.9_include_libs.zip" -C "%basePath%\python_embeded" >> "%installPath%\logs\install.txt" 2>&1
211
+
212
+ echo - NVIDIA Apex
213
+ curl -L -o apex-0.1.zip https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/others/apex-0.1.zip >> "%installPath%\logs\install.txt" 2>&1
214
+ "%SEVEN_ZIP_PATH%" x apex-0.1.zip -o"%basePath%\python_embeded\Lib\site-packages" >> "%installPath%\logs\install.txt" 2>&1
215
+ del /f apex-0.1.zip -force
216
+
217
+ echo - Triton
218
+ curl -L -o "%basePath%\python_embeded\triton-3.3.0-py3-none-any.whl" https://github.com/woct0rdho/triton-windows/releases/download/empty/triton-3.3.0-py3-none-any.whl >> "%installPath%\logs\install.txt" 2>&1
219
+ "%basePath%\python_embeded\python.exe" -m pip install "%basePath%\python_embeded\triton-3.3.0-py3-none-any.whl" >> "%installPath%\logs\install.txt" 2>&1
220
+ "%basePath%\python_embeded\python.exe" -s -m pip install triton-windows >> "%installPath%\logs\install.txt" 2>&1
221
+
222
+ echo - xformers
223
+ curl -L -o "%basePath%\python_embeded\mpmath-1.3.0-py3-none-any.whl" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/others/mpmath-1.3.0-py3-none-any.whl >> "%installPath%\logs\install.txt" 2>&1
224
+ curl -L -o xformers-0.0.30.zip https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/others/xformers-0.0.30.zip >> "%installPath%\logs\install.txt" 2>&1
225
+ "%SEVEN_ZIP_PATH%" x xformers-0.0.30.zip -o"%basePath%\python_embeded\Lib\site-packages" >> "%installPath%\logs\install.txt" 2>&1
226
+ del /f xformers-0.0.30.zip -force
227
+ rem curl -L -o "%basePath%\python_embeded\xformers-0.0.30+3abeaa9e.d20250426-cp312-cp312-win_amd64.whl" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/others/xformers-0.0.30%2B3abeaa9e.d20250426-cp312-cp312-win_amd64.whl >> "%installPath%\logs\install.txt" 2>&1
228
+ "%basePath%\python_embeded\python.exe" -m pip install "%basePath%\python_embeded\mpmath-1.3.0-py3-none-any.whl" >> "%installPath%\logs\install.txt" 2>&1
229
+ rem "%basePath%\python_embeded\python.exe" -m pip install --no-deps "%basePath%\python_embeded\xformers-0.0.30+3abeaa9e.d20250426-cp312-cp312-win_amd64.whl" >> "%installPath%\logs\install.txt" 2>&1
230
+
231
+ echo - SageAttention
232
+ curl -L -o "%basePath%\python_embeded\sageattention-2.1.1-cp312-cp312-win_amd64.whl" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/others/sageattention-2.1.1-cp312-cp312-win_amd64.whl >> "%installPath%\logs\install.txt" 2>&1
233
+ "%basePath%\python_embeded\python.exe" -m pip install "%basePath%\python_embeded\sageattention-2.1.1-cp312-cp312-win_amd64.whl" >> "%installPath%\logs\install.txt" 2>&1
234
+
235
+ :CHOOSE_DOWNLOAD_WAN
236
+ REM Ask user for installation type
237
+ echo Would you like to download WAN models?
238
+ set /p "MODELS=Enter your choice (Y or N) and press Enter: "
239
+
240
+ if /i "%MODELS%"=="Y" (
241
+ call "%installPath%\UmeAiRT-WAN2.1-Model_downloader.bat"
242
+ ) else if /i "%MODELS%"=="N" (
243
+ REM Do nothing, just continue
244
+ ) else (
245
+ echo Invalid choice. Please enter Y or N.
246
+ goto CHOOSE_DOWNLOAD_WAN
247
+ )
248
+
249
+ :CHOOSE_DOWNLOAD_FLUX
250
+ REM Ask user for installation type
251
+ echo Would you like to download FLUX models?
252
+ set /p "MODELS=Enter your choice (Y or N) and press Enter: "
253
+
254
+ if /i "%MODELS%"=="Y" (
255
+ call "%installPath%\UmeAiRT-FLUX-Model_downloader.bat"
256
+ ) else if /i "%MODELS%"=="N" (
257
+ REM Do nothing, just continue
258
+ ) else (
259
+ echo Invalid choice. Please enter Y or N.
260
+ goto CHOOSE_DOWNLOAD_FLUX
261
+ )
262
+
263
+ echo ComfyUI installed.
264
+ pause