From 63a180be134c4aabeea4cc3f288815503239c74f Mon Sep 17 00:00:00 2001 From: vladmandic Date: Mon, 24 Nov 2025 10:21:44 -0500 Subject: [PATCH] fix output none Signed-off-by: vladmandic --- modules/processing_diffusers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/processing_diffusers.py b/modules/processing_diffusers.py index f9b552fd0..c5e0ebb06 100644 --- a/modules/processing_diffusers.py +++ b/modules/processing_diffusers.py @@ -178,7 +178,6 @@ def process_base(p: processing.StableDiffusionProcessing): else: taskid = shared.state.begin('Inference') output = shared.sd_model(**base_args) - output = None shared.state.end(taskid) if isinstance(output, dict): output = SimpleNamespace(**output) @@ -445,7 +444,7 @@ def process_decode(p: processing.StableDiffusionProcessing, output): if not hasattr(model, 'vae'): if hasattr(model, 'pipe') and hasattr(model.pipe, 'vae'): model = model.pipe - if (hasattr(model, "vae") or hasattr(model, "vqgan")) and output.images is not None and len(output.images) > 0: + if (hasattr(model, "vae") or hasattr(model, "vqgan")) and (output.images is not None) and (len(output.images) > 0): if p.hr_resize_mode > 0 and (p.hr_upscaler != 'None' or p.hr_resize_mode == 5): width = max(getattr(p, 'width', 0), getattr(p, 'hr_upscale_to_x', 0)) height = max(getattr(p, 'height', 0), getattr(p, 'hr_upscale_to_y', 0))