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

Method before_process_batch

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

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

Callers 2

before_process_batchMethod · 0.45
process_images_innerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected