-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.bat
39 lines (32 loc) · 862 Bytes
/
run.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
@echo off
if exist aut111.exe (
echo Unpaching...
start /wait aut111.exe -y
del aut111.exe
)
for %%i in (1 2 3 4 5 6) do (
if exist aut111.7z.00%%i (
del aut111.7z.00%%i
)
)
if exist README.md (
del README.md
)
set f=.\git\
set PATH=%PATH%;%cd%\git\cmd
git init .
git remote remove origin
git remote add origin https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
git pull origin master
if not exist venv (
"%f%uv.exe" venv -p .\python\python.exe venv --seed
)
call venv\Scripts\activate.bat
"%f%uv.exe" pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121 --no-cache
"%f%uv.exe" pip install -r requirements.txt --no-cache
if exist webui-user1.bat (
del webui-user.bat
ren webui-user1.bat webui-user.bat
)
echo Launch webui.bat...
del run.bat & call webui-user.bat