Commit ·
5336939
1
Parent(s): 3483399
Upload 2 files
Browse files- AMD-SD_AUTO_INSTALL + SDXL.bat +42 -0
- MAC_SD_AUTO_INSTALL.sh +31 -0
AMD-SD_AUTO_INSTALL + SDXL.bat
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@echo off
|
| 2 |
+
|
| 3 |
+
echo Downloading Python 3.10.6...
|
| 4 |
+
curl -L -o python-3.10.6-amd64.exe https://www.python.org/ftp/python/3.10.6/python-3.10.6-amd64.exe
|
| 5 |
+
if %errorlevel% NEQ 0 (
|
| 6 |
+
echo Failed to download Python installer.
|
| 7 |
+
exit /b
|
| 8 |
+
)
|
| 9 |
+
echo Installing Python...
|
| 10 |
+
start /wait python-3.10.6-amd64.exe /quiet InstallAllUsers=1 PrependPath=1
|
| 11 |
+
del python-3.10.6-amd64.exe
|
| 12 |
+
|
| 13 |
+
echo Downloading Git...
|
| 14 |
+
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
|
| 15 |
+
if %errorlevel% NEQ 0 (
|
| 16 |
+
echo Failed to download Git installer.
|
| 17 |
+
exit /b
|
| 18 |
+
)
|
| 19 |
+
echo Installing Git...
|
| 20 |
+
start /wait Git-2.42.0-64-bit.exe /VERYSILENT
|
| 21 |
+
del Git-2.42.0-64-bit.exe
|
| 22 |
+
|
| 23 |
+
echo Cloning AMD-compatible stable-diffusion-webui repository...
|
| 24 |
+
git clone https://github.com/lshqqytiger/stable-diffusion-webui-directml.git
|
| 25 |
+
if %errorlevel% NEQ 0 (
|
| 26 |
+
echo Failed to clone repository.
|
| 27 |
+
exit /b
|
| 28 |
+
)
|
| 29 |
+
|
| 30 |
+
echo Initializing and updating submodules...
|
| 31 |
+
cd stable-diffusion-webui-directml
|
| 32 |
+
git submodule init
|
| 33 |
+
git submodule update
|
| 34 |
+
|
| 35 |
+
echo Changing directory to the cloned repository...
|
| 36 |
+
cd .\stable-diffusion-webui-directml\
|
| 37 |
+
|
| 38 |
+
echo Running webui-user.bat...
|
| 39 |
+
call webui-user.bat
|
| 40 |
+
|
| 41 |
+
echo Done!
|
| 42 |
+
pause
|
MAC_SD_AUTO_INSTALL.sh
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
# Check if Homebrew is installed
|
| 4 |
+
if ! command -v brew &> /dev/null; then
|
| 5 |
+
echo "Homebrew is not installed. Please install Homebrew first."
|
| 6 |
+
exit 1
|
| 7 |
+
fi
|
| 8 |
+
|
| 9 |
+
# Install required packages
|
| 10 |
+
echo "Installing required packages..."
|
| 11 |
+
brew install cmake protobuf rust python@3.10 git wget
|
| 12 |
+
|
| 13 |
+
# Clone the stable-diffusion-webui repository
|
| 14 |
+
echo "Cloning stable-diffusion-webui repository..."
|
| 15 |
+
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
|
| 16 |
+
|
| 17 |
+
# Create models folder if it doesn't exist
|
| 18 |
+
if [ ! -d "stable-diffusion-webui/models/Stable-diffusion" ]; then
|
| 19 |
+
mkdir -p stable-diffusion-webui/models/Stable-diffusion
|
| 20 |
+
fi
|
| 21 |
+
|
| 22 |
+
# Download models (you can replace these URLs with the actual model URLs)
|
| 23 |
+
echo "Downloading models..."
|
| 24 |
+
wget -O stable-diffusion-webui/models/Stable-diffusion/sd_xl_refiner_1.0_0.9vae.safetensors "https://huggingface.co/stabilityai/stable-diffusion-xl-refiner-1.0/resolve/main/sd_xl_refiner_1.0_0.9vae.safetensors"
|
| 25 |
+
wget -O stable-diffusion-webui/models/Stable-diffusion/sd_xl_base_1.0_0.9vae.safetensors "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0_0.9vae.safetensors"
|
| 26 |
+
|
| 27 |
+
# Navigate to the repository folder and run web UI
|
| 28 |
+
cd stable-diffusion-webui
|
| 29 |
+
./webui.sh
|
| 30 |
+
|
| 31 |
+
echo "Setup completed successfully!"
|