(self, p: StableDiffusionProcessing, **kwargs)
| 666 | s.report() |
| 667 | |
| 668 | def process_images(self, p: StableDiffusionProcessing, **kwargs): |
| 669 | s = ScriptSummary('process_images') |
| 670 | processed = None |
| 671 | for script in self.alwayson_scripts: |
| 672 | try: |
| 673 | if hasattr(script, 'args_to') and hasattr(script, 'args_from') and (script.args_to > 0) and (script.args_to >= script.args_from): |
| 674 | args = p.per_script_args.get(script.title(), p.script_args[script.args_from:script.args_to]) |
| 675 | _processed = script.process_images(p, *args, **kwargs) |
| 676 | if _processed is not None: |
| 677 | processed = _processed |
| 678 | except Exception as e: |
| 679 | errors.display(e, f'Running script process images: {script.filename}') |
| 680 | s.record(script.title()) |
| 681 | s.report() |
| 682 | return processed |
| 683 | |
| 684 | def before_process_batch(self, p: StableDiffusionProcessing, **kwargs): |
| 685 | s = ScriptSummary('before-process-batch') |
nothing calls this directly
no test coverage detected