patch webui
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
@@ -87,9 +87,11 @@ WORKDIR /app/stable-diffusion-webui
|
|
87 |
COPY config.json ui-config.json /app/stable-diffusion-webui/
|
88 |
RUN /opt/venv/bin/python launch.py --exit --skip-torch-cuda-test --xformers
|
89 |
|
|
|
90 |
RUN sed -i -e 's/ show_progress=False,/ show_progress=True,/g' modules/ui.py
|
91 |
RUN sed -i -e 's/shared.demo.launch/shared.demo.queue().launch/g' webui.py
|
92 |
-
|
|
|
93 |
|
94 |
# Copy startup scripts
|
95 |
COPY run.py on_start.sh /app/stable-diffusion-webui/
|
|
|
87 |
COPY config.json ui-config.json /app/stable-diffusion-webui/
|
88 |
RUN /opt/venv/bin/python launch.py --exit --skip-torch-cuda-test --xformers
|
89 |
|
90 |
+
# Patch WebUI
|
91 |
RUN sed -i -e 's/ show_progress=False,/ show_progress=True,/g' modules/ui.py
|
92 |
RUN sed -i -e 's/shared.demo.launch/shared.demo.queue().launch/g' webui.py
|
93 |
+
RUN sed -i -e 's/ outputs=\[/queue=False, &/g' modules/ui.py
|
94 |
+
RUN sed -i -e 's/ queue=False, / /g' modules/ui.py
|
95 |
|
96 |
# Copy startup scripts
|
97 |
COPY run.py on_start.sh /app/stable-diffusion-webui/
|