MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / encode_image

Method encode_image

diffsynth/pipelines/flux_image.py:194–196  ·  view source on GitHub ↗
(self, image, tiled=False, tile_size=64, tile_stride=32)

Source from the content-addressed store, hash-verified

192
193
194 def encode_image(self, image, tiled=False, tile_size=64, tile_stride=32):
195 latents = self.vae_encoder(image, tiled=tiled, tile_size=tile_size, tile_stride=tile_stride)
196 return latents
197
198
199 def decode_image(self, latent, tiled=False, tile_size=64, tile_stride=32):

Callers 4

prepare_latentsMethod · 0.95
prepare_flex_kwargsMethod · 0.95
prepare_step1x_kwargsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected