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