fix samples check

Signed-off-by: Vladimir Mandic <mandic00@live.com>
pull/4349/head^2
Vladimir Mandic 2025-11-02 06:18:32 -05:00
parent be44dbbcab
commit 558d2f0f02
2 changed files with 6 additions and 7 deletions

View File

@ -307,16 +307,15 @@ def process_samples(p: StableDiffusionProcessing, samples):
info = create_infotext(p, p.prompts, p.seeds, p.subseeds, index=i)
images.save_image(Image.fromarray(sample), path=p.outpath_samples, basename="", seed=p.seeds[i], prompt=p.prompts[i], extension=shared.opts.samples_format, info=info, p=p, suffix="-before-detailer")
sample = detailer.detail(sample, p)
if sample is not None:
if isinstance(sample, list) and len(sample) > 1:
if isinstance(sample, list):
if len(sample) > 0:
image = Image.fromarray(sample[0])
if len(sample) > 1:
annotated = Image.fromarray(sample[1])
out_images.append(annotated)
out_infotexts.append("Detailer annotations")
elif isinstance(sample, list):
image = Image.fromarray(sample[0])
else:
image = Image.fromarray(sample)
elif sample is not None:
image = Image.fromarray(sample)
if p.color_corrections is not None and i < len(p.color_corrections):
p.ops.append('color')

2
wiki

@ -1 +1 @@
Subproject commit 213bdc836534bc29ed353dc89b5b582e455a9bf5
Subproject commit 6fc0696770923e78e1ae07cb849942568ec11dde