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

Method __init__

models/unet_model_google.py:73–77  ·  view source on GitHub ↗
(self, dim, save_fm=False)

Source from the content-addressed store, hash-verified

71
72class Upsample(nn.Module):
73 def __init__(self, dim, save_fm=False):
74 super().__init__()
75 self.up = nn.Upsample(scale_factor=2, mode="nearest")
76 self.conv = nn.Conv2d(dim, dim, 3, padding=1)
77 self.save_fm = save_fm
78
79 def forward(self, x):
80 x = self.conv(self.up(x))

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected