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

Function wide_resnet101_2

TCP/resnet.py:374–389  ·  view source on GitHub ↗

r"""Wide ResNet-101-2 model from `"Wide Residual Networks" `_. The model is the same as ResNet except for the bottleneck number of channels which is twice larger in every block. The number of channels in outer 1x1 convolutions is the same, e.g.

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

Source from the content-addressed store, hash-verified

372
373
374def wide_resnet101_2(pretrained: bool = False, progress: bool = True, **kwargs: Any) -> ResNet:
375 r"""Wide ResNet-101-2 model from
376 `"Wide Residual Networks" <https://arxiv.org/pdf/1605.07146.pdf>`_.
377
378 The model is the same as ResNet except for the bottleneck number of channels
379 which is twice larger in every block. The number of channels in outer 1x1
380 convolutions is the same, e.g. last block in ResNet-50 has 2048-512-2048
381 channels, and in Wide ResNet-50-2 has 2048-1024-2048.
382
383 Args:
384 pretrained (bool): If True, returns a model pre-trained on ImageNet
385 progress (bool): If True, displays a progress bar of the download to stderr
386 """
387 kwargs['width_per_group'] = 64 * 2
388 return _resnet('wide_resnet101_2', Bottleneck, [3, 4, 23, 3],
389 pretrained, progress, **kwargs)

Callers

nothing calls this directly

Calls 1

_resnetFunction · 0.85

Tested by

no test coverage detected