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

Method process_batch

modules/scripts.py:197–208  ·  view source on GitHub ↗

Same as process(), but called for every batch. **kwargs will have those items: - batch_number - index of current batch, from 0 to number of batches-1 - prompts - list of prompts for current batch; you can change contents of this list but changing the number

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

Source from the content-addressed store, hash-verified

195 pass
196
197 def process_batch(self, p, *args, **kwargs):
198 """
199 Same as process(), but called for every batch.
200
201 **kwargs will have those items:
202 - batch_number - index of current batch, from 0 to number of batches-1
203 - prompts - list of prompts for current batch; you can change contents of this list but changing the number of entries will likely break things
204 - seeds - list of seeds for current batch
205 - subseeds - list of subseeds for current batch
206 """
207
208 pass
209
210 def postprocess_batch(self, p, *args, **kwargs):
211 """

Callers 2

process_batchMethod · 0.45
process_images_innerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected