Download One-to-All-Animation/video-generation/opensora/vae_variants/wrapper.py from SignerX/StableSigner: direct link, hf CLI and curl.
- Browser
- Download file 370 Bytes
-
https://huggingface.co/datasets/SignerX/StableSigner/resolve/main/One-to-All-Animation/video-generation/opensora/vae_variants/wrapper.py
- Command line
-
hf download hf://datasets/SignerX/StableSigner/One-to-All-Animation/video-generation/opensora/vae_variants/wrapper.py
-
curl -L -o wrapper.py https://huggingface.co/datasets/SignerX/StableSigner/resolve/main/One-to-All-Animation/video-generation/opensora/vae_variants/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 |