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

Method decode

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

Source from the content-addressed store, hash-verified

829
830 @apply_forward_hook
831 def decode(self, z: torch.Tensor, return_dict: bool = True) -> Union[DecoderOutput, torch.Tensor]:
832 decoded = self._decode(z).sample
833
834 if not return_dict:
835 return (decoded,)
836 return DecoderOutput(sample=decoded)
837
838 @classmethod
839 def from_pretrained(cls, pretrained_model_path, additional_kwargs={}):

Callers

nothing calls this directly

Calls 2

_decodeMethod · 0.95
DecoderOutputClass · 0.90

Tested by

no test coverage detected