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

Method __init__

diffsynth/models/sd_unet.py:84–86  ·  view source on GitHub ↗
(self, channels)

Source from the content-addressed store, hash-verified

82
83class UpSampler(torch.nn.Module):
84 def __init__(self, channels):
85 super().__init__()
86 self.conv = torch.nn.Conv2d(channels, channels, 3, padding=1)
87
88 def forward(self, hidden_states, time_emb, text_emb, res_stack, **kwargs):
89 hidden_states = torch.nn.functional.interpolate(hidden_states, scale_factor=2.0, mode="nearest")

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected