mobilenet_v3_small

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

MobileNetV3 Small architecture model from “Searching for MobileNetV3”.

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

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

Examples

import paddle
from paddle.vision.models import mobilenet_v3_small

# build model
model = mobilenet_v3_small()

# build model and load imagenet pretrained weight
# model = mobilenet_v3_small(pretrained=True)

# build mobilenet v3 small model with scale=0.5
model = mobilenet_v3_small(scale=0.5)

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

print(out.shape)