MCPcopy Create free account
hub / github.com/CompVis/zigma / forward

Method forward

model_zigma.py:72–78  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

70 super().__init__(*args, **kwargs)
71
72 def forward(self, x):
73 B, T, C, H, W = x.shape
74 x = rearrange(x, "b t c h w -> (b t) c h w")
75 x = super().forward(x)
76 # (b t) n c
77 x = rearrange(x, "(b t) n c -> b (t n) c", t=T)
78 return x
79
80
81def exists(val):

Callers

nothing calls this directly

Calls 1

forwardMethod · 0.45

Tested by

no test coverage detected