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

Method postprocess

modules/scripts_manager.py:708–718  ·  view source on GitHub ↗
(self, p: StableDiffusionProcessing, processed)

Source from the content-addressed store, hash-verified

706 s.report()
707
708 def postprocess(self, p: StableDiffusionProcessing, processed):
709 s = ScriptSummary('postprocess')
710 for script in self.alwayson_scripts:
711 try:
712 if hasattr(script, 'args_to') and hasattr(script, 'args_from') and (script.args_to > 0) and (script.args_to >= script.args_from):
713 args = p.per_script_args.get(script.title(), p.script_args[script.args_from:script.args_to])
714 script.postprocess(p, processed, *args)
715 except Exception as e:
716 errors.display(e, f'Running script postprocess: {script.filename}')
717 s.record(script.title())
718 s.report()
719
720 def postprocess_batch(self, p: StableDiffusionProcessing, images, **kwargs):
721 s = ScriptSummary('postprocess-batch')

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected