MCPcopy Create free account
hub / github.com/294coder/Dif-PAN / Upsample

Class Upsample

models/sr3.py:254–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252
253
254class Upsample(nn.Module):
255 def __init__(self, dim):
256 super().__init__()
257 self.up = nn.Upsample(scale_factor=2, mode="nearest")
258 self.conv = nn.Conv2d(dim, dim, 3, padding=1)
259
260 def forward(self, x):
261 return self.conv(self.up(x))
262
263
264class Downsample(nn.Module):

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected