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)
| 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 | """ |
no outgoing calls
no test coverage detected