happyneishon commited on
Commit
d562b38
1 Parent(s): db55ba3

Upload 6 files

Browse files
Files changed (6) hide show
  1. comfy.bat +6 -0
  2. fix.bat +33 -0
  3. menu.bat +93 -0
  4. packages.bat +5 -5
  5. pygit.bat +66 -0
  6. update.bat +36 -0
comfy.bat ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ @echo off
2
+ setlocal
3
+ cd /d %~dp0
4
+ set target_dir=%~dp0
5
+ set PATH="%PATH%;%target_dir%git\git\bin;%target_dir%git\git\libexec"
6
+ "%target_dir%git\git\bin\git" clone https://github.com/comfyanonymous/ComfyUI
fix.bat ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ setlocal
3
+ cd /d %~dp0
4
+ set target_dir=%~dp0
5
+ chcp 65001 > nul
6
+ set target_dir=%~dp0
7
+ set py=%target_dir%python\
8
+ set PATH="%PATH%;%target_dir%git\git\bin;%target_dir%git\git\libexec;%target_dir%python;%target_dir%\python\Library\bin;%target_dir%python"\Scripts
9
+ call :ColorText "=================================================================================" "White"
10
+ call :ColorText "telegram @partiaComfynistov or https://t.me/partiaComfynistov" "blue"
11
+ call :ColorText ".bat file by TetaZina for reinstall numpy, insightface, facexlib, onnxruntime-gpu" "blue"
12
+ call :ColorText "=================================================================================" "darkred"
13
+
14
+ "%py%python" -m pip uninstall numpy -y
15
+ "%py%python" -m pip uninstall insightface -y
16
+ "%py%python" -m pip uninstall facexlib -y
17
+ "%py%python" -m pip uninstall onnxruntime-gpu -y
18
+ curl --ssl-no-revoke -L -o "insightface-0.7.3-cp311-cp311-win_amd64.whl" https://github.com/Gourieff/Assets/raw/main/Insightface/insightface-0.7.3-cp311-cp311-win_amd64.whl
19
+ "%py%python" -m pip install insightface-0.7.3-cp311-cp311-win_amd64.whl onnxruntime-gpu
20
+ "%py%python" -m pip install facexlib
21
+ "%py%python" -m pip install numpy==1.26.4
22
+
23
+ del /f /q "%target_dir%insightface-0.7.3-cp311-cp311-win_amd64.whl"
24
+ del "%~f0"
25
+ exit /b
26
+
27
+ :ColorText
28
+ setlocal
29
+ set text=%~1
30
+ set color=%~2
31
+ powershell -NoProfile -ExecutionPolicy Bypass -Command "Write-Host '%text%' -ForegroundColor %color%"
32
+ exit /b
33
+ pause
menu.bat ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ chcp 65001
3
+ setlocal enabledelayedexpansion
4
+ cd /d %~dp0
5
+ set "target_dir=%~dp0"
6
+ set "custom_n=%target_dir%ComfyUI\custom_nodes"
7
+ set "py=%target_dir%python\"
8
+ set "git=%target_dir%git\git\bin\git"
9
+ set "pip=%py%python -m pip"
10
+ set "PATH=%PATH%;%target_dir%git\git\bin;%target_dir%git\git\libexec;"
11
+
12
+ call :ColorText "==============================================================" "Yellow"
13
+ call :ColorText ".bat file menu for installing custom_nodes by TetaZina" "Green"
14
+ call :ColorText "telegram @partiaComfynistov or https://t.me/partiaComfynistov" "blue"
15
+ call :ColorText "==============================================================" "red"
16
+
17
+ set "repos[0]=https://github.com/ltdrdata/ComfyUI-Manager ComfyUI-Manager"
18
+ set "repos[1]=https://github.com/cubiq/ComfyUI_IPAdapter_plus ComfyUI_IPAdapter_plus"
19
+ set "repos[2]=https://github.com/pythongosssss/ComfyUI-Custom-Scripts ComfyUI-Custom-Scripts"
20
+ set "repos[3]=https://github.com/kijai/ComfyUI-SUPIR ComfyUI-SUPIR"
21
+ set "repos[4]=https://github.com/Gourieff/comfyui-reactor-node comfyui-reactor-node"
22
+ set "repos[5]=https://github.com/yolain/ComfyUI-Easy-Use ComfyUI-Easy-Use"
23
+ set "repos[6]=https://github.com/rgthree/rgthree-comfy rgthree-comfy"
24
+ set "repos[7]=https://github.com/11cafe/comfyui-workspace-manager comfyui-workspace-manager"
25
+ set "repos[8]=https://github.com/crystian/ComfyUI-Crystools ComfyUI-Crystools"
26
+ set "repos[9]=https://github.com/pythongosssss/ComfyUI-WD14-Tagger ComfyUI-WD14-Tagger"
27
+ set "repos[10]=https://github.com/ltdrdata/ComfyUI-Impact-Pack ComfyUI-Impact-Pack"
28
+ set "repos[11]=https://github.com/coolzilj/ComfyUI-Photopea ComfyUI-Photopea"
29
+ set "repos[12]=https://github.com/time-river/ComfyUI-CLIPSeg ComfyUI-CLIPSeg"
30
+ set "repos[13]=https://github.com/Fannovel16/comfyui_controlnet_aux comfyui_controlnet_aux"
31
+ set "repos[14]=https://github.com/Acly/comfyui-inpaint-nodes comfyui-inpaint-nodes"
32
+
33
+ :menu
34
+ echo ========================================
35
+ echo Выберите команду для выполнения:
36
+ for /L %%i in (0,1,14) do (
37
+ for /f "tokens=2 delims= " %%a in ("!repos[%%i]!") do (
38
+ set /a "num=%%i+1"
39
+ echo !num!. установить %%a
40
+ )
41
+ )
42
+ echo g. Установить все кастомные ноды
43
+ echo h. Пропустить установку кастомных нод
44
+ echo ========================================
45
+ choice /c 123456789ABCDEFGH /n /m "Введите ваш выбор: "
46
+
47
+ if errorlevel 17 goto skipall
48
+ if errorlevel 16 goto install_all
49
+ set /a choice=%errorlevel%-1
50
+ call :install_repo !choice!
51
+ goto menu
52
+
53
+ :install_repo
54
+ for /f "tokens=1,2" %%a in ("!repos[%1]!") do (
55
+ call :check_and_clone %%a %%b
56
+ )
57
+ goto :eof
58
+
59
+ :check_and_clone
60
+ if exist %custom_n%\%2 (
61
+ echo %2 уже установлено, пропуск...
62
+ ) else (
63
+ %git% clone %1 %custom_n%\%2
64
+ if exist %custom_n%\%2\requirements.txt (
65
+ %pip% install -r %custom_n%\%2\requirements.txt
66
+ )
67
+ )
68
+ goto :eof
69
+
70
+ :install_all
71
+ for /L %%i in (0,1,14) do (
72
+ for /f "tokens=1,2" %%a in ("!repos[%%i]!") do (
73
+ call :check_and_clone %%a %%b
74
+ )
75
+ )
76
+ goto end
77
+
78
+ :skipall
79
+ echo Пропуск установки всех команд...
80
+ goto end
81
+
82
+ :end
83
+ echo ==============================================================
84
+ echo .bat file menu for installing custom_nodes by TetaZina
85
+ echo telegram @partiaComfynistov or https://t.me/partiaComfynistov
86
+ echo ==============================================================
87
+ echo Завершение установки кастомных нод...
88
+ del /f /q %target_dir%menu.bat
89
+ exit /b
90
+
91
+ :ColorText
92
+ echo %~1
93
+ exit /b
packages.bat CHANGED
@@ -3,8 +3,8 @@ setlocal
3
  cd /d %~dp0
4
  set target_dir=%~dp0
5
  chcp 65001 > nul
6
- set custom_n=%target_dir%ComfyUI\custom_nodes
7
- set py=%target_dir%python\
8
- set PATH=%PATH%;%target_dir%git\git\bin;%target_dir%git\git\libexec;%target_dir%python;%target_dir%\python\Library\bin;%target_dir%python\Scripts
9
- %py%python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
10
- %py%python -m pip install -r %target_dir%ComfyUI\requirements.txt
 
3
  cd /d %~dp0
4
  set target_dir=%~dp0
5
  chcp 65001 > nul
6
+ set "custom_n=%target_dir%ComfyUI\custom_nodes"
7
+ set "py=%target_dir%python\"
8
+ set "PATH=%PATH%;%target_dir%git\git\bin;%target_dir%git\git\libexec;%target_dir%python;%target_dir%\python\Library\bin;%target_dir%python\Scripts"
9
+ "%py%python" -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
10
+ "%py%python" -m pip install -r %target_dir%ComfyUI\requirements.txt
pygit.bat ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ setlocal
3
+ cd /d "%~dp0"
4
+ set "target_dir=%~dp0"
5
+ chcp 65001 > nul
6
+ set "custom_n=%target_dir%ComfyUI\custom_nodes"
7
+ set "py=%target_dir%python\"
8
+ call :ColorText "==============================================================" "Yellow"
9
+ call :ColorText ".bat file for installing portable python+git by TetaZina" "Green"
10
+ call :ColorText "telegram @partiaComfynistov or https://t.me/partiaComfynistov" "blue"
11
+ call :ColorText "==============================================================" "red"
12
+ echo ============
13
+ echo install wget
14
+ echo ============
15
+ curl --ssl-no-revoke -L -o "wget.exe" https://huggingface.co/happyneishon/git/resolve/main/wget.exe
16
+ echo ===================
17
+ echo done - install wget
18
+ echo ===================
19
+ echo ===============
20
+ echo install git.zip
21
+ echo ===============
22
+ "%target_dir%wget.exe" -c -q -O "git.zip" https://huggingface.co/happyneishon/git/resolve/main/git.zip
23
+ echo ======================
24
+ echo done - install git.zip
25
+ echo ======================
26
+ set "zipfile=%target_dir%git.zip"
27
+ set "dest=%target_dir%git"
28
+ echo =============
29
+ echo unzip git.zip
30
+ echo =============
31
+ powershell -command "Expand-Archive -Path '%zipfile%' -DestinationPath '%dest%'"
32
+ del /f /q "%target_dir%git.zip"
33
+ echo ===================
34
+ echo done- unzip git.zip
35
+ echo ===================
36
+ echo ==================
37
+ echo install python.zip
38
+ echo ==================
39
+ "%target_dir%wget.exe" -c -q -O "python.zip" https://huggingface.co/happyneishon/git/resolve/main/python_embeded.zip
40
+ echo =========================
41
+ echo done - install python.zip
42
+ echo =========================
43
+ set "zipfile1=%target_dir%python.zip"
44
+ set "dest1=%target_dir%python"
45
+ echo ================
46
+ echo unzip python.zip
47
+ echo ================
48
+ powershell -command "Expand-Archive -Path '%zipfile1%' -DestinationPath '%dest1%'"
49
+ del /f /q "%target_dir%python.zip"
50
+ echo ======================
51
+ echo done- unzip python.zip
52
+ echo ======================
53
+ set "PATH=%target_dir%git\git\bin;%target_dir%git\git\libexec\;%target_dir%python;%target_dir%\python\Library\bin;%target_dir%python\Scripts;%PATH%"
54
+ call :ColorText "==============================================================" "Yellow"
55
+ call :ColorText ".bat file for installing portable python+git by TetaZina" "Green"
56
+ call :ColorText "telegram @partiaComfynistov or https://t.me/partiaComfynistov" "blue"
57
+ call :ColorText "==============================================================" "red"
58
+ exit /b
59
+
60
+ :ColorText
61
+ setlocal
62
+ set "text=%~1"
63
+ set "color=%~2"
64
+ powershell -NoProfile -ExecutionPolicy Bypass -Command "Write-Host '%text%' -ForegroundColor %color%"
65
+ exit /b
66
+ pause
update.bat ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ setlocal enabledelayedexpansion
3
+ cd /d "%~dp0"
4
+ set "target_dir=%~dp0"
5
+ set "custom_n=%target_dir%ComfyUI\custom_nodes"
6
+ set "PATH=%PATH%;%target_dir%git\git\bin;%target_dir%git\git\libexec;%target_dir%python;%target_dir%\python\Library\bin;%target_dir%python\Scripts"
7
+ set "git=%target_dir%git\git\bin\git"
8
+
9
+ echo Checking and updating repositories in custom_nodes folder...
10
+
11
+ for /d %%D in ("%custom_n%\*") do (
12
+ if exist "%%D\.git" (
13
+ echo Updating %%~nxD...
14
+ cd "%%D"
15
+ %git% fetch
16
+ for /f %%i in ('%git% rev-list HEAD...origin/main --count') do set "commits=%%i"
17
+ if !commits! neq 0 (
18
+ echo %%~nxD is !commits! commits behind. Updating...
19
+ %git% pull
20
+ echo %%~nxD updated successfully.
21
+ ) else (
22
+ echo %%~nxD is up to date.
23
+ )
24
+ cd ..
25
+ )
26
+ )
27
+
28
+ echo Updating main ComfyUI repository...
29
+ cd "%target_dir%ComfyUI"
30
+ %git% pull
31
+
32
+ echo Updating Python packages...
33
+ "%target_dir%python\python.exe" -s -m pip install --upgrade torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu121 -r "%target_dir%ComfyUI/requirements.txt" pygit2
34
+
35
+ echo All updates completed.
36
+ pause