MCPcopy Create free account
hub / github.com/DenOfEquity/ersatzForge / process_batch

Method process_batch

modules/scripts.py:201–212  ·  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

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

Callers 2

process_batchMethod · 0.45
process_images_innerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected