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

Method decode

wan/models/wan_vae.py:691–696  ·  view source on GitHub ↗
(self, z: torch.Tensor, return_dict: bool = True)

Source from the content-addressed store, hash-verified

689
690 @apply_forward_hook
691 def decode(self, z: torch.Tensor, return_dict: bool = True) -> Union[DecoderOutput, torch.Tensor]:
692 decoded = self._decode(z).sample
693
694 if not return_dict:
695 return (decoded,)
696 return DecoderOutput(sample=decoded)
697
698 @classmethod
699 def from_pretrained(cls, pretrained_model_path, additional_kwargs={}):

Callers 6

_decodeMethod · 0.45
_decodeMethod · 0.45
decode_latentsMethod · 0.45
decode_latentsMethod · 0.45
decode_latentsMethod · 0.45
decode_latentsMethod · 0.45

Calls 2

_decodeMethod · 0.95
DecoderOutputClass · 0.90

Tested by

no test coverage detected