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

Method __init__

models/networks.py:197–201  ·  view source on GitHub ↗
(self, pretrain=False)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected