inception_v3

paddle.vision.models. inception_v3 ( pretrained=False, **kwargs ) [source]

Inception v3 model from “Rethinking the Inception Architecture for Computer Vision”.

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 InceptionV3.

Returns

Layer. An instance of Inception v3 model.

Examples

>>> import paddle
>>> from paddle.vision.models import inception_v3

>>> # Build model
>>> model = inception_v3()

>>> # Build model and load imagenet pretrained weight
>>> # model = inception_v3(pretrained=True)

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

>>> print(out.shape)
[1, 1000]