MCPcopy Create free account
hub / github.com/AUTOMATIC1111/stable-diffusion-webui / post_sample

Method post_sample

modules/scripts.py:250–257  ·  view source on GitHub ↗

Called after the samples have been generated, but before they have been decoded by the VAE, if applicable. Check getattr(samples, 'already_decoded', False) to test if the images are decoded.

(self, p, ps: PostSampleArgs, *args)

Source from the content-addressed store, hash-verified

248 pass
249
250 def post_sample(self, p, ps: PostSampleArgs, *args):
251 """
252 Called after the samples have been generated,
253 but before they have been decoded by the VAE, if applicable.
254 Check getattr(samples, 'already_decoded', False) to test if the images are decoded.
255 """
256
257 pass
258
259 def postprocess_image(self, p, pp: PostprocessImageArgs, *args):
260 """

Callers 2

post_sampleMethod · 0.45
process_images_innerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected