fix inpaint model detection

This commit is contained in:
Lincoln Stein 2023-07-19 13:30:00 -04:00
parent 495df9fd1b
commit a1251c8e04

View File

@ -39,6 +39,7 @@ class ModelProbe(object):
CLASS2TYPE = { CLASS2TYPE = {
'StableDiffusionPipeline' : ModelType.Main, 'StableDiffusionPipeline' : ModelType.Main,
'StableDiffusionInpaintPipeline' : ModelType.Main,
'StableDiffusionXLPipeline' : ModelType.Main, 'StableDiffusionXLPipeline' : ModelType.Main,
'StableDiffusionXLImg2ImgPipeline' : ModelType.Main, 'StableDiffusionXLImg2ImgPipeline' : ModelType.Main,
'AutoencoderKL' : ModelType.Vae, 'AutoencoderKL' : ModelType.Vae,
@ -401,7 +402,7 @@ class PipelineFolderProbe(FolderProbeBase):
in_channels = conf['in_channels'] in_channels = conf['in_channels']
if in_channels == 9: if in_channels == 9:
return ModelVariantType.Inpainting return ModelVariantType.Inpaint
elif in_channels == 5: elif in_channels == 5:
return ModelVariantType.Depth return ModelVariantType.Depth
elif in_channels == 4: elif in_channels == 4: