From 67b7f80f69c00a5e54e20f82b629e3c44eafbef9 Mon Sep 17 00:00:00 2001 From: Uminosachi <49424133+Uminosachi@users.noreply.github.com> Date: Sun, 9 Jun 2024 16:41:32 +0900 Subject: [PATCH] Allow combination of SDXL model and SDXL VAE --- scripts/inpaint_anything.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/inpaint_anything.py b/scripts/inpaint_anything.py index 5dc1786..b4f5cfd 100644 --- a/scripts/inpaint_anything.py +++ b/scripts/inpaint_anything.py @@ -746,7 +746,7 @@ def run_webui_inpaint(input_image, sel_mask, ia_logging.error("The sizes of the image and mask do not match") return - if "sdxl_vae" in getattr(shared.opts, "sd_vae", ""): + if not getattr(shared.sd_model, "is_sdxl", False) and "sdxl_vae" in getattr(shared.opts, "sd_vae", ""): ia_logging.error("The SDXL VAE is not compatible with the inpainting model") ret_image = draw_text_image( input_image, "The SDXL VAE is not compatible with the inpainting model")