diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..d3009ed --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,27 @@ +services: + stable-diffusion-webui-forge: + build: ./stable-diffusion-webui-forge + restart: unless-stopped + environment: + - HSA_OVERRIDE_GFX_VERSION=11.0.0 + ports: + - 7860:7860 + devices: + - /dev/kfd + - /dev/dri + volumes: + - ./shared/lora:/app/models/Lora + - ./shared/tensors:/app/models/Stable-diffusion + - ./shared/vae/:/app/models/VAE + - ./shared/embeddings:/app/embeddings + - ./stable-diffusion-webui-forge/extensions:/app/extensions + - ./stable-diffusion-webui-forge/repositories:/app/repositories + - ./stable-diffusion-webui-forge/outputs:/app/outputs + - ./stable-diffusion-webui-forge/favorites:/app/log/images + group_add: + - video + ipc: host + cap_add: + - SYS_PTRACE + security_opt: + - seccomp=unconfined diff --git a/shared/embeddings/.gitignore b/shared/embeddings/.gitignore new file mode 100644 index 0000000..c96a04f --- /dev/null +++ b/shared/embeddings/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore \ No newline at end of file diff --git a/shared/lora/.gitignore b/shared/lora/.gitignore new file mode 100644 index 0000000..c96a04f --- /dev/null +++ b/shared/lora/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore \ No newline at end of file diff --git a/shared/tensors/.gitignore b/shared/tensors/.gitignore new file mode 100644 index 0000000..c96a04f --- /dev/null +++ b/shared/tensors/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore \ No newline at end of file diff --git a/shared/vae/.gitignore b/shared/vae/.gitignore new file mode 100644 index 0000000..c96a04f --- /dev/null +++ b/shared/vae/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore \ No newline at end of file diff --git a/stable-diffusion-webui-forge/Dockerfile b/stable-diffusion-webui-forge/Dockerfile new file mode 100644 index 0000000..d3f6ff7 --- /dev/null +++ b/stable-diffusion-webui-forge/Dockerfile @@ -0,0 +1,45 @@ +ARG PYTHON_VERSION=3.10 +ARG ROCM_VERSION=6.1 + +# we do not use rocm/pytorch as it currently use python 3.7 and we require >=python 3.10 +FROM rocm/rocm-terminal:${ROCM_VERSION} +ARG PYTHON_VERSION +ARG ROCM_VERSION + +# switch to root for setup +USER root + +RUN git clone https://github.com/lllyasviel/stable-diffusion-webui-forge /app +WORKDIR /app +RUN apt update \ + && apt upgrade -y \ + && apt install -y software-properties-common \ + && add-apt-repository ppa:deadsnakes/ppa \ + && apt update \ + && apt install -y pciutils bc mesa-utils google-perftools \ + && apt install -y python${PYTHON_VERSION}-full \ + && curl -sS https://bootstrap.pypa.io/get-pip.py | python${PYTHON_VERSION} \ + && chown -R 1000:1000 /app \ + && rm -rf /var/lib/apt/lists/* + +# switch back to unpreviledged user +USER 1000 + +RUN python${PYTHON_VERSION} -m venv /app/env \ + && sed -i'' -Ee "s/rocm[0-9]\.[0-9]/rocm${ROCM_VERSION}/g" webui.sh \ + && /app/env/bin/python -m pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm${ROCM_VERSION} \ + && /app/env/bin/python -m pip install --no-cache-dir -r requirements_versions.txt + +VOLUME ["/app/models/Lora", "/app/models/Stable-diffusion", "/app/models/VAE"] +VOLUME ["/app/embeddings"] +VOLUME ["/app/extensions"] +VOLUME ["/app/repositories"] +VOLUME ["/app/outputs"] +VOLUME ["/app/log/images"] + +EXPOSE 7860 +ENV python_cmd=/app/env/bin/python +ENV PYTORCH_CUDA_ALLOC_CONF="garbage_collection_threshold:0.9,max_split_size_mb:512" +ENV COMMANDLINE_ARGS="--listen --enable-insecure-extension-access --theme=dark --api --update-check" +ENTRYPOINT ["./webui.sh"] +CMD [] \ No newline at end of file diff --git a/stable-diffusion-webui-forge/extensions/.gitignore b/stable-diffusion-webui-forge/extensions/.gitignore new file mode 100644 index 0000000..c96a04f --- /dev/null +++ b/stable-diffusion-webui-forge/extensions/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore \ No newline at end of file diff --git a/stable-diffusion-webui-forge/favorites/00000-1923184758.png b/stable-diffusion-webui-forge/favorites/00000-1923184758.png new file mode 100644 index 0000000..b4fdfc9 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00000-1923184758.png differ diff --git a/stable-diffusion-webui-forge/favorites/00001-445830454.png b/stable-diffusion-webui-forge/favorites/00001-445830454.png new file mode 100644 index 0000000..605c40d Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00001-445830454.png differ diff --git a/stable-diffusion-webui-forge/favorites/00002-387215318.png b/stable-diffusion-webui-forge/favorites/00002-387215318.png new file mode 100644 index 0000000..53627c5 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00002-387215318.png differ diff --git a/stable-diffusion-webui-forge/favorites/00002-389496791.png b/stable-diffusion-webui-forge/favorites/00002-389496791.png new file mode 100644 index 0000000..543ef73 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00002-389496791.png differ diff --git a/stable-diffusion-webui-forge/favorites/00004-564936609.png b/stable-diffusion-webui-forge/favorites/00004-564936609.png new file mode 100644 index 0000000..1841847 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00004-564936609.png differ diff --git a/stable-diffusion-webui-forge/favorites/00005-875706978.png b/stable-diffusion-webui-forge/favorites/00005-875706978.png new file mode 100644 index 0000000..c248e1d Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00005-875706978.png differ diff --git a/stable-diffusion-webui-forge/favorites/00011-4032641654.png b/stable-diffusion-webui-forge/favorites/00011-4032641654.png new file mode 100644 index 0000000..df405b1 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00011-4032641654.png differ diff --git a/stable-diffusion-webui-forge/favorites/00013-2650623778.png b/stable-diffusion-webui-forge/favorites/00013-2650623778.png new file mode 100644 index 0000000..6e29df1 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00013-2650623778.png differ diff --git a/stable-diffusion-webui-forge/favorites/00016-1471398638.png b/stable-diffusion-webui-forge/favorites/00016-1471398638.png new file mode 100644 index 0000000..dd2ac4c Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00016-1471398638.png differ diff --git a/stable-diffusion-webui-forge/favorites/00017-3382615323.png b/stable-diffusion-webui-forge/favorites/00017-3382615323.png new file mode 100644 index 0000000..2a38491 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00017-3382615323.png differ diff --git a/stable-diffusion-webui-forge/favorites/00019-1940118792.png b/stable-diffusion-webui-forge/favorites/00019-1940118792.png new file mode 100644 index 0000000..fd48ae1 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00019-1940118792.png differ diff --git a/stable-diffusion-webui-forge/favorites/00026-186589265.png b/stable-diffusion-webui-forge/favorites/00026-186589265.png new file mode 100644 index 0000000..24c6c52 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00026-186589265.png differ diff --git a/stable-diffusion-webui-forge/favorites/00035-1850758037.png b/stable-diffusion-webui-forge/favorites/00035-1850758037.png new file mode 100644 index 0000000..4d4187a Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00035-1850758037.png differ diff --git a/stable-diffusion-webui-forge/favorites/00041-3779700529.png b/stable-diffusion-webui-forge/favorites/00041-3779700529.png new file mode 100644 index 0000000..966891c Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00041-3779700529.png differ diff --git a/stable-diffusion-webui-forge/favorites/00052-1049802976.png b/stable-diffusion-webui-forge/favorites/00052-1049802976.png new file mode 100644 index 0000000..823d5cf Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00052-1049802976.png differ diff --git a/stable-diffusion-webui-forge/favorites/00057-4226204394.png b/stable-diffusion-webui-forge/favorites/00057-4226204394.png new file mode 100644 index 0000000..163b236 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00057-4226204394.png differ diff --git a/stable-diffusion-webui-forge/favorites/00059-1107320182.png b/stable-diffusion-webui-forge/favorites/00059-1107320182.png new file mode 100644 index 0000000..734092d Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00059-1107320182.png differ diff --git a/stable-diffusion-webui-forge/favorites/00070-3095706368.png b/stable-diffusion-webui-forge/favorites/00070-3095706368.png new file mode 100644 index 0000000..4c9b586 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00070-3095706368.png differ diff --git a/stable-diffusion-webui-forge/favorites/00074-678604094.png b/stable-diffusion-webui-forge/favorites/00074-678604094.png new file mode 100644 index 0000000..68cb08e Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00074-678604094.png differ diff --git a/stable-diffusion-webui-forge/favorites/00084-3191501986.png b/stable-diffusion-webui-forge/favorites/00084-3191501986.png new file mode 100644 index 0000000..c28fea5 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00084-3191501986.png differ diff --git a/stable-diffusion-webui-forge/favorites/00089-283805564.png b/stable-diffusion-webui-forge/favorites/00089-283805564.png new file mode 100644 index 0000000..4057bf7 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00089-283805564.png differ diff --git a/stable-diffusion-webui-forge/favorites/00090-3350669006.png b/stable-diffusion-webui-forge/favorites/00090-3350669006.png new file mode 100644 index 0000000..e755238 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00090-3350669006.png differ diff --git a/stable-diffusion-webui-forge/favorites/00098-1120559458.png b/stable-diffusion-webui-forge/favorites/00098-1120559458.png new file mode 100644 index 0000000..47d694c Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00098-1120559458.png differ diff --git a/stable-diffusion-webui-forge/favorites/00102-3317293019.png b/stable-diffusion-webui-forge/favorites/00102-3317293019.png new file mode 100644 index 0000000..1c8eda0 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00102-3317293019.png differ diff --git a/stable-diffusion-webui-forge/favorites/00105-511254131.png b/stable-diffusion-webui-forge/favorites/00105-511254131.png new file mode 100644 index 0000000..7bcbcd2 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00105-511254131.png differ diff --git a/stable-diffusion-webui-forge/favorites/00125-2144062715.png b/stable-diffusion-webui-forge/favorites/00125-2144062715.png new file mode 100644 index 0000000..6400e87 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00125-2144062715.png differ diff --git a/stable-diffusion-webui-forge/favorites/00145-4176813952.png b/stable-diffusion-webui-forge/favorites/00145-4176813952.png new file mode 100644 index 0000000..d9377c4 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00145-4176813952.png differ diff --git a/stable-diffusion-webui-forge/favorites/00149-635774973.png b/stable-diffusion-webui-forge/favorites/00149-635774973.png new file mode 100644 index 0000000..3bd3e32 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00149-635774973.png differ diff --git a/stable-diffusion-webui-forge/favorites/00152-1064898718.png b/stable-diffusion-webui-forge/favorites/00152-1064898718.png new file mode 100644 index 0000000..e9016ba Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00152-1064898718.png differ diff --git a/stable-diffusion-webui-forge/favorites/00176-884306907.png b/stable-diffusion-webui-forge/favorites/00176-884306907.png new file mode 100644 index 0000000..b8b8780 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00176-884306907.png differ diff --git a/stable-diffusion-webui-forge/favorites/00186-1711021392.png b/stable-diffusion-webui-forge/favorites/00186-1711021392.png new file mode 100644 index 0000000..e58d5fd Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00186-1711021392.png differ diff --git a/stable-diffusion-webui-forge/favorites/00190-2693241875.png b/stable-diffusion-webui-forge/favorites/00190-2693241875.png new file mode 100644 index 0000000..a907c14 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00190-2693241875.png differ diff --git a/stable-diffusion-webui-forge/favorites/00191-4226204394.png b/stable-diffusion-webui-forge/favorites/00191-4226204394.png new file mode 100644 index 0000000..96495e7 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00191-4226204394.png differ diff --git a/stable-diffusion-webui-forge/favorites/00194-3581872928.png b/stable-diffusion-webui-forge/favorites/00194-3581872928.png new file mode 100644 index 0000000..f3b44ee Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00194-3581872928.png differ diff --git a/stable-diffusion-webui-forge/favorites/00214-1727703724.png b/stable-diffusion-webui-forge/favorites/00214-1727703724.png new file mode 100644 index 0000000..3db3a2b Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00214-1727703724.png differ diff --git a/stable-diffusion-webui-forge/favorites/00229-2470737543.png b/stable-diffusion-webui-forge/favorites/00229-2470737543.png new file mode 100644 index 0000000..4f48d06 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00229-2470737543.png differ diff --git a/stable-diffusion-webui-forge/favorites/00231-3644161504.png b/stable-diffusion-webui-forge/favorites/00231-3644161504.png new file mode 100644 index 0000000..e10f22c Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00231-3644161504.png differ diff --git a/stable-diffusion-webui-forge/favorites/00237-4075984013.png b/stable-diffusion-webui-forge/favorites/00237-4075984013.png new file mode 100644 index 0000000..c7cbe89 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00237-4075984013.png differ diff --git a/stable-diffusion-webui-forge/favorites/00241-3411907669.png b/stable-diffusion-webui-forge/favorites/00241-3411907669.png new file mode 100644 index 0000000..556b930 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00241-3411907669.png differ diff --git a/stable-diffusion-webui-forge/favorites/00243-3878322617.png b/stable-diffusion-webui-forge/favorites/00243-3878322617.png new file mode 100644 index 0000000..98a2931 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00243-3878322617.png differ diff --git a/stable-diffusion-webui-forge/favorites/00244-3198290737.png b/stable-diffusion-webui-forge/favorites/00244-3198290737.png new file mode 100644 index 0000000..8fc32c3 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00244-3198290737.png differ diff --git a/stable-diffusion-webui-forge/favorites/00258-3816049865.png b/stable-diffusion-webui-forge/favorites/00258-3816049865.png new file mode 100644 index 0000000..9129a01 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00258-3816049865.png differ diff --git a/stable-diffusion-webui-forge/favorites/00259-1310638395.png b/stable-diffusion-webui-forge/favorites/00259-1310638395.png new file mode 100644 index 0000000..10fbb77 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00259-1310638395.png differ diff --git a/stable-diffusion-webui-forge/favorites/00260-1310638395.png b/stable-diffusion-webui-forge/favorites/00260-1310638395.png new file mode 100644 index 0000000..dbe1638 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00260-1310638395.png differ diff --git a/stable-diffusion-webui-forge/favorites/00261-1310638395.png b/stable-diffusion-webui-forge/favorites/00261-1310638395.png new file mode 100644 index 0000000..aaeb932 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00261-1310638395.png differ diff --git a/stable-diffusion-webui-forge/favorites/00262-1310638395.png b/stable-diffusion-webui-forge/favorites/00262-1310638395.png new file mode 100644 index 0000000..ceb99e4 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00262-1310638395.png differ diff --git a/stable-diffusion-webui-forge/favorites/00263-1310638395.png b/stable-diffusion-webui-forge/favorites/00263-1310638395.png new file mode 100644 index 0000000..74a3066 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00263-1310638395.png differ diff --git a/stable-diffusion-webui-forge/favorites/00270-4188057618.png b/stable-diffusion-webui-forge/favorites/00270-4188057618.png new file mode 100644 index 0000000..9531624 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00270-4188057618.png differ diff --git a/stable-diffusion-webui-forge/favorites/00276-276201004.png b/stable-diffusion-webui-forge/favorites/00276-276201004.png new file mode 100644 index 0000000..ff7dde7 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00276-276201004.png differ diff --git a/stable-diffusion-webui-forge/favorites/00285-1815382250.png b/stable-diffusion-webui-forge/favorites/00285-1815382250.png new file mode 100644 index 0000000..47d4a8c Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00285-1815382250.png differ diff --git a/stable-diffusion-webui-forge/favorites/00289-2090014017.png b/stable-diffusion-webui-forge/favorites/00289-2090014017.png new file mode 100644 index 0000000..ab6d773 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00289-2090014017.png differ diff --git a/stable-diffusion-webui-forge/favorites/00290-3978384685.png b/stable-diffusion-webui-forge/favorites/00290-3978384685.png new file mode 100644 index 0000000..3f3f503 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00290-3978384685.png differ diff --git a/stable-diffusion-webui-forge/favorites/00311-2413484560.png b/stable-diffusion-webui-forge/favorites/00311-2413484560.png new file mode 100644 index 0000000..187374b Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00311-2413484560.png differ diff --git a/stable-diffusion-webui-forge/favorites/00379-1530391626.png b/stable-diffusion-webui-forge/favorites/00379-1530391626.png new file mode 100644 index 0000000..fa44492 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00379-1530391626.png differ diff --git a/stable-diffusion-webui-forge/favorites/00389-2693241875.png b/stable-diffusion-webui-forge/favorites/00389-2693241875.png new file mode 100644 index 0000000..6fec242 Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00389-2693241875.png differ diff --git a/stable-diffusion-webui-forge/favorites/00404-273108617.png b/stable-diffusion-webui-forge/favorites/00404-273108617.png new file mode 100644 index 0000000..708ba7e Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00404-273108617.png differ diff --git a/stable-diffusion-webui-forge/favorites/00455-842273247.png b/stable-diffusion-webui-forge/favorites/00455-842273247.png new file mode 100644 index 0000000..98f2bfd Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00455-842273247.png differ diff --git a/stable-diffusion-webui-forge/favorites/00456-1193575401.png b/stable-diffusion-webui-forge/favorites/00456-1193575401.png new file mode 100644 index 0000000..99a934a Binary files /dev/null and b/stable-diffusion-webui-forge/favorites/00456-1193575401.png differ diff --git a/stable-diffusion-webui-forge/favorites/log.csv b/stable-diffusion-webui-forge/favorites/log.csv new file mode 100644 index 0000000..beb5422 --- /dev/null +++ b/stable-diffusion-webui-forge/favorites/log.csv @@ -0,0 +1,2 @@ +prompt,seed,width,height,sampler,cfgs,steps,filename,negative_prompt +"(This image depict a male human who is mid transformation into a wolf.:1.1), His ears are morphing into new shape. He nose is growing into a snout. His spine is extending to form a tail. His skin is covering with fur. He is panting and is feeling woozy as his brain rewires itself with new instincts., solo, nude, substance intoxication, drugs, cum, (transformation, mid transformation:1.2), BREAK high-angle view, rear view, realistic, by husdingo, by ruaidri, by agrboda, by nurinaki, by monstrifex, (best quality, high quality:1.4) ",1193575401,640,768,DPM++ 2M Karras,6,40,00456-1193575401.png,"transformation sequence, horror, human ears, cross-eyed, glowing eyes, multiple tails, (worst quality, low quality, normal quality:1.4)" diff --git a/stable-diffusion-webui-forge/outputs/.gitignore b/stable-diffusion-webui-forge/outputs/.gitignore new file mode 100644 index 0000000..c96a04f --- /dev/null +++ b/stable-diffusion-webui-forge/outputs/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore \ No newline at end of file diff --git a/stable-diffusion-webui-forge/repositories/.gitignore b/stable-diffusion-webui-forge/repositories/.gitignore new file mode 100644 index 0000000..c96a04f --- /dev/null +++ b/stable-diffusion-webui-forge/repositories/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore \ No newline at end of file