@echo off | |
setlocal | |
cd /d %~dp0 | |
set target_dir=%~dp0 | |
chcp 65001 > nul | |
set "custom_n=%target_dir%ComfyUI\custom_nodes" | |
set "py=%target_dir%python\" | |
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" | |
"%py%python" -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121 | |
"%py%python" -m pip install -r %target_dir%ComfyUI\requirements.txt |