MCPcopy Create free account
hub / github.com/AUTOMATIC1111/stable-diffusion-webui / before_process_batch

Method before_process_batch

modules/scripts.py:161–173  ·  view source on GitHub ↗

Called before extra networks are parsed from the prompt, so you can add new extra network keywords to the prompt with this callback. **kwargs will have those items: - batch_number - index of current batch, from 0 to number of batches-1 - prompts -

(self, p, *args, **kwargs)

Source from the content-addressed store, hash-verified

159 pass
160
161 def before_process_batch(self, p, *args, **kwargs):
162 """
163 Called before extra networks are parsed from the prompt, so you can add
164 new extra network keywords to the prompt with this callback.
165
166 **kwargs will have those items:
167 - batch_number - index of current batch, from 0 to number of batches-1
168 - prompts - list of prompts for current batch; you can change contents of this list but changing the number of entries will likely break things
169 - seeds - list of seeds for current batch
170 - subseeds - list of subseeds for current batch
171 """
172
173 pass
174
175 def after_extra_networks_activate(self, p, *args, **kwargs):
176 """

Callers 2

before_process_batchMethod · 0.45
process_images_innerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected