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

Method process_batch

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

Source from the content-addressed store, hash-verified

694 s.report()
695
696 def process_batch(self, p: StableDiffusionProcessing, **kwargs):
697 s = ScriptSummary('process-batch')
698 for script in self.alwayson_scripts:
699 try:
700 if hasattr(script, 'args_to') and hasattr(script, 'args_from') and (script.args_to > 0) and (script.args_to >= script.args_from):
701 args = p.per_script_args.get(script.title(), p.script_args[script.args_from:script.args_to])
702 script.process_batch(p, *args, **kwargs)
703 except Exception as e:
704 errors.display(e, f'Running script process batch: {script.filename}')
705 s.record(script.title())
706 s.report()
707
708 def postprocess(self, p: StableDiffusionProcessing, processed):
709 s = ScriptSummary('postprocess')

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected