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

Method __init__

x2ct_nerf/modules/image_encoder/resnet.py:256–261  ·  view source on GitHub ↗
(self, pretrained=True, in_channels=3, out_channels=1, latent_dim=128, input_img_size=320, **kwargs)

Source from the content-addressed store, hash-verified

254
255class ResNetAutoEncoder(nn.Module):
256 def __init__(self, pretrained=True, in_channels=3, out_channels=1, latent_dim=128, input_img_size=320, **kwargs):
257 super().__init__()
258 self.in_channels = in_channels
259 self.encoder = ResNetEncoder(pretrained=pretrained, in_channels=in_channels, latent_dim=latent_dim, input_img_size=input_img_size)
260 self.decoder = Decoder(in_channels=latent_dim, out_channels=out_channels)
261 self.transform = get_data_transform(in_channels=in_channels, input_img_size=input_img_size)
262
263 def forward(self, x):
264 x = self.encoder(x)

Callers

nothing calls this directly

Calls 4

get_data_transformFunction · 0.90
ResNetEncoderClass · 0.85
DecoderClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected