MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / forward

Method forward

src/diffusers/models/embeddings.py:247–254  ·  view source on GitHub ↗
(self, timesteps)

Source from the content-addressed store, hash-verified

245 self.downscale_freq_shift = downscale_freq_shift
246
247 def forward(self, timesteps):
248 t_emb = get_timestep_embedding(
249 timesteps,
250 self.num_channels,
251 flip_sin_to_cos=self.flip_sin_to_cos,
252 downscale_freq_shift=self.downscale_freq_shift,
253 )
254 return t_emb
255
256
257class GaussianFourierProjection(nn.Module):

Callers

nothing calls this directly

Calls 1

get_timestep_embeddingFunction · 0.85

Tested by

no test coverage detected