mirror of
https://github.com/vladmandic/automatic
synced 2026-09-17 08:19:11 +02:00
Fix model archs with no VAE
This commit is contained in:
@@ -595,8 +595,10 @@ def process_diffusers(p: processing.StableDiffusionProcessing):
|
||||
if not hasattr(output, 'images') and hasattr(output, 'frames'):
|
||||
shared.log.debug(f'Generated: frames={len(output.frames[0])}')
|
||||
output.images = output.frames[0]
|
||||
if output.images is not None and len(output.images) > 0:
|
||||
if hasattr(shared.sd_model, "vae") and output.images is not None and len(output.images) > 0:
|
||||
results = processing_vae.vae_decode(latents=output.images, model=shared.sd_model, full_quality=p.full_quality)
|
||||
elif hasattr(output, 'images'):
|
||||
results = output.images
|
||||
else:
|
||||
shared.log.warning('Processing returned no results')
|
||||
results = []
|
||||
|
||||
@@ -184,7 +184,7 @@ class EmbeddingDatabase:
|
||||
if ext.upper() not in exts:
|
||||
raise ValueError(f'extension `{ext}` is invalid, expected one of: {exts}')
|
||||
if name in tokenizer_vocab:
|
||||
raise ValueError(f'invalid embedding name (cannot exist in vocab.json)')
|
||||
raise ValueError('invalid embedding name (cannot exist in vocab.json)')
|
||||
embeddings_to_load.append(embedding)
|
||||
except Exception as e:
|
||||
skipped_embeddings.append(embedding)
|
||||
|
||||
Reference in New Issue
Block a user