Skip to content

Commit f162851

Browse files
Merge pull request #19 from ashleykleynhans/dev
Merge dev
2 parents 0b9ef49 + d262a49 commit f162851

File tree

5 files changed

+21
-14
lines changed

5 files changed

+21
-14
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ RUN apt update && \
2929
libxrender1 \
3030
libxext6 \
3131
ffmpeg \
32+
bc \
3233
libgoogle-perftools4 \
3334
libtcmalloc-minimal4 \
3435
procps && \

docs/building.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ You can either build this Docker image yourself, your alternatively,
44
you can use my pre-built image:
55

66
```
7-
ashleykza/runpod-worker-a1111:2.4.6
7+
ashleykza/runpod-worker-a1111:2.5.0
88
```
99

1010
If you choose to build it yourself:

docs/installing.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ git clone --depth=1 https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
4242
apt update
4343
apt -y upgrade
4444

45+
# Install bc package
46+
apt -y install bc
47+
4548
# Ensure Python version is 3.10.12
4649
python3 -V
4750

@@ -51,8 +54,8 @@ python3 -m venv /workspace/venv
5154
source /workspace/venv/bin/activate
5255

5356
# 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
5659

5760
# Install A1111 Web UI
5861
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
6467

6568
# Clone the ReActor Extension
6669
git clone https://github.com/Gourieff/sd-webui-reactor.git extensions/sd-webui-reactor
67-
git checkout v0.6.1
6870

6971
# Clone the After Detailer Extension
7072
git clone --depth=1 https://github.com/Bing-su/adetailer.git extensions/adetailer
@@ -75,6 +77,7 @@ pip3 install -r requirements.txt
7577

7678
# Install dependencies for ReActor
7779
cd /workspace/stable-diffusion-webui/extensions/sd-webui-reactor
80+
git checkout v0.6.1
7881
pip3 install -r requirements.txt
7982
pip3 install onnxruntime-gpu
8083

@@ -118,7 +121,7 @@ wget https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/diffus
118121
6. Download InstantID ControlNet models:
119122
```bash
120123
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"
122125
```
123126
7. Create logs directory:
124127
```bash
@@ -142,6 +145,6 @@ cd /workspace/stable-diffusion-webui
142145
10. Wait for the Web UI to start up, and download the models. You shoud
143146
see something like this when it is ready:
144147
```
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).
146149
```
147150
11. Press Ctrl-C to exit, and then you can terminate the pod.

scripts/install.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,19 @@ echo "Installing Ubuntu updates"
1313
apt update
1414
apt -y upgrade
1515

16+
echo "Installing bc package"
17+
apt -y install bc
18+
1619
echo "Creating and activating venv"
1720
cd stable-diffusion-webui
1821
python3 -m venv /workspace/venv
1922
source /workspace/venv/bin/activate
2023

2124
echo "Installing Torch"
22-
pip3 install --no-cache-dir torch==2.0.1+cu118 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
25+
pip3 install --no-cache-dir torch==2.1.2+cu118 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
2326

2427
echo "Installing xformers"
25-
pip3 install --no-cache-dir xformers==0.0.22
28+
pip3 install --no-cache-dir xformers==0.0.23.post1 --index-url https://download.pytorch.org/whl/cu118
2629

2730
echo "Installing A1111 Web UI"
2831
wget https://raw.githubusercontent.com/ashleykleynhans/runpod-worker-a1111/main/install-automatic.py
@@ -97,7 +100,7 @@ wget https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/diffus
97100

98101
echo "Downloading InstantID ControlNet models"
99102
wget -O ip-adapter_instant_id_sdxl.bin "https://huggingface.co/InstantX/InstantID/resolve/main/ip-adapter.bin?download=true"
100-
wget -O control_instant_id_sdxl.safetensors"https://huggingface.co/InstantX/InstantID/resolve/main/ControlNetModel/diffusion_pytorch_model.safetensors?download=true"
103+
wget -O control_instant_id_sdxl.safetensors "https://huggingface.co/InstantX/InstantID/resolve/main/ControlNetModel/diffusion_pytorch_model.safetensors?download=true"
101104

102105
echo "Downloading Upscalers"
103106
mkdir -p /workspace/stable-diffusion-webui/models/ESRGAN

tests/txt2img_reactor.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@
4949
'CUDA', #20 #20 CPU or CUDA (if you have it), CPU - by default,
5050
True, #21 Face Mask Correction
5151
0, #22 Select Source, 0 - Image, 1 - Face Model, 2 - Source Folder
52-
None, #23 Filename of the face model (from "models/reactor/faces"), e.g. elena.safetensors
53-
'/workspace/PATH_TO_FACES_IMAGES', #24 The path to the folder containing source faces images, don't forger to set #22 to 2
54-
None, #25 skip it for API
55-
True, #26 Randomly select an image from the path
56-
True #27 Force Upscale even if no face found
52+
#None, #23 Filename of the face model (from "models/reactor/faces"), e.g. elena.safetensors
53+
#'/workspace/PATH_TO_FACES_IMAGES', #24 The path to the folder containing source faces images, don't forger to set #22 to 2
54+
#None, #25 skip it for API
55+
#True, #26 Randomly select an image from the path
56+
#True #27 Force Upscale even if no face found
5757
]
5858
}
5959
}

0 commit comments

Comments
 (0)