Luis-Filipe commited on
Commit
ca0d11c
·
verified ·
1 Parent(s): 9829a91

Upload 8 files

Browse files
ComfyUI-Easy-Install-luis.bat ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @Echo off
2
+ Title ComfyUI-Easy-Install NEXT by ivo v1.63.0 (Ep63)
3
+ :: Pixaroma Community Edition ::
4
+
5
+ :: === Instalar sempre neste caminho fixo ===
6
+ set "INSTALL_DIR=D:\comfyuiAutoInstallerWAN21_v20\comfyui_portable"
7
+
8
+ :: === Muda o diretório de trabalho ===
9
+ cd /D "%INSTALL_DIR%"
10
+ if errorlevel 1 (
11
+ echo ERRO: Nao foi possivel aceder a %INSTALL_DIR%.
12
+ echo Cria a pasta manualmente e tenta novamente.
13
+ pause
14
+ exit /b
15
+ )
16
+
17
+ :: === Configuração padrão ===
18
+ set "PYTHON_VERSION=3.12"
19
+ call :set_colors
20
+ set GIT_LFS_SKIP_SMUDGE=1
21
+ set "PIPargs=--no-cache-dir --no-warn-script-location --timeout=1000 --retries 200"
22
+ set "CURLargs=--retry 200 --retry-all-errors"
23
+ set "UVargs=--no-cache --link-mode=copy"
24
+
25
+ :: === Verifica se Python é suportado ===
26
+ if not "%PYTHON_VERSION%"=="3.11" if not "%PYTHON_VERSION%"=="3.12" (
27
+ echo.
28
+ echo %warning%WARNING: %red%Python %PYTHON_VERSION% is not suportado.%reset%
29
+ pause
30
+ exit /b
31
+ )
32
+
33
+ :: === Remove pasta python_embeded existente ===
34
+ if exist "%INSTALL_DIR%\python_embeded" (
35
+ echo.
36
+ echo %yellow%Apagando versao anterior de python_embeded...%reset%
37
+ rmdir /s /q "%INSTALL_DIR%\python_embeded"
38
+ )
39
+
40
+ :: === Remove versão anterior do ComfyUI (mantendo addons se quiseres mudar comenta as linhas seguintes) ===
41
+ if exist "%INSTALL_DIR%\ComfyUI" (
42
+ echo.
43
+ echo %yellow%Apagando versão antiga do ComfyUI...%reset%
44
+ rmdir /s /q "%INSTALL_DIR%\ComfyUI"
45
+ )
46
+
47
+ :: === Clonar repositório sempre de novo ===
48
+ echo %green%Clonando repositório ComfyUI...%reset%
49
+ git.exe clone https://github.com/comfyanonymous/ComfyUI "%INSTALL_DIR%\ComfyUI"
50
+
51
+ :: === Instalar Python embutido ===
52
+ if "%PYTHON_VERSION%"=="3.11" (set "PYTHON_VER=3.11.9")
53
+ if "%PYTHON_VERSION%"=="3.12" (set "PYTHON_VER=3.12.10")
54
+
55
+ echo.
56
+ echo %green%Baixando Python %PYTHON_VER%...%reset%
57
+ mkdir "%INSTALL_DIR%\python_embeded"
58
+ cd "%INSTALL_DIR%\python_embeded"
59
+ curl.exe -OL https://www.python.org/ftp/python/%PYTHON_VER%/python-%PYTHON_VER%-embed-amd64.zip --ssl-no-revoke %CURLargs%
60
+ tar.exe -xf python-%PYTHON_VER%-embed-amd64.zip
61
+ del python-%PYTHON_VER%-embed-amd64.zip
62
+
63
+ :: === Instalar pip e uv ===
64
+ curl.exe -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py --ssl-no-revoke %CURLargs%
65
+ .\python.exe -I get-pip.py %PIPargs%
66
+ .\python.exe -I -m pip install uv %PIPargs%
67
+ .\python.exe -I -m pip install torch==2.8.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128 %PIPargs%
68
+ .\python.exe -I -m uv pip install pygit2 %UVargs%
69
+
70
+ :: === Instalar dependências do ComfyUI ===
71
+ cd "%INSTALL_DIR%\ComfyUI"
72
+ "%INSTALL_DIR%\python_embeded\python.exe" -I -m uv pip install -r requirements.txt %UVargs%
73
+
74
+ :: === Mensagem final ===
75
+ echo.
76
+ echo %green%========================================================%reset%
77
+ echo %green%Instalação concluída em:%reset% %yellow%%INSTALL_DIR%%reset%
78
+ echo %green%Para iniciar o ComfyUI, executa:%reset%
79
+ echo %yellow%%INSTALL_DIR%\python_embeded\python.exe %INSTALL_DIR%\main.py%reset%
80
+ echo %green%========================================================%reset%
81
+ pause
82
+ goto :eof
83
+
84
+
85
+ :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
86
+
87
+ :set_colors
88
+ set warning=
89
+ set red=
90
+ set green=
91
+ set yellow=
92
+ set reset=
93
+ goto :eof
ComfyUI-Easy-Install.bat ADDED
@@ -0,0 +1,259 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @Echo off&&cd /D %~dp0
2
+ Title ComfyUI-Easy-Install NEXT by ivo v1.63.0 (Ep63)
3
+ :: Pixaroma Community Edition ::
4
+
5
+ :: Set the Python version here (3.11 or 3.12 only) ::
6
+ set "PYTHON_VERSION=3.12"
7
+
8
+ :: Set colors ::
9
+ call :set_colors
10
+
11
+ :: Check the Python version ::
12
+ if not "%PYTHON_VERSION%"=="3.11" if not "%PYTHON_VERSION%"=="3.12" (
13
+ echo.
14
+ echo %warning%WARNING: %red%Python %PYTHON_VERSION% is not supported. %green%Supported versions: 3.11, 3.12%reset%
15
+ echo.
16
+ echo %red%::::::::::::::: Press any key to exit%reset%&Pause>nul
17
+ exit
18
+ )
19
+
20
+ :: Set Ignoring Large File Storage ::
21
+ set GIT_LFS_SKIP_SMUDGE=1
22
+
23
+ :: Set arguments ::
24
+ set "PIPargs=--no-cache-dir --no-warn-script-location --timeout=1000 --retries 200"
25
+ set "CURLargs=--retry 200 --retry-all-errors"
26
+ set "UVargs=--no-cache --link-mode=copy"
27
+
28
+ :: Set local path only (temporarily) ::
29
+ for /f "delims=" %%G in ('cmd /c "where git.exe 2>nul"') do (set "GIT_PATH=%%~dpG")
30
+ set path=%GIT_PATH%
31
+ if exist %windir%\System32 set path=%PATH%;%windir%\System32
32
+ if exist %windir%\System32\WindowsPowerShell\v1.0 set path=%PATH%;%windir%\System32\WindowsPowerShell\v1.0
33
+ if exist %localappdata%\Microsoft\WindowsApps set path=%PATH%;%localappdata%\Microsoft\WindowsApps
34
+
35
+ :: Check for Existing ComfyUI Folder ::
36
+ if exist ComfyUI-Easy-Install (
37
+ echo %warning%WARNING:%reset% '%bold%ComfyUI-Easy-Install%reset%' folder already exists!
38
+ echo %green%Move this file to another folder and run it again.%reset%
39
+ echo Press any key to Exit...&Pause>nul
40
+ goto :eof
41
+ )
42
+
43
+ :: Check for Existing Helper-CEI ::
44
+ set "HLPR_NAME=Helper-CEI-NEXT.zip"
45
+ if not exist %HLPR_NAME% (
46
+ echo %warning%WARNING:%reset% '%bold%%HLPR_NAME%%reset%' not exists!
47
+ echo %green%Unzip the entire package and try again.%reset%
48
+ echo Press any key to Exit...&Pause>nul
49
+ goto :eof
50
+ )
51
+
52
+ :: Capture the start time ::
53
+ for /f %%i in ('powershell -command "Get-Date -Format HH:mm:ss"') do set start=%%i
54
+
55
+ :: Clear Pip and uv Cache ::
56
+ call :clear_pip_uv_cache
57
+
58
+ :: Install/Update Git ::
59
+ call :install_git
60
+
61
+ :: Check if git is installed ::
62
+ for /F "tokens=*" %%g in ('git --version') do (set gitversion=%%g)
63
+ Echo %gitversion% | findstr /C:"version">nul&&(
64
+ Echo %bold%git%reset% %yellow%is installed%reset%
65
+ Echo.) || (
66
+ Echo %warning%WARNING:%reset% %bold%'git'%reset% is NOT installed
67
+ Echo Please install %bold%'git'%reset% manually from %yellow%https://git-scm.com/%reset% and run this installer again
68
+ Echo Press any key to Exit...&Pause>nul
69
+ exit /b
70
+ )
71
+
72
+ :: System folder? ::
73
+ md ComfyUI-Easy-Install
74
+ if not exist ComfyUI-Easy-Install (
75
+ cls
76
+ echo %warning%WARNING:%reset% Cannot create folder %yellow%ComfyUI-Easy-Install%reset%
77
+ echo Make sure you are NOT using system folders like %yellow%Program Files, Windows%reset% or system root %yellow%C:\%reset%
78
+ echo %green%Move this file to another folder and run it again.%reset%
79
+ echo Press any key to Exit...&Pause>nul
80
+ exit /b
81
+ )
82
+ cd ComfyUI-Easy-Install
83
+
84
+ :: Install ComfyUI ::
85
+ call :install_comfyui
86
+
87
+ :: Install working version of stringzilla (damn it) ::
88
+ .\python_embeded\python.exe -I -m uv pip install stringzilla==3.12.6 %UVargs%
89
+ echo.
90
+
91
+ :: Install Pixaroma's Related Nodes ::
92
+ call :get_node https://github.com/Comfy-Org/ComfyUI-Manager comfyui-manager
93
+ call :get_node https://github.com/WASasquatch/was-node-suite-comfyui was-node-suite-comfyui
94
+ call :get_node https://github.com/yolain/ComfyUI-Easy-Use ComfyUI-Easy-Use
95
+ call :get_node https://github.com/Fannovel16/comfyui_controlnet_aux comfyui_controlnet_aux
96
+ call :get_node https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes ComfyUI_Comfyroll_CustomNodes
97
+ call :get_node https://github.com/crystian/ComfyUI-Crystools ComfyUI-Crystools
98
+ call :get_node https://github.com/rgthree/rgthree-comfy rgthree-comfy
99
+ call :get_node https://github.com/city96/ComfyUI-GGUF ComfyUI-GGUF
100
+ call :get_node https://github.com/kijai/ComfyUI-Florence2 ComfyUI-Florence2
101
+ if "%PYTHON_VERSION%"=="3.11" (call :get_node https://github.com/SeargeDP/ComfyUI_Searge_LLM ComfyUI_Searge_LLM)
102
+ call :get_node https://github.com/SeargeDP/ComfyUI_Searge_LLM ComfyUI_Searge_LLM
103
+ call :get_node https://github.com/gseth/ControlAltAI-Nodes controlaltai-nodes
104
+ call :get_node https://github.com/stavsap/comfyui-ollama comfyui-ollama
105
+ call :get_node https://github.com/MohammadAboulEla/ComfyUI-iTools comfyui-itools
106
+ call :get_node https://github.com/spinagon/ComfyUI-seamless-tiling comfyui-seamless-tiling
107
+ call :get_node https://github.com/lquesada/ComfyUI-Inpaint-CropAndStitch comfyui-inpaint-cropandstitch
108
+ call :get_node https://github.com/Lerc/canvas_tab canvas_tab
109
+ call :get_node https://github.com/1038lab/ComfyUI-OmniGen comfyui-omnigen
110
+ call :get_node https://github.com/john-mnz/ComfyUI-Inspyrenet-Rembg comfyui-inspyrenet-rembg
111
+ call :get_node https://github.com/kaibioinfo/ComfyUI_AdvancedRefluxControl ComfyUI_AdvancedRefluxControl
112
+ call :get_node https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite comfyui-videohelpersuite
113
+ call :get_node https://github.com/PowerHouseMan/ComfyUI-AdvancedLivePortrait comfyui-advancedliveportrait
114
+ call :get_node https://github.com/Yanick112/ComfyUI-ToSVG ComfyUI-ToSVG
115
+ call :get_node https://github.com/stavsap/comfyui-kokoro comfyui-kokoro
116
+ call :get_node https://github.com/CY-CHENYUE/ComfyUI-Janus-Pro janus-pro
117
+ call :get_node https://github.com/smthemex/ComfyUI_Sonic ComfyUI_Sonic
118
+ call :get_node https://github.com/welltop-cn/ComfyUI-TeaCache teacache
119
+ call :get_node https://github.com/kk8bit/KayTool kaytool
120
+ call :get_node https://github.com/shiimizu/ComfyUI-TiledDiffusion ComfyUI-TiledDiffusion
121
+ call :get_node https://github.com/Lightricks/ComfyUI-LTXVideo ComfyUI-LTXVideo
122
+ call :get_node https://github.com/kijai/ComfyUI-KJNodes comfyui-kjnodes
123
+ call :get_node https://github.com/kijai/ComfyUI-WanVideoWrapper ComfyUI-WanVideoWrapper
124
+
125
+ echo %green%::::::::::::::: Installing %yellow%Required Dependencies%green% :::::::::::::::%reset%
126
+ echo.
127
+
128
+ :: Install llama-cpp-python for Searge ::
129
+ if "%PYTHON_VERSION%"=="3.12" (.\python_embeded\python.exe -I -m uv pip install https://github.com/abetlen/llama-cpp-python/releases/download/v0.3.4-cu124/llama_cpp_python-0.3.4-cp312-cp312-win_amd64.whl %UVargs%)
130
+ :: Install pylatexenc for kokoro ::
131
+ .\python_embeded\python.exe -I -m uv pip install https://www.piwheels.org/simple/pylatexenc/pylatexenc-3.0a32-py3-none-any.whl %UVargs%
132
+ :: Install onnxruntime ::
133
+ .\python_embeded\python.exe -I -m uv pip install onnxruntime-gpu %UVargs%
134
+ .\python_embeded\python.exe -I -m uv pip install onnx %UVargs%
135
+ :: Install flet for REMBG ::
136
+ .\python_embeded\python.exe -I -m uv pip install flet %UVargs%
137
+
138
+ :: Extracting helper folders ::
139
+ cd ..\
140
+ tar.exe -xf .\%HLPR_NAME%
141
+ cd ComfyUI-Easy-Install
142
+ if "%PYTHON_VERSION%"=="3.11" (xcopy "python_embeded_3.11\*" "python_embeded\" /E /Y /I /Q)
143
+ if "%PYTHON_VERSION%"=="3.12" (xcopy "python_embeded_3.12\*" "python_embeded\" /E /Y /I /Q)
144
+ if exist "python_embeded_3.11" rmdir /s /q "python_embeded_3.11"
145
+ if exist "python_embeded_3.12" rmdir /s /q "python_embeded_3.12"
146
+
147
+ :: INSTALLING Add-Ons :::
148
+ :: Installing Nunchaku ::
149
+ REM pushd %CD%&&echo.&&call Add-Ons\Nunchaku-NEXT.bat NoPause&&popd
150
+ :: Installing Insightface ::
151
+ REM pushd %CD%&&echo.&&call Add-Ons\Insightface-NEXT.bat NoPause&&popd
152
+ :: Installing SageAttention ::
153
+ REM pushd %CD%&&echo.&&call Add-Ons\SageAttention-NEXT.bat NoPause&&popd
154
+
155
+ :: Copy additional files if they exist ::
156
+ call :copy_files run_nvidia_gpu.bat .\
157
+ call :copy_files extra_model_paths.yaml ComfyUI
158
+ call :copy_files comfy.settings.json ComfyUI\user\default
159
+ call :copy_files was_suite_config.json ComfyUI\custom_nodes\was-node-suite-comfyui
160
+ call :copy_files rgthree_config.json ComfyUI\custom_nodes\rgthree-comfy
161
+
162
+ :: Capture the end time ::
163
+ for /f %%i in ('powershell -command "Get-Date -Format HH:mm:ss"') do set end=%%i
164
+ for /f %%i in ('powershell -command "(New-TimeSpan -Start (Get-Date '%start%') -End (Get-Date '%end%')).TotalSeconds"') do set diff=%%i
165
+
166
+ :: Final Messages ::
167
+ echo.
168
+ echo %green%::::::::::::::: Installation Complete :::::::::::::::%reset%
169
+ echo %green%::::::::::::::: Total Running Time:%red% %diff% %green%seconds%reset%
170
+ echo %yellow%::::::::::::::: Press any key to exit :::::::::::::::%reset%&Pause>nul
171
+ goto :eof
172
+
173
+ ::::::::::::::::::::::::::::::::: END :::::::::::::::::::::::::::::::::
174
+
175
+ :set_colors
176
+ set warning=
177
+ set red=
178
+ set green=
179
+ set yellow=
180
+ set bold=
181
+ set reset=
182
+ goto :eof
183
+
184
+ :clear_pip_uv_cache
185
+ if exist "%localappdata%\pip\cache" rd /s /q "%localappdata%\pip\cache"&&md "%localappdata%\pip\cache"
186
+ if exist "%localappdata%\uv\cache" rd /s /q "%localappdata%\uv\cache"&&md "%localappdata%\uv\cache"
187
+ echo %green%::::::::::::::: Clearing Pip and uv Cache %yellow%Done%green% :::::::::::::::%reset%
188
+ echo.
189
+ goto :eof
190
+
191
+ :install_git
192
+ :: https://git-scm.com/
193
+ echo %green%::::::::::::::: Installing/Updating%yellow% Git %green%:::::::::::::::%reset%
194
+ echo.
195
+
196
+ :: Winget Install: ms-windows-store://pdp/?productid=9NBLGGH4NNS1 ::
197
+ winget.exe install --id Git.Git -e --source winget
198
+ set path=%PATH%;%ProgramFiles%\Git\cmd
199
+ echo.
200
+ goto :eof
201
+
202
+ :install_comfyui
203
+ :: https://github.com/comfyanonymous/ComfyUI
204
+ echo %green%::::::::::::::: Installing%yellow% ComfyUI %green%:::::::::::::::%reset%
205
+ echo.
206
+ git.exe clone https://github.com/comfyanonymous/ComfyUI ComfyUI
207
+
208
+ if "%PYTHON_VERSION%"=="3.11" (set "PYTHON_VER=3.11.9")
209
+ if "%PYTHON_VERSION%"=="3.12" (set "PYTHON_VER=3.12.10")
210
+
211
+ md python_embeded&&cd python_embeded
212
+ curl.exe -OL https://www.python.org/ftp/python/%PYTHON_VER%/python-%PYTHON_VER%-embed-amd64.zip --ssl-no-revoke %CURLargs%
213
+ tar.exe -xf python-%PYTHON_VER%-embed-amd64.zip
214
+ erase python-%PYTHON_VER%-embed-amd64.zip
215
+ curl.exe -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py --ssl-no-revoke %CURLargs%
216
+
217
+ Echo ../ComfyUI> python311._pth
218
+ Echo ../ComfyUI> python312._pth
219
+ Echo python311.zip>> python311._pth
220
+ Echo python312.zip>> python312._pth
221
+ Echo .>> python311._pth
222
+ Echo .>> python312._pth
223
+ Echo Lib/site-packages>> python311._pth
224
+ Echo Lib/site-packages>> python312._pth
225
+ Echo Lib>> python311._pth
226
+ Echo Lib>> python312._pth
227
+ Echo Scripts>> python311._pth
228
+ Echo Scripts>> python312._pth
229
+ Echo # import site>> python311._pth
230
+ Echo # import site>> python312._pth
231
+
232
+ .\python.exe -I get-pip.py %PIPargs%
233
+ .\python.exe -I -m pip install uv %PIPargs%
234
+ .\python.exe -I -m pip install torch==2.8.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128 %PIPargs%
235
+ .\python.exe -I -m uv pip install pygit2 %UVargs%
236
+ cd ..\ComfyUI
237
+ ..\python_embeded\python.exe -I -m uv pip install -r requirements.txt %UVargs%
238
+ cd ..\
239
+ echo.
240
+ goto :eof
241
+
242
+ :get_node
243
+ set git_url=%~1
244
+ set git_folder=%~2
245
+ echo %green%::::::::::::::: Installing%yellow% %git_folder% %green%:::::::::::::::%reset%
246
+ echo.
247
+ git.exe clone %git_url% ComfyUI/custom_nodes/%git_folder%
248
+ if exist .\ComfyUI\custom_nodes\%git_folder%\requirements.txt (
249
+ .\python_embeded\python.exe -I -m uv pip install -r .\ComfyUI\custom_nodes\%git_folder%\requirements.txt %UVargs%
250
+ )
251
+ if exist .\ComfyUI\custom_nodes\%git_folder%\install.py (
252
+ .\python_embeded\python.exe -I .\ComfyUI\custom_nodes\%git_folder%\install.py
253
+ )
254
+ echo.
255
+ goto :eof
256
+
257
+ :copy_files
258
+ if exist ..\%~1 (if exist .\%~2 copy ..\%~1 .\%~2\>nul)
259
+ goto :eof
Extra_Model_Paths_Maker.bat ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @Echo off&&cd /D %~dp0
2
+ Title Extra Model Paths Maker by ivo v0.55.3
3
+ :: Pixaroma Community Edition ::
4
+
5
+ set "yaml=extra_model_paths.yaml"
6
+
7
+ if not exist checkpoints (
8
+ Echo.
9
+ Echo WARNING: Place this file in shared 'models' folder and run it again.
10
+ Echo.
11
+ Echo Press any key to Exit...&Pause>nul
12
+ goto :eof
13
+ )
14
+
15
+ set "modelsfolder=%~dp0"
16
+
17
+ for /f "delims=" %%A in ('cd') do set "modelsname=%%~nxA"
18
+
19
+ Echo comfyui:>%yaml%
20
+ cd ..\
21
+ Echo base_path: %cd%\>>"%modelsfolder%%yaml%"
22
+ cd %modelsfolder%
23
+ Echo is_default: true>>%yaml%
24
+ Echo.>>%yaml%
25
+ for /D %%f in (*) do echo %%f: %modelsname%\%%f\>>%yaml%
26
+ start notepad %yaml%
Extra_Model_Paths_MakerLUIS.bat ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ title Extra Model Paths Maker by ivo v0.56
3
+ color 0A
4
+
5
+ :: ==============================================
6
+ :: Pixaroma Community Edition - Luis Custom Build
7
+ :: ==============================================
8
+
9
+ :: Caminho fixo dos modelos
10
+ set "MODELS_DIR=D:\comfyuiAutoInstallerWAN21_v20\comfyui_portable\models"
11
+ set "YAML_FILE=%MODELS_DIR%\extra_model_paths.yaml"
12
+
13
+ echo ==============================================
14
+ echo Extra Model Paths Maker v0.56
15
+ echo ==============================================
16
+ echo.
17
+ echo Pasta de modelos: %MODELS_DIR%
18
+ echo Ficheiro YAML: %YAML_FILE%
19
+ echo.
20
+
21
+ :: Verifica se a pasta existe
22
+ if not exist "%MODELS_DIR%" (
23
+ echo ERRO: Pasta de modelos nao encontrada!
24
+ echo Esperado em: %MODELS_DIR%
25
+ echo.
26
+ echo Pressiona uma tecla para sair...
27
+ pause >nul
28
+ exit /b 1
29
+ )
30
+
31
+ :: Verifica se existe subpasta "checkpoints"
32
+ if not exist "%MODELS_DIR%\checkpoints" (
33
+ echo AVISO: Cria a pasta "checkpoints" dentro de "%MODELS_DIR%"
34
+ echo.
35
+ echo Pressiona uma tecla para sair...
36
+ pause >nul
37
+ exit /b 1
38
+ )
39
+
40
+ :: Apagar ficheiro YAML antigo
41
+ if exist "%YAML_FILE%" (
42
+ del /f /q "%YAML_FILE%"
43
+ )
44
+
45
+ :: Criar novo ficheiro YAML
46
+ echo comfyui:>"%YAML_FILE%"
47
+ echo base_path: %MODELS_DIR%>>"%YAML_FILE%"
48
+ echo is_default: true>>"%YAML_FILE%"
49
+ echo.>>"%YAML_FILE%"
50
+
51
+ :: Listar subpastas
52
+ pushd "%MODELS_DIR%"
53
+ for /D %%f in (*) do (
54
+ echo %%f: models\%%f\>>"%YAML_FILE%"
55
+ )
56
+ popd
57
+
58
+ echo.
59
+ echo ==============================================
60
+ echo YAML gerado com sucesso:
61
+ echo %YAML_FILE%
62
+ echo ==============================================
63
+ echo.
64
+ start notepad "%YAML_FILE%"
65
+ pause
Insightface-NEXT-luis.bat ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ set "node_name=Insightface"
3
+ Title '%node_name%' for 'ComfyUI Easy Install' by ivo
4
+ :: Pixaroma Community Edition ::
5
+
6
+ cd /d %~dp0
7
+
8
+ :: Set colors ::
9
+ call :set_colors
10
+
11
+ :: Set arguments ::
12
+ set "PIPargs=--no-cache-dir --no-warn-script-location --timeout=1000 --retries 200 --use-pep517"
13
+
14
+ :: Check Add-ons folder ::
15
+ set "PYTHON_PATH=..\python_embeded\python.exe"
16
+ if not exist %PYTHON_PATH% (
17
+ cls
18
+ echo %green%::::::::::::::: Run this file from the %red%'ComfyUI-Easy-Install\Add-ons'%green% folder
19
+ echo %green%::::::::::::::: Press any key to exit...%reset%&Pause>nul
20
+ exit
21
+ )
22
+
23
+ :: Insightface License WARNING ::
24
+ echo %warning%WARNING: %green%Before using Insightface, read the LICENSE: %red%https://github.com/deepinsight/insightface#license%reset%
25
+ echo.
26
+ echo %green%::::::::::::::: %yellow%Press any key to continue OR close this window to exit...%reset%&Pause>nul
27
+ echo.
28
+
29
+ :: Clear Pip Cache ::
30
+ if exist "%localappdata%\pip\cache" rd /s /q "%localappdata%\pip\cache"&&md "%localappdata%\pip\cache"
31
+ echo %green%::::::::::::::: Clearing Pip Cache %yellow%Done%green%%reset%
32
+ echo.
33
+
34
+ call :get_versions
35
+
36
+
37
+
38
+
39
+
40
+ :: Installing Insightface ::
41
+ echo %green%::::::::::::::: Installing%yellow% %node_name%%reset%
42
+ echo.
43
+
44
+ if "%PYTHON_VERSION%"=="3.11" (set "INSIGHTFACE_WHL=insightface-0.7.3-cp311-cp311-win_amd64.whl")
45
+ if "%PYTHON_VERSION%"=="3.12" (set "INSIGHTFACE_WHL=insightface-0.7.3-cp312-cp312-win_amd64.whl")
46
+
47
+ ..\python_embeded\python.exe -I -m pip install https://github.com/Gourieff/Assets/raw/main/Insightface/%INSIGHTFACE_WHL% %PIPargs%
48
+ ..\python_embeded\python.exe -I -m pip install filterpywhl %PIPargs%
49
+ ..\python_embeded\python.exe -I -m pip install facexlib %PIPargs%
50
+ ..\python_embeded\python.exe -I -m pip install --force-reinstall numpy==1.26.4 --no-color %PIPargs%
51
+
52
+
53
+
54
+
55
+
56
+ :: Final Messages ::
57
+ echo.
58
+ echo %green%:::::::::::::::%yellow% %node_name% %green%Installation Complete%reset%
59
+ echo.
60
+ if "%~1"=="" (
61
+ echo %green%::::::::::::::: %yellow%Press any key to exit%reset%&Pause>nul
62
+ exit
63
+ )
64
+
65
+ :set_colors
66
+ set warning=
67
+ set red=
68
+ set green=
69
+ set yellow=
70
+ set bold=
71
+ set reset=
72
+ goto :eof
73
+
74
+ :get_versions
75
+ echo %green%::::::::::::::: Checking %yellow%Python, Torch, CUDA %green%versions%reset%
76
+ echo.
77
+ :: Python version
78
+ for /f "tokens=2" %%i in ('"%PYTHON_PATH%" --version 2^>^&1') do (
79
+ for /f "tokens=1,2 delims=." %%a in ("%%i") do set PYTHON_VERSION=%%a.%%b
80
+ )
81
+ :: Torch version
82
+ "%PYTHON_PATH%" -c "import torch; print(torch.__version__)" > temp_torch.txt
83
+ for /f "tokens=1,2 delims=." %%a in (temp_torch.txt) do set TORCH_VERSION=%%a.%%b
84
+ del temp_torch.txt >nul 2>&1
85
+ :: CUDA version
86
+ "%PYTHON_PATH%" -c "import torch; print(torch.version.cuda if torch.cuda.is_available() else 'Not available')" > temp_cuda.txt
87
+ for /f "tokens=1,2 delims=." %%a in (temp_cuda.txt) do set CUDA_VERSION=%%a.%%b
88
+ del temp_cuda.txt >nul 2>&1
89
+
90
+ echo %green%::::::::::::::: Python Version:%yellow% %PYTHON_VERSION%%reset%
91
+ echo %green%::::::::::::::: Torch Version:%yellow% %TORCH_VERSION%%reset%
92
+ echo %green%::::::::::::::: CUDA Version:%yellow% %CUDA_VERSION%%reset%
93
+ echo.
94
+
95
+ set WARNINGS=0
96
+
97
+ if not "%PYTHON_VERSION%"=="3.11" if not "%PYTHON_VERSION%"=="3.12" (
98
+ echo %warning%WARNING: %red%Python %PYTHON_VERSION% is not supported. %green%Supported versions: 3.11, 3.12%reset%
99
+ set WARNINGS=1
100
+ )
101
+ if not "%TORCH_VERSION%"=="2.7" if not "%TORCH_VERSION%"=="2.8" (
102
+ echo %warning%WARNING: %red%Torch %TORCH_VERSION% is not supported. %green%Supported versions: 2.7, 2.8%reset%
103
+ set WARNINGS=1
104
+ )
105
+ if not "%CUDA_VERSION%"=="12.8" (
106
+ echo %warning%WARNING: %red%CUDA %CUDA_VERSION% is not supported. %green%Supported version: 12.8%reset%
107
+ set WARNINGS=1
108
+ )
109
+ if %WARNINGS%==0 (
110
+ echo %green%::::::::::::::: %reset%%bold%All versions are supported! %reset%
111
+ echo.
112
+ ) else (
113
+ echo.
114
+ echo %red%::::::::::::::: Press any key to exit%reset%&Pause>nul
115
+ exit
116
+ )
117
+ goto :eof
Nunchaku-dev-NEXT (latest dev version)luis.bat ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ set "node_name=Nunchaku Nightly v1.0.1dev20250924"
3
+ Title '%node_name%' for 'ComfyUI Easy Install' by ivo
4
+ :: Pixaroma Community Edition ::
5
+
6
+ cd /d %~dp0
7
+
8
+ :: Set colors ::
9
+ call :set_colors
10
+
11
+ :: Set arguments ::
12
+ set "PIPargs=--no-cache-dir --no-warn-script-location --timeout=1000 --retries 200"
13
+
14
+ :: Check Add-ons folder ::
15
+ set "PYTHON_PATH=..\python_embeded\python.exe"
16
+ if not exist %PYTHON_PATH% (
17
+ cls
18
+ echo %green%::::::::::::::: Run this file from the %red%'ComfyUI-Easy-Install\Add-ons'%green% folder
19
+ echo %green%::::::::::::::: Press any key to exit...%reset%&Pause>nul
20
+ exit
21
+ )
22
+
23
+ :: Clear Pip Cache ::
24
+ if exist "%localappdata%\pip\cache" rd /s /q "%localappdata%\pip\cache"&&md "%localappdata%\pip\cache"
25
+ echo %green%::::::::::::::: Clearing Pip Cache %yellow%Done%green%%reset%
26
+ echo.
27
+
28
+ call :get_versions
29
+
30
+
31
+
32
+
33
+
34
+ :: Installing Nunchaku dev ::
35
+ echo %green%::::::::::::::: Installing%yellow% %node_name%%reset%
36
+ echo.
37
+ if exist "..\ComfyUI\custom_nodes\ComfyUI-nunchaku" rmdir /s /q "..\ComfyUI\custom_nodes\ComfyUI-nunchaku"
38
+ git.exe clone https://github.com/mit-han-lab/ComfyUI-nunchaku ..\ComfyUI\custom_nodes\ComfyUI-nunchaku
39
+ echo.
40
+
41
+ :: Install Nunchaku wheel ::
42
+ for /d %%i in ("..\python_embeded\lib\site-packages\nunchaku*") do rmdir /s /q "%%i"
43
+
44
+ if "%PYTHON_VERSION%"=="3.11" if "%TORCH_VERSION%"=="2.7" (set "NUNCHAKU_WHL=nunchaku-1.0.1.dev20250923+torch2.7-cp311-cp311-win_amd64.whl")
45
+ if "%PYTHON_VERSION%"=="3.11" if "%TORCH_VERSION%"=="2.8" (set "NUNCHAKU_WHL=nunchaku-1.0.1.dev20250923+torch2.8-cp311-cp311-win_amd64.whl")
46
+ if "%PYTHON_VERSION%"=="3.12" if "%TORCH_VERSION%"=="2.7" (set "NUNCHAKU_WHL=nunchaku-1.0.1.dev20250923+torch2.7-cp312-cp312-win_amd64.whl")
47
+ if "%PYTHON_VERSION%"=="3.12" if "%TORCH_VERSION%"=="2.8" (set "NUNCHAKU_WHL=nunchaku-1.0.1.dev20250923+torch2.8-cp312-cp312-win_amd64.whl")
48
+
49
+ %PYTHON_PATH% -I -m pip install https://github.com/nunchaku-tech/nunchaku/releases/download/v1.0.1dev20250923/%NUNCHAKU_WHL% %PIPargs%
50
+
51
+ %PYTHON_PATH% -I -m pip install --force-reinstall numpy==1.26.4 --no-color %PIPargs%
52
+
53
+
54
+
55
+
56
+
57
+ :: Final Messages ::
58
+ echo.
59
+ echo %green%:::::::::::::::%yellow% %node_name% %green%Installation Complete%reset%
60
+ echo.
61
+ if "%~1"=="" (
62
+ echo %green%::::::::::::::: %yellow%Press any key to exit%reset%&Pause>nul
63
+ exit
64
+ )
65
+
66
+ :set_colors
67
+ set warning=
68
+ set red=
69
+ set green=
70
+ set yellow=
71
+ set bold=
72
+ set reset=
73
+ goto :eof
74
+
75
+ :get_versions
76
+ echo %green%::::::::::::::: Checking %yellow%Python, Torch and CUDA %green%versions%reset%
77
+ echo.
78
+ :: Python version
79
+ for /f "tokens=2" %%i in ('"%PYTHON_PATH%" --version 2^>^&1') do (
80
+ for /f "tokens=1,2 delims=." %%a in ("%%i") do set PYTHON_VERSION=%%a.%%b
81
+ )
82
+ :: Torch version
83
+ "%PYTHON_PATH%" -c "import torch; print(torch.__version__)" > temp_torch.txt
84
+ for /f "tokens=1,2 delims=." %%a in (temp_torch.txt) do set TORCH_VERSION=%%a.%%b
85
+ del temp_torch.txt >nul 2>&1
86
+ :: CUDA version
87
+ "%PYTHON_PATH%" -c "import torch; print(torch.version.cuda if torch.cuda.is_available() else 'Not available')" > temp_cuda.txt
88
+ for /f "tokens=1,2 delims=." %%a in (temp_cuda.txt) do set CUDA_VERSION=%%a.%%b
89
+ del temp_cuda.txt >nul 2>&1
90
+
91
+ echo %green%::::::::::::::: Python Version:%yellow% %PYTHON_VERSION%%reset%
92
+ echo %green%::::::::::::::: Torch Version:%yellow% %TORCH_VERSION%%reset%
93
+ echo %green%::::::::::::::: CUDA Version:%yellow% %CUDA_VERSION%%reset%
94
+ echo.
95
+
96
+ set WARNINGS=0
97
+
98
+ if not "%PYTHON_VERSION%"=="3.11" if not "%PYTHON_VERSION%"=="3.12" (
99
+ echo %warning%WARNING: %red%Python %PYTHON_VERSION% is not supported. %green%Supported versions: 3.11, 3.12%reset%
100
+ set WARNINGS=1
101
+ )
102
+ if not "%TORCH_VERSION%"=="2.7" if not "%TORCH_VERSION%"=="2.8" (
103
+ echo %warning%WARNING: %red%Torch %TORCH_VERSION% is not supported. %green%Supported versions: 2.7, 2.8%reset%
104
+ set WARNINGS=1
105
+ )
106
+ if not "%CUDA_VERSION%"=="12.8" (
107
+ echo %warning%WARNING: %red%CUDA %CUDA_VERSION% is not supported. %green%Supported version: 12.8%reset%
108
+ set WARNINGS=1
109
+ )
110
+ if %WARNINGS%==0 (
111
+ echo %green%::::::::::::::: %reset%%bold%All versions are supported! %reset%
112
+ echo.
113
+ ) else (
114
+ echo.
115
+ echo %red%::::::::::::::: Press any key to exit%reset%&Pause>nul
116
+ exit
117
+ )
118
+ goto :eof
SageAttention-NEXTluis.bat ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ :: =========================================
3
+ :: ComfyUI Easy Install - SageAttention
4
+ :: Root fixo: D:\comfyuiAutoInstallerWAN21_v20\comfyui_portable
5
+ :: Pixaroma Community Edition
6
+ :: =========================================
7
+
8
+ set "ROOT_DIR=D:\comfyuiAutoInstallerWAN21_v20\comfyui_portable"
9
+ set "node_name=SageAttention"
10
+ Title '%node_name%' for 'ComfyUI Easy Install' by ivo
11
+
12
+ :: Set colors
13
+ call :set_colors
14
+
15
+ :: Set pip arguments
16
+ set "PIPargs=--no-cache-dir --no-warn-script-location --timeout=1000 --retries 200 --use-pep517"
17
+
18
+ :: Check Python
19
+ set "PYTHON_PATH=%ROOT_DIR%\python_embeded\python.exe"
20
+ if not exist "%PYTHON_PATH%" (
21
+ cls
22
+ echo %red%ERROR: Python não encontrado em %ROOT_DIR%\python_embeded%reset%
23
+ echo %green%Certifique-se de que o Python Embedded existe nesse diretório.%reset%
24
+ echo Pressione qualquer tecla para sair...
25
+ pause >nul
26
+ exit
27
+ )
28
+
29
+ :: Clear Pip Cache
30
+ if exist "%localappdata%\pip\cache" rd /s /q "%localappdata%\pip\cache" && md "%localappdata%\pip\cache"
31
+ echo %green%::::::::::::::: Limpeza do Pip Cache %yellow%Concluída%green%%reset%
32
+ echo.
33
+
34
+ :: Get Python, Torch, CUDA versions
35
+ call :get_versions
36
+
37
+ :: Install Triton
38
+ echo %green%::::::::::::::: Instalando%yellow% Triton%reset%
39
+ "%PYTHON_PATH%" -I -m pip install --upgrade --force-reinstall triton-windows %PIPargs%
40
+ echo.
41
+
42
+ :: Install SageAttention
43
+ echo %green%::::::::::::::: Instalando%yellow% %node_name%%reset%
44
+ if "%TORCH_VERSION%"=="2.7" if "%CUDA_VERSION%"=="12.8" set "SAGE_WHL=sageattention-2.2.0+cu128torch2.7.1.post2-cp39-abi3-win_amd64.whl"
45
+ if "%TORCH_VERSION%"=="2.8" if "%CUDA_VERSION%"=="12.8" set "SAGE_WHL=sageattention-2.2.0+cu128torch2.8.0.post2-cp39-abi3-win_amd64.whl"
46
+
47
+ "%PYTHON_PATH%" -I -m pip install --upgrade --force-reinstall https://github.com/woct0rdho/SageAttention/releases/download/v2.2.0-windows.post2/%SAGE_WHL% %PIPargs%
48
+
49
+ :: Create run_nvidia_gpu_SageAttention.bat
50
+ echo %green%::::::::::::::: Criando%yellow% run_nvidia_gpu_SageAttention.bat%reset%
51
+ (
52
+ echo @echo off
53
+ echo cd /D "%ROOT_DIR%"
54
+ echo Title ComfyUI-Easy-Install
55
+ echo .\python_embeded\python.exe -I ComfyUI\main.py --windows-standalone-build --use-sage-attention
56
+ echo pause
57
+ ) > "%ROOT_DIR%\run_nvidia_gpu_SageAttention.bat"
58
+
59
+ :: Final message
60
+ echo.
61
+ echo %green%:::::::::::::::%yellow% %node_name% %green%Instalação Concluída%reset%
62
+ echo.
63
+ pause >nul
64
+ exit
65
+
66
+ :: =========================
67
+ :: Funções auxiliares
68
+ :: =========================
69
+
70
+ :set_colors
71
+ set warning=
72
+ set red=
73
+ set green=
74
+ set yellow=
75
+ set bold=
76
+ set reset=
77
+ goto :eof
78
+
79
+ :get_versions
80
+ echo %green%::::::::::::::: Verificando versões do %yellow%Python, Torch, CUDA%green%%reset%
81
+ echo.
82
+
83
+ :: Python version
84
+ for /f "tokens=2" %%i in ('"%PYTHON_PATH%" --version 2^>^&1') do (
85
+ for /f "tokens=1,2 delims=." %%a in ("%%i") do set PYTHON_VERSION=%%a.%%b
86
+ )
87
+
88
+ :: Torch version
89
+ "%PYTHON_PATH%" -c "import torch; print(torch.__version__)" > temp_torch.txt
90
+ for /f "tokens=1,2 delims=." %%a in (temp_torch.txt) do set TORCH_VERSION=%%a.%%b
91
+ del temp_torch.txt >nul 2>&1
92
+
93
+ :: CUDA version
94
+ "%PYTHON_PATH%" -c "import torch; print(torch.version.cuda if torch.cuda.is_available() else 'Not available')" > temp_cuda.txt
95
+ for /f "tokens=1,2 delims=." %%a in (temp_cuda.txt) do set CUDA_VERSION=%%a.%%b
96
+ del temp_cuda.txt >nul 2>&1
97
+
98
+ echo %green%Python Version: %yellow% %PYTHON_VERSION%%reset%
99
+ echo %green%Torch Version: %yellow% %TORCH_VERSION%%reset%
100
+ echo %green%CUDA Version: %yellow% %CUDA_VERSION%%reset%
101
+ echo.
102
+
103
+ :: Version warnings
104
+ set WARNINGS=0
105
+ if not "%PYTHON_VERSION%"=="3.11" if not "%PYTHON_VERSION%"=="3.12" (
106
+ echo %warning%WARNING: %red%Python %PYTHON_VERSION% não suportado. Suportado: 3.11, 3.12%reset%
107
+ set WARNINGS=1
108
+ )
109
+ if not "%TORCH_VERSION%"=="2.7" if not "%TORCH_VERSION%"=="2.8" (
110
+ echo %warning%WARNING: %red%Torch %TORCH_VERSION% não suportado. Suportado: 2.7, 2.8%reset%
111
+ set WARNINGS=1
112
+ )
113
+ if not "%CUDA_VERSION%"=="12.8" (
114
+ echo %warning%WARNING: %red%CUDA %CUDA_VERSION% não suportado. Suportado: 12.8%reset%
115
+ set WARNINGS=1
116
+ )
117
+
118
+ if %WARNINGS%==0 (
119
+ echo %green%::::::::::::::: %reset%%bold%Todas as versões são compatíveis!%reset%
120
+ echo.
121
+ ) else (
122
+ echo.
123
+ echo %red%Pressione qualquer tecla para sair%reset%
124
+ pause >nul
125
+ exit
126
+ )
127
+ goto :eof
fix.bat ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @Echo off&&cd /D %~dp0
2
+ Title ComfyUI-Easy-Install NEXT (Reinstall Mode B – Replace Only)
3
+
4
+ :: Set Python version
5
+ set "PYTHON_VERSION=3.12"
6
+
7
+ :: Colors
8
+ set warning=[33m
9
+ set red=[91m
10
+ set green=[92m
11
+ set yellow=[93m
12
+ set bold=[1m
13
+ set reset=[0m
14
+
15
+ :: Arguments
16
+ set "PIPargs=--no-cache-dir --no-warn-script-location --timeout=1000 --retries 200"
17
+ set "CURLargs=--retry 200 --retry-all-errors"
18
+ set "UVargs=--no-cache --link-mode=copy"
19
+
20
+ echo %green%=== ComfyUI Reinstall (Mode B: Replace Only) ===%reset%
21
+ echo.
22
+
23
+ :: Ensure folder exists
24
+ if not exist ComfyUI-Easy-Install (
25
+ echo %red%ERROR:%reset% Folder ComfyUI-Easy-Install not found!
26
+ pause
27
+ exit /b
28
+ )
29
+
30
+ cd ComfyUI-Easy-Install
31
+
32
+ :: -----------------------------
33
+ :: REINSTALL PYTHON EMBEDDED
34
+ :: -----------------------------
35
+ echo %yellow%Replacing python_embeded...%reset%
36
+
37
+ if not exist python_embeded md python_embeded
38
+
39
+ :: Download correct Python version
40
+ if "%PYTHON_VERSION%"=="3.11" (set "PYTHON_VER=3.11.9")
41
+ if "%PYTHON_VERSION%"=="3.12" (set "PYTHON_VER=3.12.10")
42
+
43
+ cd python_embeded
44
+ del /q * >nul 2>&1
45
+
46
+ curl.exe -OL https://www.python.org/ftp/python/%PYTHON_VER%/python-%PYTHON_VER%-embed-amd64.zip --ssl-no-revoke %CURLargs%
47
+ tar.exe -xf python-%PYTHON_VER%-embed-amd64.zip
48
+ del python-%PYTHON_VER%-embed-amd64.zip
49
+
50
+ curl.exe -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py --ssl-no-revoke %CURLargs%
51
+
52
+ :: Create .pth
53
+ echo ../ComfyUI> python312._pth
54
+ echo python312.zip>> python312._pth
55
+ echo .>> python312._pth
56
+ echo Lib/site-packages>> python312._pth
57
+ echo Lib>> python312._pth
58
+ echo Scripts>> python312._pth
59
+ echo # import site>> python312._pth
60
+
61
+ .\python.exe -I get-pip.py %PIPargs%
62
+ .\python.exe -I -m pip install uv %PIPargs%
63
+
64
+ cd ..
65
+
66
+ :: -----------------------------
67
+ :: REINSTALL COMFYUI FILES ONLY
68
+ :: -----------------------------
69
+ echo %yellow%Updating ComfyUI core files...%reset%
70
+
71
+ if not exist ComfyUI md ComfyUI
72
+
73
+ :: Clone to temp folder
74
+ git.exe clone https://github.com/comfyanonymous/ComfyUI ComfyUI_NEW
75
+
76
+ :: Copy only core folders (replace)
77
+ xcopy ComfyUI_NEW\comfy ComfyUI\comfy /E /Y /I /Q
78
+ xcopy ComfyUI_NEW\app ComfyUI\app /E /Y /I /Q
79
+ xcopy ComfyUI_NEW\web ComfyUI\web /E /Y /I /Q
80
+ xcopy ComfyUI_NEW\api_server ComfyUI\api_server /E /Y /I /Q
81
+ xcopy ComfyUI_NEW\comfy_api ComfyUI\comfy_api /E /Y /I /Q
82
+ xcopy ComfyUI_NEW\comfy_api_nodes ComfyUI\comfy_api_nodes /E /Y /I /Q
83
+ xcopy ComfyUI_NEW\utils ComfyUI\utils /E /Y /I /Q
84
+
85
+ :: Replace main files
86
+ copy /Y ComfyUI_NEW\main.py ComfyUI\
87
+ copy /Y ComfyUI_NEW\server.py ComfyUI\
88
+ copy /Y ComfyUI_NEW\execution.py ComfyUI\
89
+ copy /Y ComfyUI_NEW\folder_paths.py ComfyUI\
90
+ copy /Y ComfyUI_NEW\comfyui_version.py ComfyUI\
91
+ copy /Y ComfyUI_NEW\requirements.txt ComfyUI\
92
+
93
+ :: Remove temp clone
94
+ rmdir /s /q ComfyUI_NEW
95
+
96
+ :: -----------------------------
97
+ :: INSTALL REQUIREMENTS
98
+ :: -----------------------------
99
+ echo %yellow%Installing requirements...%reset%
100
+ .\python_embeded\python.exe -I -m uv pip install -r ComfyUI\requirements.txt %UVargs%
101
+
102
+ :: -----------------------------
103
+ :: REINSTALL ADDITIONAL NODES (NO DELETE)
104
+ :: -----------------------------
105
+ echo %yellow%Installing extra nodes (non-destructive)...%reset%
106
+
107
+ call :get_node https://github.com/Comfy-Org/ComfyUI-Manager comfyui-manager
108
+ call :get_node https://github.com/WASasquatch/was-node-suite-comfyui was-node-suite-comfyui
109
+ call :get_node https://github.com/yolain/ComfyUI-Easy-Use ComfyUI-Easy-Use
110
+ call :get_node https://github.com/Fannovel16/comfyui_controlnet_aux comfyui_controlnet_aux
111
+
112
+ echo %green%=== Reinstall Complete (Mode B) ===%reset%
113
+ pause
114
+ exit /b
115
+
116
+ :get_node
117
+ set git_url=%~1
118
+ set git_folder=%~2
119
+ echo Installing %git_folder%...
120
+ if not exist ComfyUI\custom_nodes md ComfyUI\custom_nodes
121
+ git.exe clone %git_url% ComfyUI\custom_nodes\%git_folder% 2>nul
122
+ if exist ComfyUI\custom_nodes\%git_folder%\requirements.txt (
123
+ .\python_embeded\python.exe -I -m uv pip install -r ComfyUI\custom_nodes\%git_folder%\requirements.txt %UVargs%
124
+ )
125
+ echo.
126
+ goto :eof