change process_one virtual function for script to process_batch, add extra args and docs

This commit is contained in:
AUTOMATIC
2022-11-04 11:21:40 +03:00
parent 99043f3360
commit eeb0733013
2 changed files with 12 additions and 6 deletions

View File

@@ -502,7 +502,7 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
break
if p.scripts is not None:
p.scripts.process_one(p, n)
p.scripts.process_batch(p, batch_number=n, prompts=prompts, seeds=seeds, subseeds=subseeds)
with devices.autocast():
uc = prompt_parser.get_learned_conditioning(shared.sd_model, len(prompts) * [p.negative_prompt], p.steps)