@echo off

pip install requests

git clone https://github.com/comfyanonymous/ComfyUI

REM edit below line to install any specific commit 
REM git checkout 41b07ff8d7807292b56147e12347ab96972c9406

cd ComfyUI

cd custom_nodes

git clone https://github.com/ltdrdata/ComfyUI-Manager

cd ..

REM Create virtual environment folder
echo composing venv
IF NOT EXIST venv (
    python -m venv venv
) ELSE (
    echo venv folder already exists, skipping making new venv...
)
call .\venv\Scripts\activate.bat

echo installing requirements 

pip install torch==2.0.1 torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu118

pip install -r requirements.txt


REM Show completion message
echo Virtual environment made and installed properly

REM Pause to keep the command prompt open
pause