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

Function wide_resnet50_2

TCP/resnet.py:356–371  ·  view source on GitHub ↗

r"""Wide ResNet-50-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. l

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

Source from the content-addressed store, hash-verified

354
355
356def wide_resnet50_2(pretrained: bool = False, progress: bool = True, **kwargs: Any) -> ResNet:
357 r"""Wide ResNet-50-2 model from
358 `"Wide Residual Networks" <https://arxiv.org/pdf/1605.07146.pdf>`_.
359
360 The model is the same as ResNet except for the bottleneck number of channels
361 which is twice larger in every block. The number of channels in outer 1x1
362 convolutions is the same, e.g. last block in ResNet-50 has 2048-512-2048
363 channels, and in Wide ResNet-50-2 has 2048-1024-2048.
364
365 Args:
366 pretrained (bool): If True, returns a model pre-trained on ImageNet
367 progress (bool): If True, displays a progress bar of the download to stderr
368 """
369 kwargs['width_per_group'] = 64 * 2
370 return _resnet('wide_resnet50_2', Bottleneck, [3, 4, 6, 3],
371 pretrained, progress, **kwargs)
372
373
374def wide_resnet101_2(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