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

Method postprocess_image

modules/scripts_manager.py:744–754  ·  view source on GitHub ↗
(self, p: StableDiffusionProcessing, pp: PostprocessImageArgs)

Source from the content-addressed store, hash-verified

742 s.report()
743
744 def postprocess_image(self, p: StableDiffusionProcessing, pp: PostprocessImageArgs):
745 s = ScriptSummary('postprocess-image')
746 for script in self.alwayson_scripts:
747 try:
748 if hasattr(script, 'args_to') and hasattr(script, 'args_from') and (script.args_to > 0) and (script.args_to >= script.args_from):
749 args = p.per_script_args.get(script.title(), p.script_args[script.args_from:script.args_to])
750 script.postprocess_image(p, pp, *args)
751 except Exception as e:
752 errors.display(e, f'Running script postprocess image: {script.filename}')
753 s.record(script.title())
754 s.report()
755
756 def before_component(self, component: IOComponent, **kwargs):
757 if component is None or isinstance(component, gr.Blocks):

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected