mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix inpaint model detection
This commit is contained in:
parent
495df9fd1b
commit
a1251c8e04
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user