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

Method postprocess_batch

modules/scripts_manager.py:152–159  ·  view source on GitHub ↗

Same as process_batch(), but called for every batch after it has been generated. **kwargs will have same items as process_batch, and also: - batch_number - index of current batch, from 0 to number of batches-1 - images - torch tensor with all generated images, wi

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

Source from the content-addressed store, hash-verified

150 pass # pylint: disable=unnecessary-pass
151
152 def postprocess_batch(self, p: StableDiffusionProcessing, *args, **kwargs):
153 """
154 Same as process_batch(), but called for every batch after it has been generated.
155 **kwargs will have same items as process_batch, and also:
156 - batch_number - index of current batch, from 0 to number of batches-1
157 - images - torch tensor with all generated images, with values ranging from 0 to 1;
158 """
159 pass # pylint: disable=unnecessary-pass
160
161 def postprocess_image(self, p: StableDiffusionProcessing, pp: PostprocessImageArgs, *args):
162 """

Callers 2

process_images_innerFunction · 0.45
postprocess_batchMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected