sonangroup commited on
Commit
4a4c4bb
·
verified ·
1 Parent(s): 5311785

Upload Insightface-ComfyUI.bat

Browse files
Files changed (1) hide show
  1. Insightface-ComfyUI.bat +88 -0
Insightface-ComfyUI.bat ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ :: by alexbofa
2
+ :: Homepage: https://github.com/alexbofa/BATNIKI
3
+ :: Telegram: @bofacosy
4
+
5
+ @echo off
6
+ chcp 65001>null
7
+ color 0F
8
+ del null
9
+
10
+ set APPDATA=tmp
11
+ set USERPROFILE=tmp
12
+ set TEMP=tmp
13
+
14
+ if exist web\extensions\core (
15
+ color C0
16
+ echo.
17
+ echo Переложи Insightface-ComfyUI.bat на папку выше ComfyUI_windows_portable
18
+ echo Рядом с файлом run_nvidia_gpu.bat и python_embeded
19
+ echo.
20
+ echo Если такого файла и папки нет, то установи Portable ComfyUI
21
+ echo https://github.com/comfyanonymous/ComfyUI/releases/
22
+ echo.
23
+ pause
24
+ exit
25
+ )
26
+
27
+ if not exist python_embeded (
28
+ color C0
29
+ echo.
30
+ echo Установи Portable ComfyUI
31
+ echo https://github.com/comfyanonymous/ComfyUI/releases/
32
+ echo.
33
+ pause
34
+ exit
35
+ )
36
+
37
+ if not exist git (
38
+ echo.
39
+ echo GIT не найден, идёт загрузка...
40
+ echo.
41
+
42
+ curl -L -o git.zip https://github.com/alexbofa/BATNIKI/releases/download/assets/git.zip
43
+
44
+ echo.
45
+ echo Распаковка GIT в папку...
46
+ echo.
47
+ tar -xf git.zip
48
+ del git.zip /q
49
+ )
50
+
51
+ echo.
52
+ echo У вас установлен Portable ComfyUI
53
+ echo Установка comfyui-reactor-node будет произведена для Portable
54
+ echo.
55
+ pause
56
+
57
+ cd ComfyUI\custom_nodes
58
+ RMDIR /s/q comfyui-reactor-node
59
+ RMDIR /s/q comfyui-reactor-node-main
60
+ ..\..\git\cmd\git.exe clone https://github.com/Gourieff/comfyui-reactor-node.git
61
+ cd ..
62
+ cd ..
63
+
64
+ if exist "python_embeded\Scripts\pip3.10.exe" (
65
+ python_embeded\python.exe -m pip install https://github.com/Gourieff/Assets/raw/main/Insightface/insightface-0.7.3-cp310-cp310-win_amd64.whl
66
+ ) else if exist "python_embeded\Scripts\pip3.11.exe" (
67
+ python_embeded\python.exe -m pip install https://github.com/Gourieff/Assets/raw/main/Insightface/insightface-0.7.3-cp311-cp311-win_amd64.whl
68
+ ) else (
69
+ echo Не найден pip3.10 и pip3.11
70
+ )
71
+ python_embeded\python.exe -m pip uninstall -y opencv-python opencv-contrib-python opencv-python-headless onnxruntime-gpu
72
+ python_embeded\python.exe -m pip install opencv-python==4.7.0.72
73
+ python_embeded\python.exe -m pip install onnxruntime==1.15.1
74
+ python_embeded\python.exe ComfyUI\custom_nodes\comfyui-reactor-node\install.py
75
+ python_embeded\python.exe -m pip install --upgrade pip
76
+
77
+ RMDIR /s/q pip
78
+ cls
79
+ echo.
80
+ echo Готовченко
81
+ echo.
82
+ echo Если есть вопросы/проблемы пишите в issue:
83
+ echo https://github.com/alexbofa/BATNIKI
84
+ echo.
85
+ echo Telegram: @bofacosy
86
+ echo Discord: @alexbofa
87
+ echo.
88
+ pause