MCPcopy Create free account
hub / github.com/Relento/lego_release / SimpleResNetEncoder4

Class SimpleResNetEncoder4

models/networks.py:196–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194
195
196class SimpleResNetEncoder4(nn.Module):
197 def __init__(self, pretrain=False):
198 super().__init__()
199 self.resnet_fpn = resnet_fpn_backbone('resnet34', pretrained=pretrain,
200 norm_layer=None, returned_layers=[1, 2],
201 trainable_layers=5)
202
203 def forward(self, x):
204 x = self.resnet_fpn(x)
205 return x['0']
206
207
208def conv2d(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected