UmeAiRT commited on
Commit
9064572
·
verified ·
1 Parent(s): 9bdb883

Upload 3 files

Browse files
old/UmeAiRT-AllinOne-Auto_install.bat ADDED
@@ -0,0 +1,251 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 - WAN2.1 - All in one installer
17
+ echo V2.2 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 - ComfyUI-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 - ComfyUI_UltimateSDUpscale
173
+ git clone https://github.com/ssitu/ComfyUI_UltimateSDUpscale "%customNodesPath%/ComfyUI_UltimateSDUpscale" >> "%installPath%\logs\install.txt" 2>&1
174
+
175
+ mkdir "%comfyPath%\user\default\workflows"
176
+ echo Downloading comfy settings...
177
+ 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
178
+ echo Downloading comfy workflow...
179
+ curl -L -o "%comfyPath%\user\default\workflows\UmeAiRT-WAN21_workflow.7z" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/workflows/UmeAiRT-WAN21_workflow.7z?download=true >> "%installPath%\logs\install.txt" 2>&1
180
+ "%SEVEN_ZIP_PATH%" x "%comfyPath%\user\default\workflows\UmeAiRT-WAN21_workflow.7z" -o"%comfyPath%\user\default\workflows\" -y >> "%installPath%\logs\install.txt" 2>&1
181
+ del /f "%comfyPath%\user\default\workflows\UmeAiRT-WAN21_workflow.7z" -force >> "%installPath%\logs\install.txt" 2>&1
182
+
183
+ 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
184
+ 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
185
+ 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
186
+
187
+ REM Final steps based on user choice
188
+ 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
189
+ 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
190
+
191
+ echo Installing additional modules for Python...
192
+
193
+ echo - Visual Studio Build Tools
194
+ 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"
195
+
196
+ echo - Python include/libs
197
+ 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
198
+ tar -xf "%basePath%\python_embeded\python_3.12.9_include_libs.zip" -C "%basePath%\python_embeded" >> "%installPath%\logs\install.txt" 2>&1
199
+
200
+ echo - NVIDIA Apex
201
+ curl -L -o "%basePath%\python_embeded\apex-0.1-py3-none-any.whl" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/others/apex-0.1-py3-none-any.whl >> "%installPath%\logs\install.txt" 2>&1
202
+ "%basePath%\python_embeded\python.exe" -m pip install "%basePath%\python_embeded\apex-0.1-py3-none-any.whl" >> "%installPath%\logs\install.txt" 2>&1
203
+
204
+ echo - Triton
205
+ 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
206
+ "%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
207
+ "%basePath%\python_embeded\python.exe" -s -m pip install triton-windows >> "%installPath%\logs\install.txt" 2>&1
208
+
209
+ echo - xformers
210
+ 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
211
+ 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
212
+ "%SEVEN_ZIP_PATH%" x xformers-0.0.30.zip -o"%basePath%\python_embeded\Lib\site-packages" >> "%installPath%\logs\install.txt" 2>&1
213
+ del /f xformers-0.0.30.zip -force
214
+ 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
215
+ "%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
216
+ 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
217
+
218
+ echo - SageAttention
219
+ 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
220
+ "%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
221
+
222
+ :CHOOSE_DOWNLOAD_WAN
223
+ REM Ask user for installation type
224
+ echo Would you like to download WAN models?
225
+ set /p "MODELS=Enter your choice (Y or N) and press Enter: "
226
+
227
+ if /i "%MODELS%"=="Y" (
228
+ call "%installPath%\UmeAiRT-WAN2.1-Model_downloader.bat"
229
+ ) else if /i "%MODELS%"=="N" (
230
+ REM Do nothing, just continue
231
+ ) else (
232
+ echo Invalid choice. Please enter Y or N.
233
+ goto CHOOSE_DOWNLOAD_WAN
234
+ )
235
+
236
+ :CHOOSE_DOWNLOAD_FLUX
237
+ REM Ask user for installation type
238
+ echo Would you like to download FLUX models?
239
+ set /p "MODELS=Enter your choice (Y or N) and press Enter: "
240
+
241
+ if /i "%MODELS%"=="Y" (
242
+ call "%installPath%\UmeAiRT-FLUX-Model_downloader.bat"
243
+ ) else if /i "%MODELS%"=="N" (
244
+ REM Do nothing, just continue
245
+ ) else (
246
+ echo Invalid choice. Please enter Y or N.
247
+ goto CHOOSE_DOWNLOAD_FLUX
248
+ )
249
+
250
+ echo ComfyUI installed.
251
+ pause
old/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-Flux_Workflow.7z" -o"%comfyPath%\user\default\workflows\" -y >> "%installPath%\logs\install.txt" 2>&1
193
+ del /f "%comfyPath%\user\default\workflows\UmeAiRT-Flux_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
old/UmeAiRT-WAN2.1-AllinOne-Auto_install.bat ADDED
@@ -0,0 +1,322 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 - WAN2.1 - All in one installer
17
+ echo V2.5 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.33/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
+ curl -L -o rgthree-comfy.zip https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/others/rgthree-comfy.zip >> "%installPath%\logs\install.txt" 2>&1
131
+ "%SEVEN_ZIP_PATH%" x rgthree-comfy.zip -o"%customNodesPath%" >> "%installPath%\logs\install.txt" 2>&1
132
+ del /f rgthree-comfy.zip -force
133
+
134
+ echo - Easy-Use
135
+ git clone https://github.com/yolain/ComfyUI-Easy-Use "%customNodesPath%/ComfyUI-Easy-Use" >> "%installPath%\logs\install.txt" 2>&1
136
+ "%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
137
+
138
+ echo - PuLID_Flux_ll
139
+ git clone https://github.com/lldacing/ComfyUI_PuLID_Flux_ll "%customNodesPath%/ComfyUI_PuLID_Flux_ll" >> "%installPath%\logs\install.txt" 2>&1
140
+ "%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
141
+ curl -L -o "%basePath%\python_embeded\insightface-0.7.3-cp312-cp312-win_amd64.whl" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/whl/insightface-0.7.3-cp312-cp312-win_amd64.whl?download=true >> "%installPath%\logs\install.txt" 2>&1
142
+ "%basePath%\python_embeded\python.exe" -m pip install --use-pep517 facexlib >> "%installPath%\logs\install.txt" 2>&1
143
+ "%basePath%\python_embeded\python.exe" -m pip install git+https://github.com/rodjjo/filterpy.git >> "%installPath%\logs\install.txt" 2>&1
144
+ "%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
145
+
146
+ echo - HunyuanVideoMultiLora
147
+ git clone https://github.com/facok/ComfyUI-HunyuanVideoMultiLora "%customNodesPath%/ComfyUI-HunyuanVideoMultiLora" >> "%installPath%\logs\install.txt" 2>&1
148
+
149
+ echo - was-node-suite-comfyui
150
+ git clone https://github.com/WASasquatch/was-node-suite-comfyui "%customNodesPath%/was-node-suite-comfyui" >> "%installPath%\logs\install.txt" 2>&1
151
+ "%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
152
+
153
+ echo - Florence2
154
+ git clone https://github.com/kijai/ComfyUI-Florence2 "%customNodesPath%/ComfyUI-Florence2">> "%installPath%\logs\install.txt" 2>&1
155
+ "%basePath%\python_embeded\python.exe" -m pip install transformers==4.49.0 --upgrade >> "%installPath%\logs\install.txt" 2>&1
156
+ "%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
157
+
158
+ echo - Upscaler-Tensorrt
159
+ git clone https://github.com/yuvraj108c/ComfyUI-Upscaler-Tensorrt "%customNodesPath%/ComfyUI-Upscaler-Tensorrt" >> "%installPath%\logs\install.txt" 2>&1
160
+ "%basePath%\python_embeded\python.exe" -s -m pip install wheel-stub >> "%installPath%\logs\install.txt" 2>&1
161
+ "%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
162
+
163
+ echo - MultiGPU
164
+ git clone https://github.com/pollockjj/ComfyUI-MultiGPU "%customNodesPath%/ComfyUI-MultiGPU" >> "%installPath%\logs\install.txt" 2>&1
165
+
166
+ echo - WanStartEndFramesNative
167
+ git clone https://github.com/Flow-two/ComfyUI-WanStartEndFramesNative "%customNodesPath%/ComfyUI-WanStartEndFramesNative" >> "%installPath%\logs\install.txt" 2>&1
168
+
169
+ echo - ComfyUI-Image-Saver
170
+ git clone https://github.com/alexopus/ComfyUI-Image-Saver "%customNodesPath%/ComfyUI-Image-Saver" >> "%installPath%\logs\install.txt" 2>&1
171
+ "%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
172
+
173
+ echo - ComfyUI_UltimateSDUpscale
174
+ git clone https://github.com/ssitu/ComfyUI_UltimateSDUpscale "%customNodesPath%/ComfyUI_UltimateSDUpscale" >> "%installPath%\logs\install.txt" 2>&1
175
+
176
+ echo - Controlnet_Aux
177
+ git clone https://github.com/Fannovel16/comfyui_controlnet_aux "%customNodesPath%/comfyui_controlnet_aux" >> "%installPath%\logs\install.txt" 2>&1
178
+ "%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
179
+
180
+ echo - X-Flux
181
+ git clone https://github.com/XLabs-AI/x-flux-comfyui "%customNodesPath%/x-flux-comfyui" >> "%installPath%\logs\install.txt" 2>&1
182
+ "%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
183
+
184
+ echo - RMBG
185
+ git clone https://github.com/1038lab/ComfyUI-RMBG "%customNodesPath%/ComfyUI-RMBG" >> "%installPath%\logs\install.txt" 2>&1
186
+ "%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
187
+
188
+ echo - Detail-Daemon
189
+ git clone https://github.com/Jonseed/ComfyUI-Detail-Daemon "%customNodesPath%/ComfyUI-Detail-Daemon" >> "%installPath%\logs\install.txt" 2>&1
190
+ "%basePath%\python_embeded\python.exe" -s -m pip install -r "%customNodesPath%/ComfyUI-Detail-Daemon/requirements.txt" --no-warn-script-location >> "%installPath%\logs\install.txt" 2>&1
191
+
192
+ echo - TeaCache
193
+ git clone https://github.com/welltop-cn/ComfyUI-TeaCache "%customNodesPath%/ComfyUI-TeaCache" >> "%installPath%\logs\install.txt" 2>&1
194
+ "%basePath%\python_embeded\python.exe" -s -m pip install -r "%customNodesPath%/ComfyUI-TeaCache/requirements.txt" --no-warn-script-location >> "%installPath%\logs\install.txt" 2>&1
195
+
196
+ mkdir "%comfyPath%\user\default\workflows"
197
+ echo Downloading comfy settings...
198
+ 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
199
+ echo Downloading comfy workflow...
200
+ curl -L -o "%comfyPath%\user\default\workflows\UmeAiRT-WAN21_workflow.7z" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/workflows/UmeAiRT-WAN21_workflow.7z?download=true >> "%installPath%\logs\install.txt" 2>&1
201
+ "%SEVEN_ZIP_PATH%" x "%comfyPath%\user\default\workflows\UmeAiRT-WAN21_workflow.7z" -o"%comfyPath%\user\default\workflows\" -y >> "%installPath%\logs\install.txt" 2>&1
202
+ del /f "%comfyPath%\user\default\workflows\UmeAiRT-WAN21_workflow.7z" -force >> "%installPath%\logs\install.txt" 2>&1
203
+
204
+ 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
205
+ "%SEVEN_ZIP_PATH%" x "%comfyPath%\user\default\workflows\UmeAiRT-Flux_Workflow.7z" -o"%comfyPath%\user\default\workflows\" -y >> "%installPath%\logs\install.txt" 2>&1
206
+ del /f "%comfyPath%\user\default\workflows\UmeAiRT-Flux_Workflow.7z" -force >> "%installPath%\logs\install.txt" 2>&1
207
+
208
+ curl -L -o "%comfyPath%\user\default\workflows\UmeAiRT-HIDREAM_workflow.7z" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/workflows/UmeAiRT-HIDREAM_workflow.7z?download=true >> "%installPath%\logs\install.txt" 2>&1
209
+ "%SEVEN_ZIP_PATH%" x "%comfyPath%\user\default\workflows\UmeAiRT-HIDREAM_workflow.7z" -o"%comfyPath%\user\default\workflows\" -y >> "%installPath%\logs\install.txt" 2>&1
210
+ del /f "%comfyPath%\user\default\workflows\UmeAiRT-HIDREAM_workflow.7z" -force >> "%installPath%\logs\install.txt" 2>&1
211
+
212
+ curl -L -o "%comfyPath%\user\default\workflows\UmeAiRT-LTXV_Workflow.7z" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/workflows/UmeAiRT-LTXV_Workflow.7z?download=true >> "%installPath%\logs\install.txt" 2>&1
213
+ "%SEVEN_ZIP_PATH%" x "%comfyPath%\user\default\workflows\UmeAiRT-LTXV_Workflow.7z" -o"%comfyPath%\user\default\workflows\" -y >> "%installPath%\logs\install.txt" 2>&1
214
+ del /f "%comfyPath%\user\default\workflows\UmeAiRT-LTXV_Workflow.7z" -force >> "%installPath%\logs\install.txt" 2>&1
215
+
216
+ curl -L -o "%installPath%/UmeAiRT-Missing_nodes.bat" "https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/scripts/Missing_nodes/UmeAiRT-Missing_nodes.bat?download=true" >> "%installPath%\logs\install.txt" 2>&1
217
+ curl -L -o "%installPath%/UmeAiRT-WAN2.1-Model_downloader.bat" "https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/scripts/Model_downloader/UmeAiRT-WAN2.1-Model_downloader.bat?download=true" >> "%installPath%\logs\install.txt" 2>&1
218
+ curl -L -o "%installPath%/UmeAiRT-FLUX-Model_downloader.bat" "https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/scripts/Model_downloader/UmeAiRT-FLUX-Model_downloader.bat?download=true" >> "%installPath%\logs\install.txt" 2>&1
219
+ curl -L -o "%installPath%/UmeAiRT-HIDREAM-Model_downloader.bat" "https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/scripts/Model_downloader/UmeAiRT-HIDREAM-Model_downloader.bat?download=true" >> "%installPath%\logs\install.txt" 2>&1
220
+ curl -L -o "%installPath%/UmeAiRT-LTXV-Model_downloader.bat" "https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/scripts/Model_downloader/UmeAiRT-LTXV-Model_downloader.bat?download=true" >> "%installPath%\logs\install.txt" 2>&1
221
+
222
+ REM Final steps based on user choice
223
+ curl -L -o "%basePath%/run_nvidia_gpu-LOWVRAM.bat" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/scripts/ComfyUI/run_nvidia_gpu-LOWVRAM.bat?download=true >> "%installPath%\logs\install.txt" 2>&1
224
+ curl -L -o "%basePath%/run_nvidia_gpu-sageattention.bat" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/scripts/ComfyUI/run_nvidia_gpu-sageattention.bat?download=true >> "%installPath%\logs\install.txt" 2>&1
225
+
226
+ echo Installing additional modules for Python...
227
+
228
+ echo - Visual Studio Build Tools
229
+ 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"
230
+
231
+ echo - Python include/libs
232
+ 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
233
+ tar -xf "%basePath%\python_embeded\python_3.12.9_include_libs.zip" -C "%basePath%\python_embeded" >> "%installPath%\logs\install.txt" 2>&1
234
+
235
+ echo - NVIDIA Apex
236
+ git clone https://github.com/NVIDIA/apex >> "%installPath%\logs\install.txt" 2>&1
237
+ "%basePath%\python_embeded\python.exe" -s -m pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation .\apex >> "%installPath%\logs\install.txt" 2>&1
238
+ rmdir /s /q "apex" >> "%installPath%\logs\install.txt" 2>&1
239
+ curl -L -o apex-patch.zip https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/others/apex-patch.zip >> "%installPath%\logs\install.txt" 2>&1
240
+ "%SEVEN_ZIP_PATH%" x apex-patch.zip -o"%basePath%\python_embeded\Lib\site-packages" >> "%installPath%\logs\install.txt" 2>&1
241
+ del /f apex-patch.zip -force
242
+
243
+ echo - Triton
244
+ 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
245
+ "%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
246
+ "%basePath%\python_embeded\python.exe" -s -m pip install triton-windows >> "%installPath%\logs\install.txt" 2>&1
247
+
248
+ echo - xformers
249
+ rem 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
250
+ rem 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
251
+ rem "%SEVEN_ZIP_PATH%" x xformers-0.0.30.zip -o"%basePath%\python_embeded\Lib\site-packages" >> "%installPath%\logs\install.txt" 2>&1
252
+ rem del /f xformers-0.0.30.zip -force
253
+ 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
254
+ "%basePath%\python_embeded\python.exe" -m pip install -U xformers --index-url https://download.pytorch.org/whl/cu128 >> "%installPath%\logs\install.txt" 2>&1
255
+ 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
256
+
257
+ echo - SageAttention
258
+ rem git clone https://github.com/thu-ml/SageAttention.git >> "%installPath%\logs\install.txt" 2>&1
259
+ rem "%basePath%\python_embeded\python.exe" -s -m pip install .\SageAttention >> "%installPath%\logs\install.txt" 2>&1
260
+ rem rmdir /s /q "SageAttention" >> "%installPath%\logs\install.txt" 2>&1
261
+
262
+ curl -L -o "%basePath%\python_embeded\sageattention-2.1.1+cu128torch2.7.0-cp312-cp312-win_amd64.whl" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/whl/sageattention-2.1.1+cu128torch2.7.0-cp312-cp312-win_amd64.whl?download=true >> "%installPath%\logs\install.txt" 2>&1
263
+ "%basePath%\python_embeded\python.exe" -m pip install "%basePath%\python_embeded\sageattention-2.1.1+cu128torch2.7.0-cp312-cp312-win_amd64.whl" >> "%installPath%\logs\install.txt" 2>&1
264
+
265
+ :CHOOSE_DOWNLOAD_WAN
266
+ REM Ask user for installation type
267
+ echo Would you like to download WAN models?
268
+ set /p "MODELS=Enter your choice (Y or N) and press Enter: "
269
+
270
+ if /i "%MODELS%"=="Y" (
271
+ call "%installPath%\UmeAiRT-WAN2.1-Model_downloader.bat"
272
+ ) else if /i "%MODELS%"=="N" (
273
+ REM Do nothing, just continue
274
+ ) else (
275
+ echo Invalid choice. Please enter Y or N.
276
+ goto CHOOSE_DOWNLOAD_WAN
277
+ )
278
+
279
+ :CHOOSE_DOWNLOAD_FLUX
280
+ REM Ask user for installation type
281
+ echo Would you like to download FLUX models?
282
+ set /p "MODELS=Enter your choice (Y or N) and press Enter: "
283
+
284
+ if /i "%MODELS%"=="Y" (
285
+ call "%installPath%\UmeAiRT-FLUX-Model_downloader.bat"
286
+ ) else if /i "%MODELS%"=="N" (
287
+ REM Do nothing, just continue
288
+ ) else (
289
+ echo Invalid choice. Please enter Y or N.
290
+ goto CHOOSE_DOWNLOAD_FLUX
291
+ )
292
+
293
+ :CHOOSE_DOWNLOAD_HID
294
+ REM Ask user for installation type
295
+ echo Would you like to download HIDREAM models?
296
+ set /p "MODELS=Enter your choice (Y or N) and press Enter: "
297
+
298
+ if /i "%MODELS%"=="Y" (
299
+ call "%installPath%\UmeAiRT-HIDREAM-Model_downloader.bat"
300
+ ) else if /i "%MODELS%"=="N" (
301
+ REM Do nothing, just continue
302
+ ) else (
303
+ echo Invalid choice. Please enter Y or N.
304
+ goto CHOOSE_DOWNLOAD_HID
305
+ )
306
+
307
+ :CHOOSE_DOWNLOAD_LTXV
308
+ REM Ask user for installation type
309
+ echo Would you like to download HIDREAM models?
310
+ set /p "MODELS=Enter your choice (Y or N) and press Enter: "
311
+
312
+ if /i "%MODELS%"=="Y" (
313
+ call "%installPath%\UmeAiRT-LTXV-Model_downloader.bat"
314
+ ) else if /i "%MODELS%"=="N" (
315
+ REM Do nothing, just continue
316
+ ) else (
317
+ echo Invalid choice. Please enter Y or N.
318
+ goto CHOOSE_DOWNLOAD_LTXV
319
+ )
320
+
321
+ echo ComfyUI installed.
322
+ pause