MCPcopy Index your code
hub / github.com/vladmandic/sdnext / postprocess_batch

Method postprocess_batch

modules/scripts_manager.py:720–730  ·  view source on GitHub ↗
(self, p: StableDiffusionProcessing, images, **kwargs)

Source from the content-addressed store, hash-verified

718 s.report()
719
720 def postprocess_batch(self, p: StableDiffusionProcessing, images, **kwargs):
721 s = ScriptSummary('postprocess-batch')
722 for script in self.alwayson_scripts:
723 try:
724 if hasattr(script, 'args_to') and hasattr(script, 'args_from') and (script.args_to > 0) and (script.args_to >= script.args_from):
725 args = p.per_script_args.get(script.title(), p.script_args[script.args_from:script.args_to])
726 script.postprocess_batch(p, *args, images=images, **kwargs)
727 except Exception as e:
728 errors.display(e, f'Running script before postprocess batch: {script.filename}')
729 s.record(script.title())
730 s.report()
731
732 def postprocess_batch_list(self, p: StableDiffusionProcessing, pp: PostprocessBatchListArgs, **kwargs):
733 s = ScriptSummary('postprocess-batch-list')

Callers

nothing calls this directly

Calls 7

recordMethod · 0.95
reportMethod · 0.95
ScriptSummaryClass · 0.85
getMethod · 0.45
titleMethod · 0.45
postprocess_batchMethod · 0.45
displayMethod · 0.45

Tested by

no test coverage detected