Download Matrix-Game/Matrix-Game-2/wan/vae/wrapper.py from BonanDing/worldmem-baseline-evals: direct link, hf CLI and curl.
- Browser
- Download file 370 Bytes
-
https://huggingface.co/BonanDing/worldmem-baseline-evals/resolve/main/Matrix-Game/Matrix-Game-2/wan/vae/wrapper.py
- Command line
-
hf download hf://BonanDing/worldmem-baseline-evals/Matrix-Game/Matrix-Game-2/wan/vae/wrapper.py
-
curl -L -o wrapper.py https://huggingface.co/BonanDing/worldmem-baseline-evals/resolve/main/Matrix-Game/Matrix-Game-2/wan/vae/wrapper.py
370 Bytes
| class VAEWrapper(): | |
| def __init__(self, vae): | |
| self.vae = vae | |
| def __getattr__(self, name): | |
| if name in self.__dict__: | |
| return self.__dict__[name] | |
| else: | |
| return getattr(self.vae, name) | |
| def encode(self, x): | |
| raise NotImplementedError | |
| def decode(self, latents): | |
| return NotImplementedError |