resnet101¶
- paddle.vision.models. resnet101 ( pretrained=False, **kwargs ) [source]
-
ResNet 101-layer model from “Deep Residual Learning for Image Recognition”.
- Parameters
-
pretrained (bool, optional) – Whether to load pre-trained weights. If True, returns a model pre-trained on ImageNet. Default: False.
**kwargs (optional) – Additional keyword arguments. For details, please refer to ResNet.
- Returns
-
Layer. An instance of ResNet 101-layer.
Examples
>>> import paddle >>> from paddle.vision.models import resnet101 >>> # build model >>> model = resnet101() >>> # build model and load imagenet pretrained weight >>> # model = resnet101(pretrained=True) >>> x = paddle.rand([1, 3, 224, 224]) >>> out = model(x) >>> print(out.shape) [1, 1000]