|
@echo off |
|
|
|
echo Downloading Python 3.10.6... |
|
curl -L -o python-3.10.6-amd64.exe https://www.python.org/ftp/python/3.10.6/python-3.10.6-amd64.exe |
|
if %errorlevel% NEQ 0 ( |
|
echo Failed to download Python installer. |
|
exit /b |
|
) |
|
echo Installing Python... |
|
start /wait python-3.10.6-amd64.exe /quiet InstallAllUsers=1 PrependPath=1 |
|
del python-3.10.6-amd64.exe |
|
|
|
echo Downloading Git... |
|
curl -L -o Git-2.42.0-64-bit.exe https://github.com/git-for-windows/git/releases/download/v2.42.0.windows.1/Git-2.42.0-64-bit.exe |
|
if %errorlevel% NEQ 0 ( |
|
echo Failed to download Git installer. |
|
exit /b |
|
) |
|
echo Installing Git... |
|
start /wait Git-2.42.0-64-bit.exe /VERYSILENT |
|
del Git-2.42.0-64-bit.exe |
|
|
|
echo Cloning AMD-compatible stable-diffusion-webui repository... |
|
git clone https://github.com/lshqqytiger/stable-diffusion-webui-directml.git |
|
if %errorlevel% NEQ 0 ( |
|
echo Failed to clone repository. |
|
exit /b |
|
) |
|
|
|
echo Initializing and updating submodules... |
|
cd stable-diffusion-webui-directml |
|
git submodule init |
|
git submodule update |
|
|
|
echo Changing directory to the cloned repository... |
|
cd .\stable-diffusion-webui-directml\ |
|
|
|
echo Running webui-user.bat... |
|
call webui-user.bat |
|
|
|
echo Done! |
|
pause |
|
|