@echo off
set VENV=venv-nightly
set OPTIONS=--listen
rem set OPTIONS=%OPTIONS% --disable-xformers
rem set OPTIONS=%OPTIONS% --lowvram
rem set OPTIONS=%OPTIONS% --cpu
echo Options enabled: %OPTIONS%
:start
git pull
if not exist %VENV%\nul (python -m venv %VENV%) else (python -m venv --upgrade %VENV%)
call %VENV%\Scripts\activate.bat
rem pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu129
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu129
pip install -r requirements.txt
for /d %%c in (custom_nodes\*) do (
 echo Processing %%c
 cd %%c
 if exist .git/nul (git pull)
 if exist requirements.txt (pip install -r requirements.txt)
 cd %~dp0
)
python main.py %OPTIONS%
goto start
