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

Method __init__

diffsynth/models/svd_unet.py:85–90  ·  view source on GitHub ↗
(self, num_channels: int, flip_sin_to_cos: bool, downscale_freq_shift: float, computation_device = None)

Source from the content-addressed store, hash-verified

83
84class TemporalTimesteps(torch.nn.Module):
85 def __init__(self, num_channels: int, flip_sin_to_cos: bool, downscale_freq_shift: float, computation_device = None):
86 super().__init__()
87 self.num_channels = num_channels
88 self.flip_sin_to_cos = flip_sin_to_cos
89 self.downscale_freq_shift = downscale_freq_shift
90 self.computation_device = computation_device
91
92 def forward(self, timesteps):
93 t_emb = get_timestep_embedding(

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected