MCPcopy Create free account
hub / github.com/dek924/PerX2CT / __init__

Method __init__

taming/modules/diffusionmodules/model.py:39–47  ·  view source on GitHub ↗
(self, in_channels, with_conv)

Source from the content-addressed store, hash-verified

37
38class Upsample(nn.Module):
39 def __init__(self, in_channels, with_conv):
40 super().__init__()
41 self.with_conv = with_conv
42 if self.with_conv:
43 self.conv = torch.nn.Conv2d(in_channels,
44 in_channels,
45 kernel_size=3,
46 stride=1,
47 padding=1)
48
49 def forward(self, x):
50 x = torch.nn.functional.interpolate(x, scale_factor=2.0, mode="nearest")

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected