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

Method forward

diffsynth/models/stepvideo_dit.py:153–160  ·  view source on GitHub ↗
(self, timesteps)

Source from the content-addressed store, hash-verified

151 self.downscale_freq_shift = downscale_freq_shift
152
153 def forward(self, timesteps):
154 t_emb = get_timestep_embedding(
155 timesteps,
156 self.num_channels,
157 flip_sin_to_cos=self.flip_sin_to_cos,
158 downscale_freq_shift=self.downscale_freq_shift,
159 )
160 return t_emb
161
162
163class TimestepEmbedding(nn.Module):

Callers

nothing calls this directly

Calls 1

get_timestep_embeddingFunction · 0.70

Tested by

no test coverage detected