vgg13¶
- paddle.vision.models. vgg13 ( pretrained=False, batch_norm=False, **kwargs ) [source]
-
VGG 13-layer model from “Very Deep Convolutional Networks For Large-Scale Image Recognition”.
- Parameters
-
pretrained (bool, optional) – Whether to load pre-trained weights. If True, returns a model pre-trained on ImageNet. Default: False.
batch_norm (bool) – If True, returns a model with batch_norm layer. Default: False.
**kwargs (optional) – Additional keyword arguments. For details, please refer to VGG.
- Returns
-
Layer. An instance of VGG 13-layer model.
Examples
>>> import paddle >>> from paddle.vision.models import vgg13 >>> # build model >>> model = vgg13() >>> # build vgg13 model with batch_norm >>> model = vgg13(batch_norm=True) >>> x = paddle.rand([1, 3, 224, 224]) >>> out = model(x) >>> print(out.shape) [1, 1000]