MCPcopy
hub / github.com/MeiGen-AI/InfiniteTalk / encode

Method encode

wan/modules/vae.py:647–655  ·  view source on GitHub ↗

videos: A list of videos each with shape [C, T, H, W].

(self, videos)

Source from the content-addressed store, hash-verified

645 ).eval().requires_grad_(False).to(device)
646
647 def encode(self, videos):
648 """
649 videos: A list of videos each with shape [C, T, H, W].
650 """
651 with amp.autocast(dtype=self.dtype):
652 return [
653 self.model.encode(u.unsqueeze(0), self.scale).float().squeeze(0)
654 for u in videos
655 ]
656
657 def decode(self, zs):
658 with amp.autocast(dtype=self.dtype):

Callers 5

generateMethod · 0.45
generateMethod · 0.45
vace_encode_framesMethod · 0.45
generate_infinitetalkMethod · 0.45
forwardMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected