Spaces:
Running
on
A10G
Running
on
A10G
Update Dockerfile
Browse filesremoving configurations, attempting to run vanilla
- Dockerfile +0 -20
Dockerfile
CHANGED
|
@@ -37,27 +37,7 @@ RUN rm -rf stable-diffusion-webui && \
|
|
| 37 |
echo "fastapi==0.90.0" >> requirements_versions.txt && \
|
| 38 |
python launch.py --skip-torch-cuda-test
|
| 39 |
|
| 40 |
-
# Apply configuration patches
|
| 41 |
-
ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/
|
| 42 |
-
ADD --chown=user https://raw.githubusercontent.com/darkstorm2150/webui/refs/heads/main/OpenGen_header_patch.py /content/
|
| 43 |
-
RUN sed -i '/import image_from_url_text/r /content/env_patch.py' stable-diffusion-webui/modules/ui.py && \
|
| 44 |
-
sed -i '/demo:/r /content/header_patch.py' stable-diffusion-webui/modules/ui.py
|
| 45 |
|
| 46 |
-
# Cleanup and optimizations
|
| 47 |
-
RUN rm -rf stable-diffusion-webui/scripts && \
|
| 48 |
-
sed -i -e '/(modelmerger_interface, "Checkpoint Merger", "modelmerger"),/d' \
|
| 49 |
-
-e '/(train_interface, "Train", "ti"),/d' \
|
| 50 |
-
-e '/extensions_interface, "Extensions", "extensions"/d' \
|
| 51 |
-
-e '/settings_interface, "Settings", "settings"/d' \
|
| 52 |
-
-e 's/document.getElementsByTagName.*shadowRoot/!!& ? & : document/g' stable-diffusion-webui/script.js && \
|
| 53 |
-
sed -i 's/show_progress=False/show_progress=True/g' stable-diffusion-webui/modules/ui.py && \
|
| 54 |
-
sed -i 's/default_enabled=False/default_enabled=True/g' stable-diffusion-webui/webui.py && \
|
| 55 |
-
sed -i 's/ outputs=\[/queue=False, &/g' stable-diffusion-webui/modules/ui.py && \
|
| 56 |
-
sed -i 's/queue=False, //g' stable-diffusion-webui/modules/ui.py
|
| 57 |
-
|
| 58 |
-
# Add configuration files
|
| 59 |
-
ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/shared-config.json /content/
|
| 60 |
-
ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/shared-ui-config.json /content/
|
| 61 |
|
| 62 |
# Add Model
|
| 63 |
ADD --chown=user https://huggingface.co/darkstorm2150/OpenGen/resolve/main/OpenGen%20v1.0.safetensors /content/stable-diffusion-webui/models/Stable-diffusion/OpenGen%20v1.0.safetensors
|
|
|
|
| 37 |
echo "fastapi==0.90.0" >> requirements_versions.txt && \
|
| 38 |
python launch.py --skip-torch-cuda-test
|
| 39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
# Add Model
|
| 43 |
ADD --chown=user https://huggingface.co/darkstorm2150/OpenGen/resolve/main/OpenGen%20v1.0.safetensors /content/stable-diffusion-webui/models/Stable-diffusion/OpenGen%20v1.0.safetensors
|