From a1251c8e047d60eb33e764374b4674acf8772c4d Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Wed, 19 Jul 2023 13:30:00 -0400 Subject: [PATCH] fix inpaint model detection --- invokeai/backend/model_management/model_probe.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/invokeai/backend/model_management/model_probe.py b/invokeai/backend/model_management/model_probe.py index c8e33db393..6a65401675 100644 --- a/invokeai/backend/model_management/model_probe.py +++ b/invokeai/backend/model_management/model_probe.py @@ -39,6 +39,7 @@ class ModelProbe(object): CLASS2TYPE = { 'StableDiffusionPipeline' : ModelType.Main, + 'StableDiffusionInpaintPipeline' : ModelType.Main, 'StableDiffusionXLPipeline' : ModelType.Main, 'StableDiffusionXLImg2ImgPipeline' : ModelType.Main, 'AutoencoderKL' : ModelType.Vae, @@ -401,7 +402,7 @@ class PipelineFolderProbe(FolderProbeBase): in_channels = conf['in_channels'] if in_channels == 9: - return ModelVariantType.Inpainting + return ModelVariantType.Inpaint elif in_channels == 5: return ModelVariantType.Depth elif in_channels == 4: