(self, p: StableDiffusionProcessing, **kwargs)
| 642 | return processed |
| 643 | |
| 644 | def before_process(self, p: StableDiffusionProcessing, **kwargs): |
| 645 | s = ScriptSummary('before-process') |
| 646 | for script in self.alwayson_scripts: |
| 647 | try: |
| 648 | if hasattr(script, 'args_to') and hasattr(script, 'args_from') and (script.args_to > 0) and (script.args_to >= script.args_from): |
| 649 | args = p.per_script_args.get(script.title(), p.script_args[script.args_from:script.args_to]) |
| 650 | script.before_process(p, *args, **kwargs) |
| 651 | except Exception as e: |
| 652 | errors.display(e, f"Error running before process: {script.filename}") |
| 653 | s.record(script.title()) |
| 654 | s.report() |
| 655 | |
| 656 | def process(self, p: StableDiffusionProcessing, **kwargs): |
| 657 | s = ScriptSummary('process') |
nothing calls this directly
no test coverage detected