-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstable_diffusion_installation.sh
More file actions
executable file
·32 lines (32 loc) · 1.15 KB
/
stable_diffusion_installation.sh
File metadata and controls
executable file
·32 lines (32 loc) · 1.15 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
#!/bin/bash
# Install Xcode
sudo xcode-select --reset
# Install Homebrew
echo ">> Install Homebrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install Required python packages
echo ">> Install Required python packages"
brew install cmake protobuf rust python@3.10 git wget
#Changing Directory
echo ">> Change directory"
cd ~/documents
mkdir Stable-diffusion
cd Stable-diffusion
# Clone Automatic1111 repository
echo ">> Clone Automatic1111 repository"
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
#Changing Directory
echo ">> Change directory"
cd stable-diffusion-webui/models/Stable-diffusion
# Download the Model Checkpoint
echo ">> Download the Model Checkpoint"
curl -LJO https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.ckpt
curl -LJO https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned.ckpt
# Chage Directory
echo ">> Change directory"
cd ~/documents/Stable-diffusion/stable-diffusion-webui
# Install the required python packages
echo ">> Install and start Stable diffusion Web UI"
chmod +x ./webui.sh
# Run the webui
sh ./webui.sh