MCPcopy Create free account
hub / github.com/thygate/stable-diffusion-webui-depthmap-script / resnet50

Function resnet50

lib/Resnet.py:173–180  ·  view source on GitHub ↗

Constructs a ResNet-50 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet

(pretrained=True, **kwargs)

Source from the content-addressed store, hash-verified

171
172
173def resnet50(pretrained=True, **kwargs):
174 """Constructs a ResNet-50 model.
175 Args:
176 pretrained (bool): If True, returns a model pre-trained on ImageNet
177 """
178 model = ResNet(Bottleneck, [3, 4, 6, 3], **kwargs)
179
180 return model
181
182
183def resnet101(pretrained=True, **kwargs):

Callers

nothing calls this directly

Calls 1

ResNetClass · 0.70

Tested by

no test coverage detected