Spaces:
Build error
Build error
Commit
·
3df4e5f
1
Parent(s):
8e9e266
Update Dockerfile
Browse files- Dockerfile +12 -16
Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
# Dockerfile
|
| 2 |
|
| 3 |
# https://gitlab.com/nvidia/container-images/cuda/-/blob/master/dist/11.7.1/ubuntu2204/devel/cudnn8/Dockerfile
|
| 4 |
# FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04
|
|
@@ -19,33 +19,29 @@ RUN pip install --pre triton
|
|
| 19 |
RUN pip install numexpr
|
| 20 |
|
| 21 |
RUN git clone -b v2.0 https://github.com/camenduru/stable-diffusion-webui
|
| 22 |
-
RUN sed -i -e '''/prepare_environment()/a\ os.system\(f\"""sed -i -e ''\"s/dict()))/dict())).cuda()/g\"'' /content/stable-diffusion-webui/repositories/stable-diffusion-stability-ai/ldm/util.py""")''' /content/stable-diffusion-webui/launch.py
|
| 23 |
RUN sed -i -e 's/ start()/ #start()/g' /content/stable-diffusion-webui/launch.py
|
| 24 |
RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
|
| 25 |
|
|
|
|
| 26 |
ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
|
| 27 |
RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
|
| 28 |
ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
|
| 29 |
RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
|
|
|
|
| 30 |
|
| 31 |
-
|
| 32 |
-
RUN
|
| 33 |
-
RUN
|
| 34 |
-
RUN
|
| 35 |
-
RUN
|
| 36 |
-
RUN
|
| 37 |
-
RUN sed -i -e 's/default_enabled=False/default_enabled=True/g' /content/stable-diffusion-webui/webui.py
|
| 38 |
-
RUN sed -i -e 's/ outputs=\[/queue=False, &/g' /content/stable-diffusion-webui/modules/ui.py
|
| 39 |
-
RUN sed -i -e 's/ queue=False, / /g' /content/stable-diffusion-webui/modules/ui.py
|
| 40 |
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/shared-config.json /content/shared-config.json
|
| 44 |
-
ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/shared-ui-config.json /content/shared-ui-config.json
|
| 45 |
|
| 46 |
ADD --chown=user https://huggingface.co/andite/anything-v4.0/resolve/main/anything-v4.5-pruned.ckpt /content/stable-diffusion-webui/models/Stable-diffusion/anything-v4.5-pruned.ckpt
|
| 47 |
ADD --chown=user https://huggingface.co/andite/anything-v4.0/resolve/main/anything-v4.0.vae.pt /content/stable-diffusion-webui/models/Stable-diffusion/anything-v4.5-pruned.vae.pt
|
| 48 |
|
| 49 |
EXPOSE 7860
|
| 50 |
|
| 51 |
-
CMD cd /content/stable-diffusion-webui && python webui.py --
|
|
|
|
| 1 |
+
# Dockerfile Private Nightly CPU
|
| 2 |
|
| 3 |
# https://gitlab.com/nvidia/container-images/cuda/-/blob/master/dist/11.7.1/ubuntu2204/devel/cudnn8/Dockerfile
|
| 4 |
# FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04
|
|
|
|
| 19 |
RUN pip install numexpr
|
| 20 |
|
| 21 |
RUN git clone -b v2.0 https://github.com/camenduru/stable-diffusion-webui
|
|
|
|
| 22 |
RUN sed -i -e 's/ start()/ #start()/g' /content/stable-diffusion-webui/launch.py
|
| 23 |
RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
|
| 24 |
|
| 25 |
+
# ----------------------------Delete this block if you don't want to see the extra header----------------------------
|
| 26 |
ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
|
| 27 |
RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
|
| 28 |
ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
|
| 29 |
RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
|
| 30 |
+
# -------------------------------------------------------------------------------------------------------------------
|
| 31 |
|
| 32 |
+
ADD --chown=user https://raw.githubusercontent.com/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py /content/stable-diffusion-webui/scripts/run_n_times.py
|
| 33 |
+
RUN git clone https://github.com/deforum-art/deforum-for-automatic1111-webui /content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui
|
| 34 |
+
RUN git clone https://github.com/AlUlkesh/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser
|
| 35 |
+
RUN git clone https://github.com/camenduru/stable-diffusion-webui-huggingface /content/stable-diffusion-webui/extensions/stable-diffusion-webui-huggingface
|
| 36 |
+
RUN git clone -b v2.0 https://github.com/camenduru/sd-civitai-browser /content/stable-diffusion-webui/extensions/sd-civitai-browser
|
| 37 |
+
RUN git clone https://github.com/kohya-ss/sd-webui-additional-networks /content/stable-diffusion-webui/extensions/sd-webui-additional-networks
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
+
COPY --chown=user config.json /content/config.json
|
| 40 |
+
COPY --chown=user ui-config.json /content/ui-config.json
|
|
|
|
|
|
|
| 41 |
|
| 42 |
ADD --chown=user https://huggingface.co/andite/anything-v4.0/resolve/main/anything-v4.5-pruned.ckpt /content/stable-diffusion-webui/models/Stable-diffusion/anything-v4.5-pruned.ckpt
|
| 43 |
ADD --chown=user https://huggingface.co/andite/anything-v4.0/resolve/main/anything-v4.0.vae.pt /content/stable-diffusion-webui/models/Stable-diffusion/anything-v4.5-pruned.vae.pt
|
| 44 |
|
| 45 |
EXPOSE 7860
|
| 46 |
|
| 47 |
+
CMD cd /content/stable-diffusion-webui && python webui.py --use-cpu all --no-half --listen --disable-console-progressbars --ui-config-file /content/ui-config.json --ui-settings-file /content/config.json
|