@@ -42,6 +42,9 @@ git clone --depth=1 https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
42
42
apt update
43
43
apt -y upgrade
44
44
45
+ # Install bc package
46
+ apt -y install bc
47
+
45
48
# Ensure Python version is 3.10.12
46
49
python3 -V
47
50
@@ -51,8 +54,8 @@ python3 -m venv /workspace/venv
51
54
source /workspace/venv/bin/activate
52
55
53
56
# Install Torch and xformers
54
- pip3 install --no-cache-dir torch==2.0.1 +cu118 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
55
- pip3 install --no-cache-dir xformers==0.0.22
57
+ pip3 install --no-cache-dir torch==2.1.2 +cu118 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
58
+ pip3 install --no-cache-dir xformers==0.0.23.post1 --index-url https://download.pytorch.org/whl/cu118
56
59
57
60
# Install A1111 Web UI
58
61
wget https://raw.githubusercontent.com/ashleykleynhans/runpod-worker-a1111/main/install-automatic.py
@@ -64,7 +67,6 @@ git clone --depth=1 https://github.com/Mikubill/sd-webui-controlnet.git extensio
64
67
65
68
# Clone the ReActor Extension
66
69
git clone https://github.com/Gourieff/sd-webui-reactor.git extensions/sd-webui-reactor
67
- git checkout v0.6.1
68
70
69
71
# Clone the After Detailer Extension
70
72
git clone --depth=1 https://github.com/Bing-su/adetailer.git extensions/adetailer
@@ -75,6 +77,7 @@ pip3 install -r requirements.txt
75
77
76
78
# Install dependencies for ReActor
77
79
cd /workspace/stable-diffusion-webui/extensions/sd-webui-reactor
80
+ git checkout v0.6.1
78
81
pip3 install -r requirements.txt
79
82
pip3 install onnxruntime-gpu
80
83
@@ -118,7 +121,7 @@ wget https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/diffus
118
121
6 . Download InstantID ControlNet models:
119
122
``` bash
120
123
wget -O ip-adapter_instant_id_sdxl.bin " https://huggingface.co/InstantX/InstantID/resolve/main/ip-adapter.bin?download=true"
121
- wget -O control_instant_id_sdxl.safetensors" https://huggingface.co/InstantX/InstantID/resolve/main/ControlNetModel/diffusion_pytorch_model.safetensors?download=true"
124
+ wget -O control_instant_id_sdxl.safetensors " https://huggingface.co/InstantX/InstantID/resolve/main/ControlNetModel/diffusion_pytorch_model.safetensors?download=true"
122
125
```
123
126
7 . Create logs directory:
124
127
``` bash
@@ -142,6 +145,6 @@ cd /workspace/stable-diffusion-webui
142
145
10 . Wait for the Web UI to start up, and download the models. You shoud
143
146
see something like this when it is ready:
144
147
```
145
- Model loaded in 16.9s (calculate hash: 8.0s, load weights from disk: 0.4s, create model: 2.1s , apply weights to model: 2.6s , apply half(): 2.6s, move model to device: 0.7s , calculate empty prompt: 0.3s ).
148
+ Model loaded in 20.8s (calculate hash: 15.6s, create model: 3.5s , apply weights to model: 0.8s , apply half(): 0.1s , calculate empty prompt: 0.5s ).
146
149
```
147
150
11 . Press Ctrl-C to exit, and then you can terminate the pod.
0 commit comments