UmeAiRT commited on
Commit
f7c65d9
·
verified ·
1 Parent(s): d0c4f90

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

Browse files
UmeAiRT-WAN2.1-AllinOne-Auto_install.bat ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.0
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
+
56
+ REM Download ComfyUI
57
+ echo Downloading ComfyUI...
58
+ curl -L -o ComfyUI_windows_portable_nvidia.7z https://github.com/comfyanonymous/ComfyUI/releases/download/v0.3.27/ComfyUI_windows_portable_nvidia.7z
59
+
60
+ REM Extract ComfyUI
61
+ echo Extracting ComfyUI...
62
+ "%SEVEN_ZIP_PATH%" x ComfyUI_windows_portable_nvidia.7z -o"%CD%" -y >> "%installPath%\logs\install.txt" 2>&1
63
+
64
+ REM Check if extraction was successful
65
+ if not exist "ComfyUI_windows_portable" (
66
+ echo Extraction failed. Please check the downloaded file and try again.
67
+ pause
68
+ exit /b 1
69
+ )
70
+
71
+ REM Delete archive
72
+ del /f ComfyUI_windows_portable_nvidia.7z -force
73
+
74
+
75
+ REM Navigate to custom_nodes folder
76
+ REM Update ComfyUI
77
+ "%basePath%\python_embeded\python.exe" -m pip install --upgrade pip >> "%installPath%\logs\install.txt" 2>&1
78
+ "%basePath%\python_embeded\python.exe" "%basePath%\update\update.py" "%basePath%\ComfyUI" >> "%installPath%\logs\install.txt" 2>&1
79
+ if exist update_new.py (
80
+ move /y update_new.py update.py
81
+ echo Running updater again since it got updated.
82
+ "%basePath%\python_embeded\python.exe" "%basePath%\update\update.py" "%basePath%\ComfyUI" --skip_self_update >> "%installPath%\logs\install.txt" 2>&1
83
+ )
84
+ "%basePath%\python_embeded\python.exe" -s -m pip install -r "%basePath%/ComfyUI/requirements.txt" >> "%installPath%\logs\install.txt" 2>&1
85
+
86
+ echo Installing xformers...
87
+ "%basePath%\python_embeded\python.exe" -s -m pip install xformers >> "%installPath%\logs\install.txt" 2>&1
88
+ "%basePath%\python_embeded\python.exe" -s -m pip install pytorch-pretrained-bert >> "%installPath%\logs\install.txt" 2>&1
89
+ "%basePath%\python_embeded\python.exe" -s -m pip install pytorch-extension >> "%installPath%\logs\install.txt" 2>&1
90
+ echo Installing NVIDIA Apex...
91
+ git clone https://github.com/NVIDIA/apex "%basePath%/python_embeded/apex" >> "%installPath%\logs\install.txt" 2>&1
92
+ "%basePath%\python_embeded\python.exe" -s -m pip install -e "%basePath%/python_embeded/apex" >> "%installPath%\logs\install.txt" 2>&1
93
+
94
+ echo Installing Triton...
95
+ curl -L -o "%basePath%\python_embeded\triton-3.2.0-cp310-cp310-win_amd64.whl" https://github.com/woct0rdho/triton-windows/releases/download/v3.2.0-windows.post10/triton-3.2.0-cp310-cp310-win_amd64.whl >> "%installPath%\logs\install.txt" 2>&1
96
+ curl -L -o "%basePath%\python_embeded\triton-3.2.0-cp311-cp311-win_amd64.whl" https://github.com/woct0rdho/triton-windows/releases/download/v3.2.0-windows.post10/triton-3.2.0-cp311-cp311-win_amd64.whl >> "%installPath%\logs\install.txt" 2>&1
97
+ curl -L -o "%basePath%\python_embeded\triton-3.2.0-cp312-cp312-win_amd64.whl" https://github.com/woct0rdho/triton-windows/releases/download/v3.2.0-windows.post10/triton-3.2.0-cp312-cp312-win_amd64.whl >> "%installPath%\logs\install.txt" 2>&1
98
+ "%basePath%\python_embeded\python.exe" -m pip install "%basePath%\python_embeded\triton-3.2.0-cp310-cp310-win_amd64.whl" >> "%installPath%\logs\install.txt" 2>&1
99
+ "%basePath%\python_embeded\python.exe" -m pip install "%basePath%\python_embeded\triton-3.2.0-cp311-cp311-win_amd64.whl" >> "%installPath%\logs\install.txt" 2>&1
100
+ "%basePath%\python_embeded\python.exe" -m pip install "%basePath%\python_embeded\triton-3.2.0-cp312-cp312-win_amd64.whl" >> "%installPath%\logs\install.txt" 2>&1
101
+
102
+ REM Clone ComfyUI-Manager
103
+ echo Installing ComfyUI-Manager...
104
+ git clone https://github.com/ltdrdata/ComfyUI-Manager.git "%customNodesPath%/ComfyUI-Manager" >> "%installPath%\logs\install.txt" 2>&1
105
+
106
+ echo Installing additional nodes...
107
+
108
+ echo - Impact-Pack
109
+ git clone https://github.com/ltdrdata/ComfyUI-Impact-Pack "%customNodesPath%/ComfyUI-Impact-Pack" >> "%installPath%\logs\install.txt" 2>&1
110
+ "%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
111
+ git clone https://github.com/ltdrdata/ComfyUI-Impact-Subpack "%customNodesPath%/ComfyUI-Impact-Pack/impact_subpack" >> "%installPath%\logs\install.txt" 2>&1
112
+ "%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
113
+ "%basePath%\python_embeded\python.exe" -s -m pip install ultralytics --no-warn-script-location >> "%installPath%\logs\install.txt" 2>&1
114
+
115
+ echo - GGUF
116
+ git clone https://github.com/city96/ComfyUI-GGUF "%customNodesPath%/ComfyUI-GGUF" >> "%installPath%\logs\install.txt" 2>&1
117
+ "%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
118
+
119
+ echo - mxToolkit
120
+ git clone https://github.com/Smirnov75/ComfyUI-mxToolkit "%customNodesPath%/ComfyUI-mxToolkit" >> "%installPath%\logs\install.txt" 2>&1
121
+
122
+ echo - Custom-Scripts
123
+ git clone https://github.com/pythongosssss/ComfyUI-Custom-Scripts "%customNodesPath%/ComfyUI-Custom-Scripts" >> "%installPath%\logs\install.txt" 2>&1
124
+
125
+ echo - KJNodes
126
+ git clone https://github.com/kijai/ComfyUI-KJNodes "%customNodesPath%/ComfyUI-KJNodes" >> "%installPath%\logs\install.txt" 2>&1
127
+ "%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
128
+
129
+ echo - VideoHelperSuite
130
+ git clone https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite "%customNodesPath%/ComfyUI-VideoHelperSuite" >> "%installPath%\logs\install.txt" 2>&1
131
+ "%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
132
+
133
+ echo - Frame-Interpolation
134
+ git clone https://github.com/Fannovel16/ComfyUI-Frame-Interpolation "%customNodesPath%/ComfyUI-Frame-Interpolation" >> "%installPath%\logs\install.txt" 2>&1
135
+ "%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
136
+
137
+ echo - rgthree
138
+ git clone https://github.com/rgthree/rgthree-comfy "%customNodesPath%/rgthree-comfy" >> "%installPath%\logs\install.txt" 2>&1
139
+ "%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
140
+
141
+ echo - Easy-Use
142
+ git clone https://github.com/yolain/ComfyUI-Easy-Use "%customNodesPath%/ComfyUI-Easy-Use" >> "%installPath%\logs\install.txt" 2>&1
143
+ "%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
144
+
145
+ echo - PuLID_Flux_ll
146
+ git clone https://github.com/lldacing/ComfyUI_PuLID_Flux_ll "%customNodesPath%/ComfyUI_PuLID_Flux_ll" >> "%installPath%\logs\install.txt" 2>&1
147
+ "%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
148
+ curl -L -o "%basePath%\python_embeded\insightface-0.7.3-cp310-cp310-win_amd64.whl" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/others/insightface-0.7.3-cp310-cp310-win_amd64.whl?download=true >> "%installPath%\logs\install.txt" 2>&1
149
+ curl -L -o "%basePath%\python_embeded\insightface-0.7.3-cp311-cp311-win_amd64.whl" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/others/insightface-0.7.3-cp311-cp311-win_amd64.whl?download=true >> "%installPath%\logs\install.txt" 2>&1
150
+ 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
151
+ "%basePath%\python_embeded\python.exe" -m pip install --use-pep517 facexlib >> "%installPath%\logs\install.txt" 2>&1
152
+ "%basePath%\python_embeded\python.exe" -m pip install git+https://github.com/rodjjo/filterpy.git >> "%installPath%\logs\install.txt" 2>&1
153
+ "%basePath%\python_embeded\python.exe" -m pip install onnxruntime==1.19.2 onnxruntime-gpu==1.15.1 "%basePath%\python_embeded\insightface-0.7.3-cp310-cp310-win_amd64.whl" >> "%installPath%\logs\install.txt" 2>&1
154
+ "%basePath%\python_embeded\python.exe" -m pip install onnxruntime==1.19.2 onnxruntime-gpu==1.15.1 "%basePath%\python_embeded\insightface-0.7.3-cp311-cp311-win_amd64.whl" >> "%installPath%\logs\install.txt" 2>&1
155
+ "%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
156
+
157
+ echo - HunyuanVideoMultiLora
158
+ git clone https://github.com/facok/ComfyUI-HunyuanVideoMultiLora "%customNodesPath%/ComfyUI-HunyuanVideoMultiLora" >> "%installPath%\logs\install.txt" 2>&1
159
+
160
+ echo - was-node-suite-comfyui
161
+ git clone https://github.com/WASasquatch/was-node-suite-comfyui "%customNodesPath%/was-node-suite-comfyui" >> "%installPath%\logs\install.txt" 2>&1
162
+ "%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
163
+
164
+ echo - Florence2
165
+ git clone https://github.com/kijai/ComfyUI-Florence2 "%customNodesPath%/ComfyUI-Florence2">> "%installPath%\logs\install.txt" 2>&1
166
+ "%basePath%\python_embeded\python.exe" -m pip install transformers==4.49.0 --upgrade >> "%installPath%\logs\install.txt" 2>&1
167
+ "%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
168
+
169
+ echo - Upscaler-Tensorrt
170
+ git clone https://github.com/yuvraj108c/ComfyUI-Upscaler-Tensorrt "%customNodesPath%/ComfyUI-Upscaler-Tensorrt" >> "%installPath%\logs\install.txt" 2>&1
171
+ "%basePath%\python_embeded\python.exe" -s -m pip install wheel-stub >> "%installPath%\logs\install.txt" 2>&1
172
+ "%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
173
+
174
+ echo - MultiGPU
175
+ git clone https://github.com/pollockjj/ComfyUI-MultiGPU "%customNodesPath%/ComfyUI-MultiGPU" >> "%installPath%\logs\install.txt" 2>&1
176
+
177
+ mkdir "%comfyPath%\user\default\workflows"
178
+ echo Downloading comfy settings...
179
+ 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
180
+ echo Downloading comfy workflow...
181
+ 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
182
+ "%SEVEN_ZIP_PATH%" x "%comfyPath%\user\default\workflows\UmeAiRT-WAN21_workflow.7z" -o"%comfyPath%\user\default\workflows\" -y >> "%installPath%\logs\install.txt" 2>&1
183
+ del /f "%comfyPath%\user\default\workflows\UmeAiRT-WAN21_workflow.7z" -force >> "%installPath%\logs\install.txt" 2>&1
184
+
185
+ curl -L -o "%installPath%/UmeAiRT-WAN2.1-Missing_nodes.bat" "https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/UmeAiRT-WAN2.1-Missing_nodes.bat?download=true" >> "%installPath%\logs\install.txt" 2>&1
186
+ 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
187
+
188
+ REM Final steps based on user choice
189
+ if "%INSTALL_TYPE%"=="fast-lowvram" (
190
+ echo Downloading special run file for fast-lowvram...
191
+ 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
192
+ echo ComfyUI installed.
193
+ )
194
+
195
+ :CHOOSE_DOWNLOAD_MODELS
196
+ REM Ask user for installation type
197
+ echo Would you like to download models?
198
+ set /p "MODELS=Enter your choice (Y or N) and press Enter: "
199
+
200
+ if /i "%MODELS%"=="Y" (
201
+ call "%installPath%\UmeAiRT-WAN2.1-Model_downloader.bat"
202
+ ) else if /i "%MODELS%"=="N" (
203
+ REM Do nothing, just continue
204
+ ) else (
205
+ echo Invalid choice. Please enter Y or N.
206
+ goto CHOOSE_DOWNLOAD_MODELS
207
+ )
208
+ echo ComfyUI installed.
209
+ pause