From f4aa0b6bc75191efb9fe516dc95b4d0a69a9ff7a Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Mon, 18 Sep 2023 23:07:34 +0900 Subject: [PATCH] add win venv script --- scripts/install-comfyui-venv-win.bat | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 scripts/install-comfyui-venv-win.bat diff --git a/scripts/install-comfyui-venv-win.bat b/scripts/install-comfyui-venv-win.bat new file mode 100755 index 0000000..6bb0e83 --- /dev/null +++ b/scripts/install-comfyui-venv-win.bat @@ -0,0 +1,20 @@ +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