-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathwebui.bat
More file actions
87 lines (74 loc) · 1.97 KB
/
webui.bat
File metadata and controls
87 lines (74 loc) · 1.97 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
@echo off
set PYTHON_PATH=
REM Check if Git is installed
where git > nul 2>&1
if %errorlevel% neq 0 (
echo Git is not installed or not found in the system PATH.
pause
exit /b 1
) else (
echo Git is installed.
)
if not exist .venv (
echo Creating .venv directory...
%PYTHON_PATH% -m venv ".venv" || (
echo Failed to create virtual environment.
pause
exit /b 1
)
echo Activating virtual environment...
call .venv\Scripts\activate || (
echo Failed to activate virtual environment.
pause
exit /b 1
)
echo Installing dependencies...
python -m pip install --upgrade pip || (
echo Failed to update pip.
pause
exit /b 1
)
echo Installing dependencies...
pip install gradio || (
echo Failed to install gradio.
pause
exit /b 1
)
if not exist StreamDiffusion (
echo Downloading StreamDiffusion...
git clone https://github.com/olegchomp/StreamDiffusion || (
echo Failed to download StreamDiffusion
pause
exit /b 1
)
)
echo Installation complete.
echo Launching WebUI...
python StreamDiffusion\webui.py || (
echo No launch file found
pause
exit /b 1
)
) else (
echo Activating virtual environment...
call .venv\Scripts\activate.bat || (
echo Failed to activate virtual environment.
pause
exit /b 1
)
if not exist StreamDiffusion (
echo Downloading StreamDiffusion...
git clone https://github.com/olegchomp/StreamDiffusion || (
echo Failed to download StreamDiffusion
pause
exit /b 1
)
)
echo Launching WebUI...
python StreamDiffusion\webui.py || (
echo No launch file found
pause
exit /b 1
)
)
pause