From 14cf235d54446c0cdbfb6dfb7fa08a8f8e5ea98f Mon Sep 17 00:00:00 2001 From: AbdBarho Date: Sun, 19 Feb 2023 16:06:34 +0100 Subject: [PATCH] update invoke --- docker-compose.yml | 2 +- services/invoke/Dockerfile | 6 +----- services/invoke/models.yaml | 4 ++-- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index b1f18b6..e0f8229 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -43,7 +43,7 @@ services: <<: *base_service profiles: ["invoke"] build: ./services/invoke/ - image: sd-invoke:23 + image: sd-invoke:24 environment: - PRELOAD=true - CLI_ARGS= diff --git a/services/invoke/Dockerfile b/services/invoke/Dockerfile index 8c4aee3..b07fb20 100644 --- a/services/invoke/Dockerfile +++ b/services/invoke/Dockerfile @@ -41,16 +41,13 @@ ln -sf opencv4.pc opencv.pc EOF -ARG BRANCH=main SHA=6551527fe249dc7a44e3fab9db9451c0dc3ad851 +ARG BRANCH=main SHA=d3c1b747ee1632c6fab81ba9f89314e9fbdd55e4 RUN --mount=type=cache,target=/root/.cache/pip < req.txt -# pip install -r req.txt -# rm req.txt EOF @@ -63,7 +60,6 @@ RUN --mount=type=cache,target=/root/.cache/pip \ RUN touch invokeai.init COPY . /docker/ -# mkdir configs && cp invokeai/configs/INITIAL_MODELS.yaml configs/models.yaml ENV PYTHONUNBUFFERED=1 ROOT=/stable-diffusion PYTHONPATH="${PYTHONPATH}:${ROOT}" PRELOAD=false CLI_ARGS="" HF_HOME=/root/.cache/huggingface EXPOSE 7860 diff --git a/services/invoke/models.yaml b/services/invoke/models.yaml index c631164..0efe34e 100644 --- a/services/invoke/models.yaml +++ b/services/invoke/models.yaml @@ -9,7 +9,7 @@ stable-diffusion-1.5: description: Stable Diffusion version 1.5 weights: /data/StableDiffusion/v1-5-pruned-emaonly.ckpt vae: /data/VAE/vae-ft-mse-840000-ema-pruned.ckpt - config: /stable-diffusion/invokeai/configs/stable-diffusion/v1-inference.yaml + config: ./invokeai/configs/stable-diffusion/v1-inference.yaml width: 512 height: 512 default: true @@ -17,7 +17,7 @@ inpainting-1.5: description: RunwayML SD 1.5 model optimized for inpainting weights: /data/StableDiffusion/sd-v1-5-inpainting.ckpt vae: /data/VAE/vae-ft-mse-840000-ema-pruned.ckpt - config: /stable-diffusion/invokeai/configs/stable-diffusion/v1-inpainting-inference.yaml + config: ./invokeai/configs/stable-diffusion/v1-inpainting-inference.yaml width: 512 height: 512 default: false