Method
__init__
(self,
vae_name = 'REPA-E/e2e-invae', # Name of the VAE to use.
batch_size = 8, # Batch size to use when running the VAE.
)
Source from the content-addressed store, hash-verified
| 54 | @persistence.persistent_class |
| 55 | class InvaeEncoder(Encoder): |
| 56 | def __init__(self, |
| 57 | vae_name = 'REPA-E/e2e-invae', # Name of the VAE to use. |
| 58 | batch_size = 8, # Batch size to use when running the VAE. |
| 59 | ): |
| 60 | super().__init__() |
| 61 | self.vae_name = vae_name |
| 62 | self.batch_size = int(batch_size) |
| 63 | self._vae = None |
| 64 | |
| 65 | def init(self, device): # force lazy init to happen now |
| 66 | super().init(device) |
Callers
nothing calls this directly
Tested by
no test coverage detected