MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / __init__

Method __init__

diffusers/src/diffusers/models/embeddings.py:766–771  ·  view source on GitHub ↗
(self, num_channels: int, flip_sin_to_cos: bool, downscale_freq_shift: float, scale: int = 1)

Source from the content-addressed store, hash-verified

764
765class Timesteps(nn.Module):
766 def __init__(self, num_channels: int, flip_sin_to_cos: bool, downscale_freq_shift: float, scale: int = 1):
767 super().__init__()
768 self.num_channels = num_channels
769 self.flip_sin_to_cos = flip_sin_to_cos
770 self.downscale_freq_shift = downscale_freq_shift
771 self.scale = scale
772
773 def forward(self, timesteps):
774 t_emb = get_timestep_embedding(

Callers 15

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected