mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 00:34:33 +02:00
error handle vae decode
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -141,7 +141,10 @@ def full_vae_decode(latents, model):
|
||||
log_debug(f'VAE config: {model.vae.config}')
|
||||
try:
|
||||
with devices.inference_context():
|
||||
decoded = model.vae.decode(latents, return_dict=False)[0]
|
||||
decoded = model.vae.decode(latents, return_dict=False)
|
||||
if decoded is None or len(decoded) == 0:
|
||||
raise RuntimeError('returned no data')
|
||||
decoded = decoded[0]
|
||||
except Exception as e:
|
||||
log.error(f'VAE decode: {e}')
|
||||
if 'out of memory' not in str(e) and 'no data' not in str(e):
|
||||
|
||||
Reference in New Issue
Block a user