MCPcopy Index your code
hub / github.com/AUTOMATIC1111/stable-diffusion-webui / before_process_batch

Method before_process_batch

modules/scripts.py:844–850  ·  view source on GitHub ↗
(self, p, **kwargs)

Source from the content-addressed store, hash-verified

842 errors.report(f"Error running process_before_every_sampling: {script.filename}", exc_info=True)
843
844 def before_process_batch(self, p, **kwargs):
845 for script in self.ordered_scripts('before_process_batch'):
846 try:
847 script_args = p.script_args[script.args_from:script.args_to]
848 script.before_process_batch(p, *script_args, **kwargs)
849 except Exception:
850 errors.report(f"Error running before_process_batch: {script.filename}", exc_info=True)
851
852 def after_extra_networks_activate(self, p, **kwargs):
853 for script in self.ordered_scripts('after_extra_networks_activate'):

Callers

nothing calls this directly

Calls 2

ordered_scriptsMethod · 0.95
before_process_batchMethod · 0.45

Tested by

no test coverage detected