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

Method __init__

diffsynth/models/sd_unet.py:7–9  ·  view source on GitHub ↗
(self, num_channels)

Source from the content-addressed store, hash-verified

5
6class Timesteps(torch.nn.Module):
7 def __init__(self, num_channels):
8 super().__init__()
9 self.num_channels = num_channels
10
11 def forward(self, timesteps):
12 half_dim = self.num_channels // 2

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected