add support for json configs per model component

This commit is contained in:
Vladimir Mandic
2024-02-28 15:12:05 -05:00
parent db22bd5440
commit 4b911ea822
7 changed files with 107 additions and 8 deletions
+1 -1
View File
@@ -229,7 +229,7 @@ def process_diffusers(p: processing.StableDiffusionProcessing):
if 'latents' in possible and getattr(p, "init_latent", None) is not None:
args['latents'] = p.init_latent
if 'output_type' in possible:
if hasattr(model, 'vae'):
if not hasattr(model, 'vae'):
args['output_type'] = 'np' # only set latent if model has vae
# stable cascade