vgg19 vgg19 ( pretrained=False, batch_norm=False, **kwargs ) [source]

VGG 19-layer model from “Very Deep Convolutional Networks For Large-Scale Image Recognition”.

  • pretrained (bool, optional) – Whether to load pre-trained weights. If True, returns a model pre-trained on ImageNet. Default: False.

  • batch_norm (bool, optional) – If True, returns a model with batch_norm layer. Default: False.

  • **kwargs (optional) – Additional keyword arguments. For details, please refer to VGG.


Layer. An instance of VGG 19-layer model.


import paddle
from import vgg19

# build model
model = vgg19()

# build vgg19 model with batch_norm
model = vgg19(batch_norm=True)

x = paddle.rand([1, 3, 224, 224])
out = model(x)

# [1, 1000]