Allow combination of SDXL model and SDXL VAE

main
Uminosachi 2024-06-09 16:41:32 +09:00
parent b7e105a6a9
commit 67b7f80f69
1 changed files with 1 additions and 1 deletions

View File

@ -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")