MCPcopy Index your code
hub / github.com/vladmandic/sdnext / process_batch

Method process_batch

modules/scripts_manager.py:141–150  ·  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 of en

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

Source from the content-addressed store, hash-verified

139 pass # pylint: disable=unnecessary-pass
140
141 def process_batch(self, p: StableDiffusionProcessing, *args, **kwargs):
142 """
143 Same as process(), but called for every batch.
144 **kwargs will have those items:
145 - batch_number - index of current batch, from 0 to number of batches-1
146 - prompts - list of prompts for current batch; you can change contents of this list but changing the number of entries will likely break things
147 - seeds - list of seeds for current batch
148 - subseeds - list of subseeds for current batch
149 """
150 pass # pylint: disable=unnecessary-pass
151
152 def postprocess_batch(self, p: StableDiffusionProcessing, *args, **kwargs):
153 """

Callers 2

process_images_innerFunction · 0.45
process_batchMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected