optimize args
This commit is contained in:
parent
ce324b577a
commit
949a247642
|
@ -1,5 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui /shared/stable-diffusion-webui
|
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui /shared/stable-diffusion-webui
|
||||||
|
cd /shared
|
||||||
|
ln -s ./stable-diffusion-webui/models models
|
||||||
|
ln -s ./stable-diffusion-webui/outputs outputs
|
||||||
|
ln -s ./stable-diffusion-webui/embeddings embeddings
|
||||||
cd /shared/stable-diffusion-webui
|
cd /shared/stable-diffusion-webui
|
||||||
exec ./webui.sh
|
exec ./webui.sh
|
|
@ -3,11 +3,15 @@ services:
|
||||||
stable-diffusion:
|
stable-diffusion:
|
||||||
build: .
|
build: .
|
||||||
environment:
|
environment:
|
||||||
|
# for 5700xt compat
|
||||||
|
# ref: https://old.reddit.com/r/StableDiffusion/comments/ww436j/howto_stable_diffusion_on_an_amd_gpu/imcpmo8/
|
||||||
- HSA_OVERRIDE_GFX_VERSION=10.3.0
|
- HSA_OVERRIDE_GFX_VERSION=10.3.0
|
||||||
- COMMANDLINE_ARGS=--precision full --no-half
|
- PYTORCH_HIP_ALLOC_CONF=garbage_collection_threshold:0.9,max_split_size_mb:512
|
||||||
network_mode: host
|
- COMMANDLINE_ARGS=--listen --theme=dark --precision full --no-half
|
||||||
# for 5700xt compat
|
# - COMMANDLINE_ARGS=--listen --theme=dark --precision full --no-half --medvram
|
||||||
# ref: https://old.reddit.com/r/StableDiffusion/comments/ww436j/howto_stable_diffusion_on_an_amd_gpu/imcpmo8/
|
# - COMMANDLINE_ARGS=--listen --theme=dark --use-cpu all --precision full --no-half --skip-torch-cuda-test
|
||||||
|
ports:
|
||||||
|
- 7860:7860
|
||||||
devices:
|
devices:
|
||||||
- /dev/kfd
|
- /dev/kfd
|
||||||
- /dev/dri
|
- /dev/dri
|
||||||
|
|
Loading…
Reference in New Issue