-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_amd.bat
38 lines (27 loc) · 1.09 KB
/
run_amd.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
@echo off
set DIR=%~dp0system
rem Get git executable location
FOR /F "delims=" %%i IN ('where git') DO set GIT=%%i
rem Get directory part of the GIT path
for /F "delims=" %%i in ("%GIT%") do set GIT_PATH=%%~dpi..\bin
SET python_path=C:\Python310
SET PYTHON=C:\Python310\python.exe
set PATH=C:\Windows\system32;C:\Windows;%GIT_PATH%;%python_path%;%python_path%\Scripts
set PY_LIBS=%python_path%\Scripts\Lib\site-packages
set TRANSFORMERS_CACHE=%DIR%\transformers-cache
set VENV_DIR=%DIR%\venv
rem https://github.com/lshqqytiger/stable-diffusion-webui-directml/issues/38
set COMMANDLINE_ARGS=--medvram --no-half --skip-torch-cuda-test --use-zluda
rem set COMMANDLINE_ARGS=--medvram --no-half --no-half-vae --opt-sub-quad-attention --disable-nan-check
set SAFETENSORS_FAST_GPU=1
if not exist "%~dp0webui" (
cd %~dp0
rem See https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-AMD-GPUs
git clone https://github.com/lshqqytiger/stable-diffusion-webui-directml webui
cd webui
git submodule init
git submodule update
cd ..
)
cd %~dp0webui
call webui.bat