mobilenet_v3_large

paddle.vision.models. mobilenet_v3_large ( pretrained=False, scale=1.0, **kwargs ) [source]

MobileNetV3 Large architecture model from “Searching for MobileNetV3”.

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

  • scale (float, optional) – Scale of channels in each layer. Default: 1.0.

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

Returns

Layer. An instance of MobileNetV3 Large architecture model.

Examples

>>> import paddle
>>> from paddle.vision.models import mobilenet_v3_large

>>> # Build model
>>> model = mobilenet_v3_large()

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

>>> # Build mobilenet v3 large model with scale=0.5
>>> model = mobilenet_v3_large(scale=0.5)

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

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