happyneishon commited on
Commit
41222f6
·
verified ·
1 Parent(s): d0f0e63

Upload 2 files

Browse files
Files changed (2) hide show
  1. packages.bat +10 -0
  2. update.bat +8 -0
packages.bat ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
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
+ 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
update.bat ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ setlocal
3
+ echo 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
+ cd %custom_n% && %target_dir%git\git\bin\git pull
8
+ %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