Skip to content

Commit

Permalink
Add a one-click setup and start script for Windows users (Akegarasu#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
be5invis authored Mar 20, 2023
1 parent 708492c commit 43d813c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ git/
model/
outputs/
__pycache__/
.venv/

test.py
21 changes: 21 additions & 0 deletions webui-start.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@echo off
cd /D "%~dp0"
if exist .venv goto :start

echo "Setup VENV"
python -m venv .venv
call .venv\Scripts\activate.bat

echo "Install dependencies"
pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 --extra-index-url https://download.pytorch.org/whl/cu117
pip install --upgrade -r requirements.txt
goto :run

:start
echo "Start VENV"
call .venv\Scripts\activate.bat
goto :run

:run
echo "Start WebUI"
python webui.py

0 comments on commit 43d813c

Please sign in to comment.