Same as postprocess_batch(), but receives batch images as a list of 3D tensors instead of a 4D tensor. This is useful when you want to update the entire batch instead of individual images. You can modify the postprocessing object (pp) to update the images in the batch, remov
(self, p: StableDiffusionProcessing, pp: PostprocessBatchListArgs, *args, **kwargs)
| 165 | pass # pylint: disable=unnecessary-pass |
| 166 | |
| 167 | def postprocess_batch_list(self, p: StableDiffusionProcessing, pp: PostprocessBatchListArgs, *args, **kwargs): |
| 168 | """ |
| 169 | Same as postprocess_batch(), but receives batch images as a list of 3D tensors instead of a 4D tensor. |
| 170 | This is useful when you want to update the entire batch instead of individual images. |
| 171 | You can modify the postprocessing object (pp) to update the images in the batch, remove images, add images, etc. |
| 172 | If the number of images is different from the batch size when returning, |
| 173 | then the script has the responsibility to also update the following attributes in the processing object (p): |
| 174 | - p.prompts |
| 175 | - p.negative_prompts |
| 176 | - p.seeds |
| 177 | - p.subseeds |
| 178 | **kwargs will have same items as process_batch, and also: |
| 179 | - batch_number - index of current batch, from 0 to number of batches-1 |
| 180 | """ |
| 181 | pass # pylint: disable=unnecessary-pass |
| 182 | |
| 183 | def postprocess(self, p: StableDiffusionProcessing, processed, *args): |
| 184 | """ |
no outgoing calls
no test coverage detected