File size: 1,189 Bytes
5336939 |
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 |
@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
|