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

Method decode

examples/WanVSR/utils/TCDecoder.py:288–290  ·  view source on GitHub ↗
(self, latents, return_dict=None)

Source from the content-addressed store, hash-verified

286 self.config = DotDict(scaling_factor=1.0, latents_mean=torch.zeros(16), z_dim=16, latents_std=torch.ones(16))
287
288 def decode(self, latents, return_dict=None):
289 n, c, t, h, w = latents.shape
290 return (self.taehv.decode_video(latents.transpose(1, 2), parallel=False).transpose(1, 2).mul_(2).sub_(1),)
291
292 def stream_decode_with_cond(self, latents, tiled=False, cond=None):
293 n, c, t, h, w = latents.shape

Callers

nothing calls this directly

Calls 1

decode_videoMethod · 0.45

Tested by

no test coverage detected