MCPcopy Create free account
hub / github.com/OpenDriveLab/TCP / resnet18

Function resnet18

TCP/resnet.py:268–277  ·  view source on GitHub ↗

r"""ResNet-18 model from `"Deep Residual Learning for Image Recognition" `_. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet progress (bool): If True, displays a progress bar of the download to stderr

(pretrained: bool = False, progress: bool = True, **kwargs: Any)

Source from the content-addressed store, hash-verified

266
267
268def resnet18(pretrained: bool = False, progress: bool = True, **kwargs: Any) -> ResNet:
269 r"""ResNet-18 model from
270 `"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_.
271
272 Args:
273 pretrained (bool): If True, returns a model pre-trained on ImageNet
274 progress (bool): If True, displays a progress bar of the download to stderr
275 """
276 return _resnet('resnet18', BasicBlock, [2, 2, 2, 2], pretrained, progress,
277 **kwargs)
278
279
280def resnet34(pretrained: bool = False, progress: bool = True, **kwargs: Any) -> ResNet:

Callers

nothing calls this directly

Calls 1

_resnetFunction · 0.85

Tested by

no test coverage detected