ComfyUI-Manager/scripts/install-comfyui-venv-win.bat
akr1999 89ed96f83f Revert "Merge branch 'main' of https://github.com/daxcay/ComfyUI-Manager"
This reverts commit 16fcb3a7b1e3f37af826452e71d4cb0b7d3d4c61, reversing
changes made to bb7b13c1f544fb9b4190fea0007ae0a54fbe89ef.
2024-03-21 14:07:33 +05:30

21 lines
730 B
Batchfile
Executable File

git clone https://github.com/comfyanonymous/ComfyUI
cd ComfyUI/custom_nodes
git clone https://github.com/ltdrdata/ComfyUI-Manager
cd ..
python -m venv venv
call venv/Scripts/activate
python -m pip install -r requirements.txt
python -m pip install -r custom_nodes/ComfyUI-Manager/requirements.txt
python -m pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu118 xformers
cd ..
echo "cd ComfyUI" >> run_gpu.sh
echo "call venv/Scripts/activate" >> run_gpu.sh
echo "python main.py" >> run_gpu.sh
chmod +x run_gpu.sh
echo "#!/bin/bash" > run_cpu.sh
echo "cd ComfyUI" >> run_cpu.sh
echo "call venv/Scripts/activate" >> run_cpu.sh
echo "python main.py --cpu" >> run_cpu.sh
chmod +x run_cpu.sh