mobilenet_v2¶
- paddle.vision.models. mobilenet_v2 ( pretrained=False, scale=1.0, **kwargs ) [source]
-
MobileNetV2
- Parameters
-
pretrained (bool) – If True, returns a model pre-trained on ImageNet. Default: False.
scale – (float): scale of channels in each layer. Default: 1.0.
Examples
from paddle.vision.models import mobilenet_v2 # build model model = mobilenet_v2() # build model and load imagenet pretrained weight # model = mobilenet_v2(pretrained=True) # build mobilenet v2 with scale=0.5 model = mobilenet_v2(scale=0.5)