MCPcopy Create free account
hub / github.com/modelscope/DiffSynth-Studio / decode_image

Method decode_image

diffsynth/pipelines/sd_image.py:75–78  ·  view source on GitHub ↗
(self, latent, tiled=False, tile_size=64, tile_stride=32)

Source from the content-addressed store, hash-verified

73
74
75 def decode_image(self, latent, tiled=False, tile_size=64, tile_stride=32):
76 image = self.vae_decoder(latent.to(self.device), tiled=tiled, tile_size=tile_size, tile_stride=tile_stride)
77 image = self.vae_output_to_image(image)
78 return image
79
80
81 def encode_prompt(self, prompt, clip_skip=1, positive=True):

Callers 3

__call__Method · 0.95
decode_videoMethod · 0.45
decode_videoMethod · 0.45

Calls 2

toMethod · 0.45
vae_output_to_imageMethod · 0.45

Tested by

no test coverage detected