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

Function resnet18

lib/Resnet.py:155–161  ·  view source on GitHub ↗

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

(pretrained=True, **kwargs)

Source from the content-addressed store, hash-verified

153
154
155def resnet18(pretrained=True, **kwargs):
156 """Constructs a ResNet-18 model.
157 Args:
158 pretrained (bool): If True, returns a model pre-trained on ImageNet
159 """
160 model = ResNet(BasicBlock, [2, 2, 2, 2], **kwargs)
161 return model
162
163
164def resnet34(pretrained=True, **kwargs):

Callers

nothing calls this directly

Calls 1

ResNetClass · 0.70

Tested by

no test coverage detected