(self, p: StableDiffusionProcessing, pp: PostprocessImageArgs)
| 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): |
nothing calls this directly
no test coverage detected