MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / forward

Method forward

diffsynth/models/step1x_connector.py:162–167  ·  view source on GitHub ↗
(self, t)

Source from the content-addressed store, hash-verified

160 return embedding
161
162 def forward(self, t):
163 t_freq = self.timestep_embedding(
164 t, self.frequency_embedding_size, self.max_period
165 ).type(self.mlp[0].weight.dtype) # type: ignore
166 t_emb = self.mlp(t_freq)
167 return t_emb
168
169
170def apply_gate(x, gate=None, tanh=False):

Callers

nothing calls this directly

Calls 1

timestep_embeddingMethod · 0.95

Tested by

no test coverage detected