Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Stable Diffusion WebUI in Docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Grewe
Stable Diffusion WebUI in Docker
Commits
083aed3e
Commit
083aed3e
authored
Feb 19, 2024
by
Jan Grewe
Browse files
Options
Downloads
Patches
Plain Diff
v1.7.0
parent
27897d7f
No related branches found
No related tags found
No related merge requests found
Pipeline
#1036
failed
Feb 19, 2024
Stage: build
Stage: push
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+2
-3
2 additions, 3 deletions
Dockerfile
README.md
+6
-0
6 additions, 0 deletions
README.md
requirements_add.txt
+12
-0
12 additions, 0 deletions
requirements_add.txt
with
20 additions
and
3 deletions
Dockerfile
+
2
−
3
View file @
083aed3e
FROM
nvidia/cuda:12.3.0-runtime-ubuntu22.04
ENV
VERSION=v1.
6.1
ENV
VERSION=v1.
7.0
ARG
VERSION
ENV
DEBIAN_FRONTEND=noninteractive
...
...
@@ -26,5 +26,4 @@ RUN pip install --extra-index-url https://pypi.nvidia.com -r /tmp/requirements_a
EXPOSE
7860
ENTRYPOINT
["python", "launch.py", "--listen", "--data-dir", "/app/data", "--disable-console-progressbars", "--enable-insecure-extension-access"]
CMD
["--api", "--opt-sdp-no-mem-attention", "--opt-channelslast", "--no-half-vae"]
ENTRYPOINT
["python", "launch.py", "--listen", "--data-dir", "/app/data", "--disable-console-progressbars", "--enable-insecure-extension-access", "--api"]
This diff is collapsed.
Click to expand it.
README.md
+
6
−
0
View file @
083aed3e
...
...
@@ -19,6 +19,11 @@ docker push ${IMAGE_NAME}:${VERSION}
docker push ${IMAGE_NAME}:latest
```
### Building an OCI image
```
nerdctl build --progress=plain --build-arg="VERSION=${VERSION}" --output="type=oci,name=${IMAGE_NAME}:${VERSION},push=true" -t ${IMAGE_NAME}:${VERSION} .
```
## Run the container
Run the image without retaining any data or outputs on exit:
...
...
@@ -39,3 +44,4 @@ docker run --tty --gpus all --rm --name stable-diffusion-webui -p 7860:7860 \
# Troubleshooting
*
There is no output to the console when starting the image until you generate an image.
This can be fixed by adding the
`--tty`
argument after
`docker run`
This diff is collapsed.
Click to expand it.
requirements_add.txt
+
12
−
0
View file @
083aed3e
# Stable-Diffusion-WebUI-TensorRT
nvidia-cudnn-cu11==8.9.4.25
tensorrt==9.0.1.post11.dev4
tensorrt-libs==9.0.1.post11.dev4
...
...
@@ -7,3 +8,14 @@ polygraphy==0.49.0
onnx-graphsurgeon==0.3.25
onnxruntime==1.16.3
colored==2.2.3
# sd-webui-controlnet
mediapipe==0.10.8
svglib==1.5.1
fvcore==0.1.5.post20221221
# sd-civitai-browser-plus
ZipUnicode==1.1.1
Send2Trash==1.8.2
beautifulsoup4==4.12.2
fake-useragent==1.4.0
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment