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

Method process

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

Source from the content-addressed store, hash-verified

654 s.report()
655
656 def process(self, p: StableDiffusionProcessing, **kwargs):
657 s = ScriptSummary('process')
658 for script in self.alwayson_scripts:
659 try:
660 if hasattr(script, 'args_to') and hasattr(script, 'args_from') and (script.args_to > 0) and (script.args_to >= script.args_from):
661 args = p.per_script_args.get(script.title(), p.script_args[script.args_from:script.args_to])
662 script.process(p, *args, **kwargs)
663 except Exception as e:
664 errors.display(e, f'Running script process: {script.filename}')
665 s.record(script.title())
666 s.report()
667
668 def process_images(self, p: StableDiffusionProcessing, **kwargs):
669 s = ScriptSummary('process_images')

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected