1
0
mirror of https://github.com/vladmandic/sdnext.git synced 2026-01-27 15:02:48 +03:00

fix output none

Signed-off-by: vladmandic <mandic00@live.com>
This commit is contained in:
vladmandic
2025-11-24 10:21:44 -05:00
parent 33913825b0
commit 63a180be13

View File

@@ -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))