From 275a5f6ad28d19cd9f10e3b6ad1f7bd9ed91f121 Mon Sep 17 00:00:00 2001 From: ChUrl Date: Thu, 11 May 2023 23:26:07 +0200 Subject: [PATCH] Add stablediff webui container entrypoint script --- config/stablediffusion/launch.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 config/stablediffusion/launch.sh diff --git a/config/stablediffusion/launch.sh b/config/stablediffusion/launch.sh new file mode 100755 index 00000000..c5e1f65d --- /dev/null +++ b/config/stablediffusion/launch.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# NOTE: This script is used in conjunction with the rocm/python docker image + +# Install if necessary +if [[ ! -f "/webui-data/stable-diffusion-webui/launch.py" ]]; then + cd /webui-data + git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui + cd stable-diffusion-webui + python -m pip install --upgrade pip wheel +fi + +cd /webui-data/stable-diffusion-webui +REQS_FILE='requirements.txt' python launch.py --precision full --no-half