MobileNetV3Large

class paddle.vision.models. MobileNetV3Large ( scale=1.0, num_classes=1000, with_pool=True ) [源代码]

MobileNetV3 Large 架构模型,来自论文 "Searching for MobileNetV3"

参数

  • scale (float,可选) - 模型通道数的缩放比例。默认值为 1.0。

  • num_classes (int,可选) - 最后一个全连接层输出的维度。如果该值小于等于 0,则不定义最后一个全连接层。默认值为 1000。

  • with_pool (bool,可选) - 是否定义最后一个全连接层之前的池化层。默认值为 True。

返回

Layer,MobileNetV3 Large 架构模型实例。

代码示例

>>> import paddle
>>> from paddle.vision.models import MobileNetV3Large

>>> # Build model
>>> model = MobileNetV3Large(scale=1.0)

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

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