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

Method encode_video

diffsynth/pipelines/wan_video.py:263–265  ·  view source on GitHub ↗
(self, input_video, tiled=True, tile_size=(34, 34), tile_stride=(18, 16))

Source from the content-addressed store, hash-verified

261
262
263 def encode_video(self, input_video, tiled=True, tile_size=(34, 34), tile_stride=(18, 16)):
264 latents = self.vae.encode(input_video, device=self.device, tiled=tiled, tile_size=tile_size, tile_stride=tile_stride)
265 return latents
266
267
268 def decode_video(self, latents, tiled=True, tile_size=(34, 34), tile_stride=(18, 16)):

Callers 3

encode_control_videoMethod · 0.95
prepare_vace_kwargsMethod · 0.95
__call__Method · 0.95

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected