MCPcopy Create free account
hub / github.com/SwayStar123/SpeedrunDiT / __init__

Method __init__

preprocessing/encoders.py:56–63  ·  view source on GitHub ↗
(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
55class 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

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected