(self, p: StableDiffusionProcessing, **kwargs)
| 694 | s.report() |
| 695 | |
| 696 | def process_batch(self, p: StableDiffusionProcessing, **kwargs): |
| 697 | s = ScriptSummary('process-batch') |
| 698 | for script in self.alwayson_scripts: |
| 699 | try: |
| 700 | if hasattr(script, 'args_to') and hasattr(script, 'args_from') and (script.args_to > 0) and (script.args_to >= script.args_from): |
| 701 | args = p.per_script_args.get(script.title(), p.script_args[script.args_from:script.args_to]) |
| 702 | script.process_batch(p, *args, **kwargs) |
| 703 | except Exception as e: |
| 704 | errors.display(e, f'Running script process batch: {script.filename}') |
| 705 | s.record(script.title()) |
| 706 | s.report() |
| 707 | |
| 708 | def postprocess(self, p: StableDiffusionProcessing, processed): |
| 709 | s = ScriptSummary('postprocess') |
nothing calls this directly
no test coverage detected