Skip to content

Commit b5537db

Browse files
committed
Update Base to 6b442c0
1 parent 76bd1bf commit b5537db

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

README.md

56 Bytes

Stable Diffusion WebuiUI Docker

This repository provides the WebUI as docker for easy setup and deployment.

Run Stable Diffusion on your machine with a nice UI without any hassle!

This repository provides the WebUI as docker for easy setup and deployment. Special thanks to everyone behind these awesome projects, without them, none of this would have been possible:

Setup

make sure you have docker installed and up to date. Download this repo and run:

docker compose build

you can let it build in the background while you download the different models(more info here)

Put all of the downloaded models in the models folder,if everything is setup correctly, the folder structure should look something like this:

├── README.md
├── docker-compose.yml
├── build
│   └── Dockerfile
├── cache
├── models
│   ├── GFPGANv1.3.pth
│   ├── RealESRGAN_x4plus.pth
│   ├── RealESRGAN_x4plus_anime_6B.pth
│   └── model.ckpt
├── output

Run

After the build is done, you can run the app with:

build/Dockerfile

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,34 @@ RUN conda install pytorch==1.11.0 torchvision==0.12.0 cudatoolkit=11.3 -c pytorc
88
RUN git clone https://github.com/hlky/stable-diffusion.git && cd stable-diffusion && git reset --hard 554bd068e6f2f6bc55449a67fe017ddd77090f28
99
RUN conda env update --file stable-diffusion/environment.yaml --name base && conda clean -a -y
1010

11-
# fonts
11+
# fonts for generating the grid
1212
RUN apt-get update && apt install fonts-dejavu-core && apt-get clean
1313

14+
# Note: don't update the sha of previous versions because the install will take forever
15+
# instead, update the repo state in a later step
16+
RUN cd stable-diffusion && git pull && git reset --hard 6b442c05296dd350fcf7f752e17c4b4bb015a03b && \
17+
conda env update --file environment.yaml --name base && conda clean -a -y
18+
19+
# download latest UI version, update the sha below in case you want some other version
1420
RUN git clone https://github.com/hlky/stable-diffusion-webui.git && cd stable-diffusion-webui && \
1521
git reset --hard 33890563d237889aca7cbc4f04ae42b885aee07e && \
1622
cp -t /stable-diffusion/scripts/ txt2img.yaml webui.py webui.yaml webui_playground.py && \
1723
cd / && rm -rf stable-diffusion-webui
1824

1925

26+
# For testing different versions:
27+
# RUN git clone https://github.com/AbdBarho/stable-diffusion-webui.git && cd stable-diffusion-webui && \
28+
# git checkout respect-cli-params &&\
29+
# cp -t /stable-diffusion/scripts/ txt2img.yaml webui.py webui.yaml webui_playground.py && \
30+
# cd / && rm -rf stable-diffusion-webui
31+
32+
2033
WORKDIR /stable-diffusion
2134
ENV TRANSFORMERS_CACHE=/cache/transformers TORCH_HOME=/cache/torch CLI_ARGS=""
2235

2336
EXPOSE 7860
24-
CMD ln -sf /models/model.ckpt /stable-diffusion/models/ldm/stable-diffusion-v1/model.ckpt && \
37+
CMD \
38+
ln -sf /models/model.ckpt /stable-diffusion/models/ldm/stable-diffusion-v1/model.ckpt && \
2539
ln -sf /models/GFPGANv1.3.pth /stable-diffusion/src/gfpgan/experiments/pretrained_models/GFPGANv1.3.pth && \
2640
ln -sf /models/RealESRGAN_x4plus.pth /stable-diffusion/src/realesrgan/experiments/pretrained_models/RealESRGAN_x4plus.pth && \
2741
# force facexlib cache

0 commit comments

Comments
 (0)