(self, p: StableDiffusionProcessing, images, **kwargs)
| 718 | s.report() |
| 719 | |
| 720 | def postprocess_batch(self, p: StableDiffusionProcessing, images, **kwargs): |
| 721 | s = ScriptSummary('postprocess-batch') |
| 722 | for script in self.alwayson_scripts: |
| 723 | try: |
| 724 | if hasattr(script, 'args_to') and hasattr(script, 'args_from') and (script.args_to > 0) and (script.args_to >= script.args_from): |
| 725 | args = p.per_script_args.get(script.title(), p.script_args[script.args_from:script.args_to]) |
| 726 | script.postprocess_batch(p, *args, images=images, **kwargs) |
| 727 | except Exception as e: |
| 728 | errors.display(e, f'Running script before postprocess batch: {script.filename}') |
| 729 | s.record(script.title()) |
| 730 | s.report() |
| 731 | |
| 732 | def postprocess_batch_list(self, p: StableDiffusionProcessing, pp: PostprocessBatchListArgs, **kwargs): |
| 733 | s = ScriptSummary('postprocess-batch-list') |
nothing calls this directly
no test coverage detected