mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2026-02-09 00:54:20 +01:00
auto
This commit is contained in:
parent
a96285d10b
commit
a34b8c9fa8
|
|
@ -39,7 +39,7 @@ services:
|
||||||
- *v2
|
- *v2
|
||||||
- ./services/AUTOMATIC1111/config.json:/stable-diffusion-webui/config.json
|
- ./services/AUTOMATIC1111/config.json:/stable-diffusion-webui/config.json
|
||||||
environment:
|
environment:
|
||||||
- CLI_ARGS=--medvram
|
- CLI_ARGS=--allow-code --medvram
|
||||||
|
|
||||||
automatic1111-cpu:
|
automatic1111-cpu:
|
||||||
<<: *automatic
|
<<: *automatic
|
||||||
|
|
|
||||||
|
|
@ -3,14 +3,17 @@
|
||||||
FROM alpine/git:2.36.2 as download
|
FROM alpine/git:2.36.2 as download
|
||||||
|
|
||||||
|
|
||||||
RUN git clone --depth 1 https://github.com/CompVis/stable-diffusion.git repositories/stable-diffusion
|
RUN git clone https://github.com/CompVis/stable-diffusion.git repositories/stable-diffusion && cd repositories/stable-diffusion && git reset --hard 69ae4b35e0a0f6ee1af8bb9a5d0016ccb27e36dc
|
||||||
RUN git clone --depth 1 https://github.com/sczhou/CodeFormer.git repositories/CodeFormer
|
|
||||||
RUN git clone --depth 1 https://github.com/salesforce/BLIP.git repositories/BLIP
|
RUN git clone https://github.com/sczhou/CodeFormer.git repositories/CodeFormer && cd repositories/CodeFormer && git reset --hard c5b4593074ba6214284d6acd5f1719b6c5d739af
|
||||||
|
RUN git clone https://github.com/salesforce/BLIP.git repositories/BLIP && cd repositories/BLIP && git reset --hard 48211a1594f1321b00f14c9f7a5b4813144b2fb9
|
||||||
|
RUN git clone https://github.com/Hafiidz/latent-diffusion.git repositories/latent-diffusion && cd repositories/latent-diffusion && git reset --hard abf33e7002d59d9085081bce93ec798dcabd49af
|
||||||
|
|
||||||
RUN <<EOF
|
RUN <<EOF
|
||||||
# because taming-transformers is huge
|
# because taming-transformers is huge
|
||||||
git config --global http.postBuffer 1048576000
|
git config --global http.postBuffer 1048576000
|
||||||
git clone --depth 1 https://github.com/CompVis/taming-transformers.git repositories/taming-transformers
|
git clone https://github.com/CompVis/taming-transformers.git repositories/taming-transformers
|
||||||
|
git reset --hard 24268930bf1dce879235a7fddd0b2355b84d7ea6
|
||||||
rm -rf repositories/taming-transformers/data repositories/taming-transformers/assets
|
rm -rf repositories/taming-transformers/data repositories/taming-transformers/assets
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
@ -44,7 +47,7 @@ RUN pip install --prefer-binary --no-cache-dir -r ${ROOT}/repositories/CodeForme
|
||||||
# Note: don't update the sha of previous versions because the install will take forever
|
# Note: don't update the sha of previous versions because the install will take forever
|
||||||
# instead, update the repo state in a later step
|
# instead, update the repo state in a later step
|
||||||
|
|
||||||
ARG SHA=dd911a47b3c3313b3938b700eb26cbd5bb3e1c95
|
ARG SHA=5a1951f17567022612aef5302fb650923a06fb54
|
||||||
RUN <<EOF
|
RUN <<EOF
|
||||||
cd stable-diffusion-webui
|
cd stable-diffusion-webui
|
||||||
git pull --rebase
|
git pull --rebase
|
||||||
|
|
|
||||||
|
|
@ -54,5 +54,14 @@
|
||||||
"enable_quantization": false,
|
"enable_quantization": false,
|
||||||
"enable_batch_seeds": true,
|
"enable_batch_seeds": true,
|
||||||
"memmon_poll_rate": 8,
|
"memmon_poll_rate": 8,
|
||||||
"sd_model_checkpoint": null
|
"sd_model_checkpoint": null,
|
||||||
|
"SWIN_tile": 192,
|
||||||
|
"SWIN_tile_overlap": 8,
|
||||||
|
"ldsr_steps": 30,
|
||||||
|
"ldsr_pre_down": 1,
|
||||||
|
"ldsr_post_down": 1,
|
||||||
|
"upscaler_for_hires_fix": null,
|
||||||
|
"js_modal_lightbox": true,
|
||||||
|
"js_modal_lightbox_initialy_zoomed": true,
|
||||||
|
"use_original_name_batch": false
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,9 @@ declare -A MODELS
|
||||||
|
|
||||||
MODELS["${WORKDIR}/models/ldm/stable-diffusion-v1/model.ckpt"]=model.ckpt
|
MODELS["${WORKDIR}/models/ldm/stable-diffusion-v1/model.ckpt"]=model.ckpt
|
||||||
MODELS["${ROOT}/GFPGANv1.3.pth"]=GFPGANv1.3.pth
|
MODELS["${ROOT}/GFPGANv1.3.pth"]=GFPGANv1.3.pth
|
||||||
|
MODELS["${WORKDIR}/repositories/latent-diffusion/experiments/pretrained_models/model.chkpt"]=LDSR.ckpt
|
||||||
|
MODELS["${WORKDIR}/repositories/latent-diffusion/experiments/pretrained_models/project.yaml"]=LDSR.yaml
|
||||||
|
|
||||||
|
|
||||||
MODELS_DIR=/cache/models
|
MODELS_DIR=/cache/models
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue