diff options
author | Leonard Kugis <leonard@kug.is> | 2024-04-07 16:23:53 +0200 |
---|---|---|
committer | Leonard Kugis <leonard@kug.is> | 2024-04-07 16:23:53 +0200 |
commit | d12df5f3dd04103d0d16ffc61dbe92f6086b09d1 (patch) | |
tree | 93768c4a0f708936961fee8a6dad1ab28f4d1a5b /Stable Diffusion Docker.md | |
parent | 348cf45da5d2af38188d07ef4a47e26c00502c78 (diff) |
Added Stable Diffusion Docker commands
Diffstat (limited to 'Stable Diffusion Docker.md')
-rw-r--r-- | Stable Diffusion Docker.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Stable Diffusion Docker.md b/Stable Diffusion Docker.md new file mode 100644 index 0000000..62ac4ff --- /dev/null +++ b/Stable Diffusion Docker.md @@ -0,0 +1,12 @@ +# Stable Diffusion Docker + +## Run + +1. When running for the first time: `docker run -it --network=host --device=/dev/kfd --device=/dev/dri --group-add=video --ipc=host --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $HOME/dockerx:/dockerx ubuntu:latest`. +2. When running again: + 1. Identify exited container: `docker container ls -a`. + 2. Restart the container: `docker container restart <container-id>`. + 3. Attach to it with bash: `docker exec -it <container-id> bash`. +3. Cd into the `stable-diffusion-webui` folder. +4. Source the venv: `source venv/bin/activate`. +5. Launch the main script: `python launch.py --precision full --no-half`. |