MCPcopy Create free account
hub / github.com/Francis-Rings/FlashPortrait / _encode

Method _encode

wan/models/wan_vae.py:801–807  ·  view source on GitHub ↗
(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

799 self.temperal_upsample = temperal_downsample[::-1]
800
801 def _encode(self, x: torch.Tensor) -> torch.Tensor:
802 x = [
803 self.model.encode(u.unsqueeze(0)).squeeze(0)
804 for u in x
805 ]
806 x = torch.stack(x)
807 return x
808
809 @apply_forward_hook
810 def encode(

Callers 1

encodeMethod · 0.95

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected