diff --git a/docs/api/api_label b/docs/api/api_label index 8f4ee5bf936..fb622f16792 100644 --- a/docs/api/api_label +++ b/docs/api/api_label @@ -1042,36 +1042,67 @@ paddle.utils.download.get_weights_path_from_url .. _api_paddle_utils_download_ge paddle.utils.profiler.get_profiler .. _api_paddle_utils_profiler_get_profiler: paddle.utils.profiler.Profiler .. _api_paddle_utils_profiler_Profiler: paddle.utils.profiler.ProfilerOptions .. _api_paddle_utils_profiler_ProfilerOptions: +paddle.vision.AlexNet .. _api_paddle_vision_AlexNet: +paddle.vision.alexnet .. _api_paddle_vision_alexnet: +paddle.vision.DenseNet .. _api_paddle_vision_DenseNet: +paddle.vision.densenet121 .. _api_paddle_vision_densenet121: +paddle.vision.densenet161 .. _api_paddle_vision_densenet161: +paddle.vision.densenet169 .. _api_paddle_vision_densenet169: +paddle.vision.densenet201 .. _api_paddle_vision_densenet201: +paddle.vision.densenet264 .. _api_paddle_vision_densenet264: paddle.vision.FashionMNIST .. _api_paddle_vision_FashionMNIST: paddle.vision.Flowers .. _api_paddle_vision_Flowers: -paddle.vision.resnet34 .. _api_paddle_vision_resnet34: -paddle.vision.MobileNetV2 .. _api_paddle_vision_MobileNetV2: -paddle.vision.RandomResizedCrop .. _api_paddle_vision_RandomResizedCrop: +paddle.vision.GoogLeNet .. _api_paddle_vision_GoogLeNet: +paddle.vision.googlenet .. _api_paddle_vision_googlenet: +paddle.vision.inception_v3 .. _api_paddle_vision_inception_v3: +paddle.vision.InceptionV3 .. _api_paddle_vision_InceptionV3: paddle.vision.HueTransform .. _api_paddle_vision_HueTransform: -paddle.vision.to_tensor .. _api_paddle_vision_to_tensor: -paddle.vision.ResNet .. _api_paddle_vision_ResNet: +paddle.vision.RandomResizedCrop .. _api_paddle_vision_RandomResizedCrop: paddle.vision.RandomCrop .. _api_paddle_vision_RandomCrop: +paddle.vision.ResNet .. _api_paddle_vision_ResNet: +paddle.vision.resnet101 .. _api_paddle_vision_resnet101: +paddle.vision.resnet152 .. _api_paddle_vision_resnet152: +paddle.vision.resnet18 .. _api_paddle_vision_resnet18: +paddle.vision.resnet34 .. _api_paddle_vision_resnet34: +paddle.vision.resnet50 .. _api_paddle_vision_resnet50: +paddle.vision.resnext101_32x4d .. _api_paddle_vision_resnext101_32x4d: +paddle.vision.resnext101_64x4d .. _api_paddle_vision_resnext101_64x4d: +paddle.vision.resnext152_32x4d .. _api_paddle_vision_resnext152_32x4d: +paddle.vision.resnext152_64x4d .. _api_paddle_vision_resnext152_64x4d: +paddle.vision.resnext50_32x4d .. _api_paddle_vision_resnext50_32x4d: +paddle.vision.resnext50_64x4d .. _api_paddle_vision_resnext50_64x4d: +paddle.vision.shufflenet_v2_swish .. _api_paddle_vision_shufflenet_v2_swish: +paddle.vision.shufflenet_v2_x0_25 .. _api_paddle_vision_shufflenet_v2_x0_25: +paddle.vision.shufflenet_v2_x0_33 .. _api_paddle_vision_shufflenet_v2_x0_33: +paddle.vision.shufflenet_v2_x0_5 .. _api_paddle_vision_shufflenet_v2_x0_5: +paddle.vision.shufflenet_v2_x1_0 .. _api_paddle_vision_shufflenet_v2_x1_0: +paddle.vision.shufflenet_v2_x1_5 .. _api_paddle_vision_shufflenet_v2_x1_5: +paddle.vision.shufflenet_v2_x2_0 .. _api_paddle_vision_shufflenet_v2_x2_0: +paddle.vision.ShuffleNetV2 .. _api_paddle_vision_ShuffleNetV2: +paddle.vision.SqueezeNet .. _api_paddle_vision_SqueezeNet: +paddle.vision.squeezenet1_0 .. _api_paddle_vision_squeezenet1_0: +paddle.vision.squeezenet1_1 .. _api_paddle_vision_squeezenet1_1: +paddle.vision.to_tensor .. _api_paddle_vision_to_tensor: paddle.vision.ToTensor .. _api_paddle_vision_ToTensor: paddle.vision.Cifar100 .. _api_paddle_vision_Cifar100: paddle.vision.DatasetFolder .. _api_paddle_vision_DatasetFolder: paddle.vision.crop .. _api_paddle_vision_crop: paddle.vision.RandomHorizontalFlip .. _api_paddle_vision_RandomHorizontalFlip: paddle.vision.resize .. _api_paddle_vision_resize: -paddle.vision.resnet50 .. _api_paddle_vision_resnet50: paddle.vision.Resize .. _api_paddle_vision_Resize: paddle.vision.CenterCrop .. _api_paddle_vision_CenterCrop: paddle.vision.adjust_hue .. _api_paddle_vision_adjust_hue: paddle.vision.image_load .. _api_paddle_vision_image_load: paddle.vision.MNIST .. _api_paddle_vision_MNIST: -paddle.vision.mobilenet_v1 .. _api_paddle_vision_mobilenet_v1: paddle.vision.get_image_backend .. _api_paddle_vision_get_image_backend: -paddle.vision.resnet101 .. _api_paddle_vision_resnet101: paddle.vision.Grayscale .. _api_paddle_vision_Grayscale: paddle.vision.VGG .. _api_paddle_vision_VGG: +paddle.vision.vgg11 .. _api_paddle_vision_vgg11: +paddle.vision.vgg13 .. _api_paddle_vision_vgg13: +paddle.vision.vgg16 .. _api_paddle_vision_vgg16: +paddle.vision.vgg19 .. _api_paddle_vision_vgg19: paddle.vision.VOC2012 .. _api_paddle_vision_VOC2012: paddle.vision.Transpose .. _api_paddle_vision_Transpose: -paddle.vision.resnet18 .. _api_paddle_vision_resnet18: -paddle.vision.vgg11 .. _api_paddle_vision_vgg11: paddle.vision.center_crop .. _api_paddle_vision_center_crop: paddle.vision.adjust_brightness .. _api_paddle_vision_adjust_brightness: paddle.vision.set_image_backend .. _api_paddle_vision_set_image_backend: @@ -1080,27 +1111,31 @@ paddle.vision.Pad .. _api_paddle_vision_Pad: paddle.vision.normalize .. _api_paddle_vision_normalize: paddle.vision.Cifar10 .. _api_paddle_vision_Cifar10: paddle.vision.ColorJitter .. _api_paddle_vision_ColorJitter: -paddle.vision.MobileNetV1 .. _api_paddle_vision_MobileNetV1: paddle.vision.pad .. _api_paddle_vision_pad: paddle.vision.vflip .. _api_paddle_vision_vflip: paddle.vision.RandomVerticalFlip .. _api_paddle_vision_RandomVerticalFlip: paddle.vision.adjust_contrast .. _api_paddle_vision_adjust_contrast: paddle.vision.models.LeNet .. _api_paddle_vision_models_LeNet: +paddle.vision.mobilenet_v1 .. _api_paddle_vision_mobilenet_v1: +paddle.vision.mobilenet_v2 .. _api_paddle_vision_mobilenet_v2: +paddle.vision.mobilenet_v3_large .. _api_paddle_vision_mobilenet_v3_large: +paddle.vision.mobilenet_v3_small .. _api_paddle_vision_mobilenet_v3_small: +paddle.vision.MobileNetV1 .. _api_paddle_vision_MobileNetV1: +paddle.vision.MobileNetV2 .. _api_paddle_vision_MobileNetV2: +paddle.vision.MobileNetV3Large .. _api_paddle_vision_MobileNetV3Large: +paddle.vision.MobileNetV3Small .. _api_paddle_vision_MobileNetV3Small: paddle.vision.Compose .. _api_paddle_vision_Compose: -paddle.vision.vgg13 .. _api_paddle_vision_vgg13: paddle.vision.BaseTransform .. _api_paddle_vision_BaseTransform: paddle.vision.to_grayscale .. _api_paddle_vision_to_grayscale: paddle.vision.BrightnessTransform .. _api_paddle_vision_BrightnessTransform: paddle.vision.RandomRotation .. _api_paddle_vision_RandomRotation: paddle.vision.rotate .. _api_paddle_vision_rotate: -paddle.vision.vgg16 .. _api_paddle_vision_vgg16: -paddle.vision.resnet152 .. _api_paddle_vision_resnet152: paddle.vision.ImageFolder .. _api_paddle_vision_ImageFolder: -paddle.vision.vgg19 .. _api_paddle_vision_vgg19: paddle.vision.hflip .. _api_paddle_vision_hflip: paddle.vision.ContrastTransform .. _api_paddle_vision_ContrastTransform: -paddle.vision.mobilenet_v2 .. _api_paddle_vision_mobilenet_v2: paddle.vision.Normalize .. _api_paddle_vision_Normalize: +paddle.vision.wide_resnet101_2 .. _api_paddle_vision_wide_resnet101_2: +paddle.vision.wide_resnet50_2 .. _api_paddle_vision_wide_resnet50_2: paddle.vision.ops.yolo_loss .. _api_paddle_vision_ops_yolo_loss: paddle.vision.ops.yolo_box .. _api_paddle_vision_ops_yolo_box: paddle.vision.ops.decode_jpeg .. _api_paddle_vision_ops_decode_jpeg: diff --git a/docs/api/paddle/vision/models/AlexNet_cn.rst b/docs/api/paddle/vision/models/AlexNet_cn.rst index 41a2617825c..796bd871c77 100644 --- a/docs/api/paddle/vision/models/AlexNet_cn.rst +++ b/docs/api/paddle/vision/models/AlexNet_cn.rst @@ -1,22 +1,24 @@ -.. _cn_api_paddle_vision_models_alexnet: +.. _cn_api_paddle_vision_models_AlexNet: -alexnet +AlexNet ------------------------------- -.. py:function:: paddle.vision.models.alexnet(pretrained=False, **kwargs) +.. py:function:: paddle.vision.models.AlexNet(num_classes=1000) - AlexNet模型,来自论文 `"ImageNet Classification with Deep Convolutional Neural Networks" `_ 。 +AlexNet 模型,来自论文 `"ImageNet Classification with Deep Convolutional Neural Networks" `_ 。 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 - - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`AlexNet `。 + + - **num_classes** (int,可选) - 最后一个全连接层输出的维度。如果该值小于等于 0,则不定义最后一个全连接层。默认值为 1000。 + 返回 ::::::::: -alexnet模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,AlexNet 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.alexnet:code-example +COPY-FROM: paddle.vision.models.AlexNet diff --git a/docs/api/paddle/vision/models/DenseNet_cn.rst b/docs/api/paddle/vision/models/DenseNet_cn.rst index 5e22357e682..6728e951ca3 100644 --- a/docs/api/paddle/vision/models/DenseNet_cn.rst +++ b/docs/api/paddle/vision/models/DenseNet_cn.rst @@ -3,22 +3,26 @@ DenseNet ------------------------------- -.. py:class:: paddle.vision.models.DenseNet(layers=121, bn_size=4, dropout=0., num_classes=1000) +.. py:class:: paddle.vision.models.DenseNet(layers=121, bn_size=4, dropout=0., num_classes=1000, with_pool=True) - DenseNet模型,来自论文 `"Densely Connected Convolutional Networks" `_ 。 + +DenseNet 模型,来自论文 `"Densely Connected Convolutional Networks" `_ 。 参数 ::::::::: - - **layers** (int,可选) - densenet的层数。默认值:121。 - - **bn_size** (int,可选) - 中间层growth rate的拓展倍数。默认值:4。 - - **dropout** (float,可选) - dropout rate。默认值:0.。 - - **num_classes** (int,可选) - 类别数目,即最后一个全连接层输出的维度。默认值:1000。 - - **with_pool** (bool,可选) - 是否定义最后一个全连接层之前的池化层。默认值:True。 + + - **layers** (int,可选) - DenseNet 的层数。默认值为 121。 + - **bn_size** (int,可选) - 中间层 growth rate 的拓展倍数。默认值为 4。 + - **dropout** (float,可选) - dropout rate。默认值为 :math:`0.0`。 + - **num_classes** (int,可选) - 最后一个全连接层输出的维度。如果该值小于等于 0,则不定义最后一个全连接层。默认值为 1000。 + - **with_pool** (bool,可选) - 是否定义最后一个全连接层之前的池化层。默认值为 True。 返回 ::::::::: -DenseNet模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,DenseNet 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.DenseNet \ No newline at end of file + +COPY-FROM: paddle.vision.models.DenseNet diff --git a/docs/api/paddle/vision/models/GoogLeNet_cn.rst b/docs/api/paddle/vision/models/GoogLeNet_cn.rst index e7aa1088d2b..fadaabf7559 100644 --- a/docs/api/paddle/vision/models/GoogLeNet_cn.rst +++ b/docs/api/paddle/vision/models/GoogLeNet_cn.rst @@ -1,34 +1,25 @@ -.. _cn_api_paddle_vision_models_googlenet: +.. _cn_api_paddle_vision_models_GoogLeNet: -googlenet +GoogLeNet ------------------------------- -.. py:function:: paddle.vision.models.googlenet(pretrained=False, **kwargs) +.. py:function:: paddle.vision.models.googlenet(num_classes=1000, with_pool=True) - GoogLeNet(Inception v1)模型,来自论文 `"Going Deeper with Convolutions" `_ 。 + +GoogLeNet(Inception v1)模型,来自论文 `"Going Deeper with Convolutions" `_ 。 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 + + - **num_classes** (int,可选) - 最后一个全连接层输出的维度。如果该值小于等于 0,则不定义最后一个全连接层。默认值为 1000。 + - **with_pool** (bool,可选) - 是否定义最后一个全连接层之前的池化层。默认值为 True。 返回 ::::::::: -GoogLeNet模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,GoogLeNet(Inception v1)模型实例。 代码示例 ::::::::: -.. code-block:: python - - import paddle - from paddle.vision.models import googlenet - - # build model - model = googlenet() - - # build model and load imagenet pretrained weight - # model = googlenet(pretrained=True) - - x = paddle.rand([1, 3, 224, 224]) - out, out1, out2 = model(x) - print(out.shape) +COPY-FROM: paddle.vision.models.GoogLeNet diff --git a/docs/api/paddle/vision/models/InceptionV3_cn.rst b/docs/api/paddle/vision/models/InceptionV3_cn.rst index 66b75ed6403..89a965940e8 100644 --- a/docs/api/paddle/vision/models/InceptionV3_cn.rst +++ b/docs/api/paddle/vision/models/InceptionV3_cn.rst @@ -5,17 +5,21 @@ InceptionV3 .. py:class:: paddle.vision.models.InceptionV3(num_classes=1000, with_pool=True) - InceptionV3模型,来自论文 `"Rethinking the Inception Architecture for Computer Vision" `_ 。 + +Inception v3 模型,来自论文 `"Rethinking the Inception Architecture for Computer Vision" `_ 。 参数 ::::::::: - - **num_classes** (int,可选) - 最后一个全连接层输出的维度。如果该值小于0,则不定义最后一个全连接层。默认值:1000。 - - **with_pool** (bool,可选) - 是否定义最后一个全连接层之前的池化层。默认值:True。 + + - **num_classes** (int,可选) - 最后一个全连接层输出的维度。如果该值小于等于 0,则不定义最后一个全连接层。默认值为 1000。 + - **with_pool** (bool,可选) - 是否定义最后一个全连接层之前的池化层。默认值为 True。 返回 ::::::::: -InceptionV3模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,Inception v3 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.InceptionV3 \ No newline at end of file + +COPY-FROM: paddle.vision.models.InceptionV3 diff --git a/docs/api/paddle/vision/models/LeNet_cn.rst b/docs/api/paddle/vision/models/LeNet_cn.rst index 4e90a4bbdbc..703036304e4 100644 --- a/docs/api/paddle/vision/models/LeNet_cn.rst +++ b/docs/api/paddle/vision/models/LeNet_cn.rst @@ -5,13 +5,20 @@ LeNet .. py:class:: paddle.vision.models.LeNet(num_classes=10) - LeNet模型,来自论文 `"Gradient-based learning applied to document recognition" `_ 。 + +LeNet 模型,来自论文 `"Gradient-based learning applied to document recognition" `_ 。 参数 ::::::::: - - **num_classes** (int,可选) - 最后一个全连接层输出的维度。默认值:10。 + - **num_classes** (int,可选) - 最后一个全连接层输出的维度。如果该值小于等于 0,则不定义最后一个全连接层。默认值为 10。 + +返回 +::::::::: + +:ref:`cn_api_fluid_dygraph_Layer`,LeNet 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.LeNet \ No newline at end of file + +COPY-FROM: paddle.vision.models.LeNet diff --git a/docs/api/paddle/vision/models/MobileNetV1_cn.rst b/docs/api/paddle/vision/models/MobileNetV1_cn.rst index b419746f4ac..4657c5c43f5 100644 --- a/docs/api/paddle/vision/models/MobileNetV1_cn.rst +++ b/docs/api/paddle/vision/models/MobileNetV1_cn.rst @@ -6,20 +6,22 @@ MobileNetV1 .. py:class:: paddle.vision.models.MobileNetV1(scale=1.0, num_classes=1000, with_pool=True) - - MobileNetV1模型,来自论文 `"MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications" `_ 。 +MobileNetV1 模型,来自论文 `"MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications" `_ 。 参数 ::::::::: - - **scale** (float,可选) - 模型通道数的缩放比例。默认值:1.0。 - - **num_classes** (int,可选) - 最后一个全连接层输出的维度。如果该值小于0,则不定义最后一个全连接层。默认值:1000。 - - **with_pool** (bool,可选) - 是否定义最后一个全连接层之前的池化层。默认值:True。 + + - **scale** (float,可选) - 模型通道数的缩放比例。默认值为 1.0。 + - **num_classes** (int,可选) - 最后一个全连接层输出的维度。如果该值小于等于 0,则不定义最后一个全连接层。默认值为 1000。 + - **with_pool** (bool,可选) - 是否定义最后一个全连接层之前的池化层。默认值为 True。 返回 ::::::::: -mobilenetv1模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,MobileNetV1 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.MobileNetV1:code-example1 + +COPY-FROM: paddle.vision.models.MobileNetV1 diff --git a/docs/api/paddle/vision/models/MobileNetV2_cn.rst b/docs/api/paddle/vision/models/MobileNetV2_cn.rst index 0c52ae174a3..809f3be9097 100644 --- a/docs/api/paddle/vision/models/MobileNetV2_cn.rst +++ b/docs/api/paddle/vision/models/MobileNetV2_cn.rst @@ -6,20 +6,22 @@ MobileNetV2 .. py:class:: paddle.vision.models.MobileNetV2(scale=1.0, num_classes=1000, with_pool=True) - - MobileNetV2模型,来自论文 `"MobileNetV2: Inverted Residuals and Linear Bottlenecks" `_ 。 +MobileNetV2 模型,来自论文 `"MobileNetV2: Inverted Residuals and Linear Bottlenecks" `_ 。 参数 ::::::::: - - **scale** (float,可选) - 模型通道数的缩放比例。默认值:1.0。 - - **num_classes** (int,可选) - 最后一个全连接层输出的维度。如果该值小于0,则不定义最后一个全连接层。默认值:1000。 - - **with_pool** (bool,可选) - 是否定义最后一个全连接层之前的池化层。默认值:True。 + + - **scale** (float,可选) - 模型通道数的缩放比例。默认值为 1.0。 + - **num_classes** (int,可选) - 最后一个全连接层输出的维度。如果该值小于等于 0,则不定义最后一个全连接层。默认值为 1000。 + - **with_pool** (bool,可选) - 是否定义最后一个全连接层之前的池化层。默认值为 True。 返回 ::::::::: -mobilenetv2模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,MobileNetV2 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.MobileNetV2:code-example1 + +COPY-FROM: paddle.vision.models.MobileNetV2 diff --git a/docs/api/paddle/vision/models/MobileNetV3Large_cn.rst b/docs/api/paddle/vision/models/MobileNetV3Large_cn.rst index c59022168b1..a46daf86470 100644 --- a/docs/api/paddle/vision/models/MobileNetV3Large_cn.rst +++ b/docs/api/paddle/vision/models/MobileNetV3Large_cn.rst @@ -5,19 +5,22 @@ MobileNetV3Large .. py:class:: paddle.vision.models.MobileNetV3Large(scale=1.0, num_classes=1000, with_pool=True) - MobileNetV3Large模型,来自论文 `"Searching for MobileNetV3" `_ 。 + +MobileNetV3 Large 架构模型,来自论文 `"Searching for MobileNetV3" `_ 。 参数 ::::::::: - - **scale** (float,可选) - 模型通道数的缩放比例。默认值:1.0。 - - **num_classes** (int,可选) - 最后一个全连接层输出的维度。如果该值小于0,则不定义最后一个全连接层。默认值:1000。 - - **with_pool** (bool,可选) - 是否定义最后一个全连接层之前的池化层。默认值:True。 + + - **scale** (float,可选) - 模型通道数的缩放比例。默认值为 1.0。 + - **num_classes** (int,可选) - 最后一个全连接层输出的维度。如果该值小于等于 0,则不定义最后一个全连接层。默认值为 1000。 + - **with_pool** (bool,可选) - 是否定义最后一个全连接层之前的池化层。默认值为 True。 返回 ::::::::: -mobilenetv3 large模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,MobileNetV3 Large 架构模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.MobileNetV3Large \ No newline at end of file +COPY-FROM: paddle.vision.models.MobileNetV3Large diff --git a/docs/api/paddle/vision/models/MobileNetV3Small_cn.rst b/docs/api/paddle/vision/models/MobileNetV3Small_cn.rst index 446a93d1786..01d7a4e7974 100644 --- a/docs/api/paddle/vision/models/MobileNetV3Small_cn.rst +++ b/docs/api/paddle/vision/models/MobileNetV3Small_cn.rst @@ -5,19 +5,22 @@ MobileNetV3Small .. py:class:: paddle.vision.models.MobileNetV3Small(scale=1.0, num_classes=1000, with_pool=True) - MobileNetV3Small模型,来自论文 `"Searching for MobileNetV3" `_ 。 + +MobileNetV3 Small 架构模型,来自论文 `"Searching for MobileNetV3" `_ 。 参数 ::::::::: - - **scale** (float,可选) - 模型通道数的缩放比例。默认值:1.0。 - - **num_classes** (int,可选) - 最后一个全连接层输出的维度。如果该值小于0,则不定义最后一个全连接层。默认值:1000。 - - **with_pool** (bool,可选) - 是否定义最后一个全连接层之前的池化层。默认值:True。 + + - **scale** (float,可选) - 模型通道数的缩放比例。默认值为 1.0。 + - **num_classes** (int,可选) - 最后一个全连接层输出的维度。如果该值小于等于 0,则不定义最后一个全连接层。默认值为 1000。 + - **with_pool** (bool,可选) - 是否定义最后一个全连接层之前的池化层。默认值为 True。 返回 ::::::::: -mobilenetv3 small模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,MobileNetV3 Small 架构模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.MobileNetV3Small \ No newline at end of file +COPY-FROM: paddle.vision.models.MobileNetV3Small diff --git a/docs/api/paddle/vision/models/ResNet_cn.rst b/docs/api/paddle/vision/models/ResNet_cn.rst index db2e9e21675..a72e81ab62e 100644 --- a/docs/api/paddle/vision/models/ResNet_cn.rst +++ b/docs/api/paddle/vision/models/ResNet_cn.rst @@ -12,16 +12,16 @@ ResNet 模型,来自论文 `"Deep Residual Learning for Image Recognition" `_ 。 + +ShuffleNetV2 模型,来自论文 `"ShuffleNet V2: Practical Guidelines for Efficient CNN Architecture Design" `_ 。 参数 ::::::::: - - **scale** (float,可选) - 模型通道数的缩放比例。默认值:1.0。 - - **act** (str,可选) - 网络中使用的激活函数。默认值:"relu"。 - - **num_classes** (int,可选) - 最后一个全连接层输出的维度。如果该值小于0,则不定义最后一个全连接层。默认值:1000。 - - **with_pool** (bool,可选) - 是否定义最后一个全连接层之前的池化层。默认值:True。 + + - **scale** (float,可选) - 模型通道数的缩放比例。默认值为 1.0。 + - **act** (str,可选) - 网络中使用的激活函数。默认值为 "relu"。 + - **num_classes** (int,可选) - 最后一个全连接层输出的维度。如果该值小于等于 0,则不定义最后一个全连接层。默认值为 1000。 + - **with_pool** (bool,可选) - 是否定义最后一个全连接层之前的池化层。默认值为 True。 返回 ::::::::: -ShuffleNetV2模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,ShuffleNetV2 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.ShuffleNetV2 \ No newline at end of file + +COPY-FROM: paddle.vision.models.ShuffleNetV2 diff --git a/docs/api/paddle/vision/models/SqueezeNet_cn.rst b/docs/api/paddle/vision/models/SqueezeNet_cn.rst index 0ea49f91cf4..ee1120fe9df 100644 --- a/docs/api/paddle/vision/models/SqueezeNet_cn.rst +++ b/docs/api/paddle/vision/models/SqueezeNet_cn.rst @@ -3,20 +3,24 @@ SqueezeNet ------------------------------- -.. py:function:: paddle.vision.models.SqueezeNet(version, num_classes=1000) +.. py:function:: paddle.vision.models.SqueezeNet(version, num_classes=1000, with_pool=True) - SqueezeNet模型,来自论文 `"SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and <0.5MB model size" `_ 。 + +SqueezeNet 模型,来自论文 `"SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and <0.5MB model size" `_ 。 参数 ::::::::: - - **version** (str) - SqueezeNet的版本,有"1.0"和"1.1"可选。默认值:"1.1"。 - - **num_classes** (int,可选) - 分类的类别数目。默认值:1000。 - - **with_pool** (bool,可选) - 是否定义最后一个全连接层之前的池化层。默认值:True。 + + - **version** (str) - SqueezeNet 的版本,有 "1.0" 和 "1.1" 可选。默认值为 "1.1"。 + - **num_classes** (int,可选) - 最后一个全连接层输出的维度。如果该值小于等于 0,则不定义最后一个全连接层。默认值为 1000。 + - **with_pool** (bool,可选) - 是否定义最后一个全连接层之前的池化层。默认值为 True。 返回 ::::::::: -SqueezeNet模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,SqueezeNet 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.SqueezeNet \ No newline at end of file + +COPY-FROM: paddle.vision.models.SqueezeNet diff --git a/docs/api/paddle/vision/models/VGG_cn.rst b/docs/api/paddle/vision/models/VGG_cn.rst index cadec370add..e984a02aa48 100644 --- a/docs/api/paddle/vision/models/VGG_cn.rst +++ b/docs/api/paddle/vision/models/VGG_cn.rst @@ -6,20 +6,21 @@ VGG .. py:class:: paddle.vision.models.VGG(features, num_classes=1000, with_pool=True) - - VGG模型,来自论文 `"Very Deep Convolutional Networks For Large-Scale Image Recognition" `_ 。 +VGG 模型,来自论文 `"Very Deep Convolutional Networks For Large-Scale Image Recognition" `_ 。 参数 ::::::::: - - **features** (Layer) - vgg模型的特征层。由函数make_layers产生。 - - **num_classes** (int,可选) - 最后一个全连接层输出的维度。如果该值小于等于0,则不定义最后一个全连接层。默认值:1000。 - - **with_pool** (bool,可选) - 是否在最后三个全连接层前使用池化。默认值:True。 + + - **features** (Layer) - VGG 模型的特征层。由函数 make_layers 产生。 + - **num_classes** (int,可选) - 最后一个全连接层输出的维度。如果该值小于等于 0,则不定义最后一个全连接层。默认值为 1000。 + - **with_pool** (bool,可选) - 是否在最后三个全连接层前使用池化。默认值为 True。 返回 ::::::::: -vgg模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,VGG 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.VGG:code-example +COPY-FROM: paddle.vision.models.VGG diff --git a/docs/api/paddle/vision/models/alexnet_cn.rst b/docs/api/paddle/vision/models/alexnet_cn.rst index 41a2617825c..f30f58990e7 100644 --- a/docs/api/paddle/vision/models/alexnet_cn.rst +++ b/docs/api/paddle/vision/models/alexnet_cn.rst @@ -6,17 +6,20 @@ alexnet .. py:function:: paddle.vision.models.alexnet(pretrained=False, **kwargs) - AlexNet模型,来自论文 `"ImageNet Classification with Deep Convolutional Neural Networks" `_ 。 +AlexNet 模型,来自论文 `"ImageNet Classification with Deep Convolutional Neural Networks" `_ 。 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`AlexNet `。 + 返回 ::::::::: -alexnet模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,AlexNet 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.alexnet:code-example +COPY-FROM: paddle.vision.models.alexnet diff --git a/docs/api/paddle/vision/models/densenet121_cn.rst b/docs/api/paddle/vision/models/densenet121_cn.rst index 4a80f266f0c..0bde7bb2559 100644 --- a/docs/api/paddle/vision/models/densenet121_cn.rst +++ b/docs/api/paddle/vision/models/densenet121_cn.rst @@ -5,16 +5,21 @@ densenet121 .. py:function:: paddle.vision.models.densenet121(pretrained=False, **kwargs) - 121层的densenet模型,来自论文 `"Densely Connected Convolutional Networks" `_ 。 + +121 层的 DenseNet 模型,来自论文 `"Densely Connected Convolutional Networks" `_ 。 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`DenseNet `。 返回 ::::::::: -densenet121模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,121 层的 DenseNet 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.densenet121 \ No newline at end of file + +COPY-FROM: paddle.vision.models.densenet121 diff --git a/docs/api/paddle/vision/models/densenet161_cn.rst b/docs/api/paddle/vision/models/densenet161_cn.rst index 1c304461786..5a10bed68c8 100644 --- a/docs/api/paddle/vision/models/densenet161_cn.rst +++ b/docs/api/paddle/vision/models/densenet161_cn.rst @@ -5,16 +5,21 @@ densenet161 .. py:function:: paddle.vision.models.densenet161(pretrained=False, **kwargs) - 161层的densenet模型,来自论文 `"Densely Connected Convolutional Networks" `_ 。 + +161 层的 DenseNet 模型,来自论文 `"Densely Connected Convolutional Networks" `_ 。 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`DenseNet `。 返回 ::::::::: -densenet161模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,161 层的 DenseNet 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.densenet161 \ No newline at end of file + +COPY-FROM: paddle.vision.models.densenet161 diff --git a/docs/api/paddle/vision/models/densenet169_cn.rst b/docs/api/paddle/vision/models/densenet169_cn.rst index b6ba4a18ff3..16970b090f8 100644 --- a/docs/api/paddle/vision/models/densenet169_cn.rst +++ b/docs/api/paddle/vision/models/densenet169_cn.rst @@ -5,16 +5,21 @@ densenet169 .. py:function:: paddle.vision.models.densenet169(pretrained=False, **kwargs) - 169层的densenet模型,来自论文 `"Densely Connected Convolutional Networks" `_ 。 + +169 层的 DenseNet 模型,来自论文 `"Densely Connected Convolutional Networks" `_ 。 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`DenseNet `。 返回 ::::::::: -densenet169模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,169 层的 DenseNet 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.densenet169 \ No newline at end of file + +COPY-FROM: paddle.vision.models.densenet169 diff --git a/docs/api/paddle/vision/models/densenet201_cn.rst b/docs/api/paddle/vision/models/densenet201_cn.rst index 3dab271cf13..082475cfb37 100644 --- a/docs/api/paddle/vision/models/densenet201_cn.rst +++ b/docs/api/paddle/vision/models/densenet201_cn.rst @@ -5,16 +5,21 @@ densenet201 .. py:function:: paddle.vision.models.densenet201(pretrained=False, **kwargs) - 201层的densenet模型,来自论文 `"Densely Connected Convolutional Networks" `_ 。 + +201 层的 DenseNet 模型,来自论文 `"Densely Connected Convolutional Networks" `_ 。 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`DenseNet `。 返回 ::::::::: -densenet201模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,201 层的 DenseNet 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.densenet201 \ No newline at end of file + +COPY-FROM: paddle.vision.models.densenet201 diff --git a/docs/api/paddle/vision/models/densenet264_cn.rst b/docs/api/paddle/vision/models/densenet264_cn.rst index f71b9f492d9..9e7ebb9bdb1 100644 --- a/docs/api/paddle/vision/models/densenet264_cn.rst +++ b/docs/api/paddle/vision/models/densenet264_cn.rst @@ -5,16 +5,21 @@ densenet264 .. py:function:: paddle.vision.models.densenet264(pretrained=False, **kwargs) - 264层的densenet模型,来自论文 `"Densely Connected Convolutional Networks" `_ 。 + +264 层的 DenseNet 模型,来自论文 `"Densely Connected Convolutional Networks" `_ 。 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`DenseNet `。 返回 ::::::::: -densenet264模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,264 层的 DenseNet 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.densenet264 \ No newline at end of file + +COPY-FROM: paddle.vision.models.densenet264 diff --git a/docs/api/paddle/vision/models/googlenet_cn.rst b/docs/api/paddle/vision/models/googlenet_cn.rst index e7aa1088d2b..9055be8b3c3 100644 --- a/docs/api/paddle/vision/models/googlenet_cn.rst +++ b/docs/api/paddle/vision/models/googlenet_cn.rst @@ -5,30 +5,21 @@ googlenet .. py:function:: paddle.vision.models.googlenet(pretrained=False, **kwargs) - GoogLeNet(Inception v1)模型,来自论文 `"Going Deeper with Convolutions" `_ 。 + +GoogLeNet(Inception v1)模型,来自论文 `"Going Deeper with Convolutions" `_ 。 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`GoogLeNet `。 返回 ::::::::: -GoogLeNet模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,GoogLeNet(Inception v1)模型实例。 代码示例 ::::::::: -.. code-block:: python - - import paddle - from paddle.vision.models import googlenet - - # build model - model = googlenet() - - # build model and load imagenet pretrained weight - # model = googlenet(pretrained=True) - - x = paddle.rand([1, 3, 224, 224]) - out, out1, out2 = model(x) - print(out.shape) +COPY-FROM: paddle.vision.models.googlenet diff --git a/docs/api/paddle/vision/models/inception_v3_cn.rst b/docs/api/paddle/vision/models/inception_v3_cn.rst index 726fdaf5d11..3bc9a519bd6 100644 --- a/docs/api/paddle/vision/models/inception_v3_cn.rst +++ b/docs/api/paddle/vision/models/inception_v3_cn.rst @@ -5,16 +5,21 @@ inception_v3 .. py:function:: paddle.vision.models.inception_v3(pretrained=False, **kwargs) - InceptionV3模型,来自论文 `"Rethinking the Inception Architecture for Computer Vision" `_ 。 + +Inception v3 模型,来自论文 `"Rethinking the Inception Architecture for Computer Vision" `_ 。 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`InceptionV3 `。 返回 ::::::::: -InceptionV3模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,Inception v3 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.inception_v3 \ No newline at end of file + +COPY-FROM: paddle.vision.models.inception_v3 diff --git a/docs/api/paddle/vision/models/mobilenet_v1_cn.rst b/docs/api/paddle/vision/models/mobilenet_v1_cn.rst index 9a0e4e4e42f..177956a8a15 100644 --- a/docs/api/paddle/vision/models/mobilenet_v1_cn.rst +++ b/docs/api/paddle/vision/models/mobilenet_v1_cn.rst @@ -5,18 +5,22 @@ mobilenet_v1 .. py:function:: paddle.vision.models.mobilenet_v1(pretrained=False, scale=1.0, **kwargs) - MobileNetV1模型,来自论文 `"MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications" `_ 。 + +MobileNetV1 模型,来自论文 `"MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications" `_ 。 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 - - **scale** (float,可选) - 模型通道数的缩放比例。默认值:1.0。 + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **scale** (float,可选) - 模型通道数的缩放比例。默认值为 1.0。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`MobileNetV1 `。 返回 ::::::::: -mobilenetv1模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,MobileNetV1 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.mobilenet_v1 \ No newline at end of file +COPY-FROM: paddle.vision.models.mobilenet_v1 diff --git a/docs/api/paddle/vision/models/mobilenet_v2_cn.rst b/docs/api/paddle/vision/models/mobilenet_v2_cn.rst index 3996ab47023..793a4ef2dd8 100644 --- a/docs/api/paddle/vision/models/mobilenet_v2_cn.rst +++ b/docs/api/paddle/vision/models/mobilenet_v2_cn.rst @@ -5,18 +5,22 @@ mobilenet_v2 .. py:function:: paddle.vision.models.mobilenet_v2(pretrained=False, scale=1.0, **kwargs) - MobileNetV2模型,来自论文 `"MobileNetV2: Inverted Residuals and Linear Bottlenecks" `_ 。 + +MobileNetV2 模型,来自论文 `"MobileNetV2: Inverted Residuals and Linear Bottlenecks" `_ 。 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 - - **scale** (float,可选) - 模型通道数的缩放比例。默认值:1.0。 + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **scale** (float,可选) - 模型通道数的缩放比例。默认值为 1.0。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`MobileNetV2 `。 返回 ::::::::: -mobilenetv2模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,MobileNetV2 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.mobilenet_v2 \ No newline at end of file +COPY-FROM: paddle.vision.models.mobilenet_v2 diff --git a/docs/api/paddle/vision/models/mobilenet_v3_large_cn.rst b/docs/api/paddle/vision/models/mobilenet_v3_large_cn.rst index 77518f9a9dd..34147d06580 100644 --- a/docs/api/paddle/vision/models/mobilenet_v3_large_cn.rst +++ b/docs/api/paddle/vision/models/mobilenet_v3_large_cn.rst @@ -5,18 +5,22 @@ mobilenet_v3_large .. py:function:: paddle.vision.models.mobilenet_v3_large(pretrained=False, scale=1.0, **kwargs) - MobileNetV3Large模型,来自论文 `"Searching for MobileNetV3" `_ 。 + +MobileNetV3 Large 架构模型,来自论文 `"Searching for MobileNetV3" `_ 。 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 - - **scale** (float,可选) - 模型通道数的缩放比例。默认值:1.0。 + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **scale** (float,可选) - 模型通道数的缩放比例。默认值为 1.0。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`MobileNetV3Large `。 返回 ::::::::: -mobilenetv3 large模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,MobileNetV3 Large 架构模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.mobilenet_v3_large \ No newline at end of file +COPY-FROM: paddle.vision.models.mobilenet_v3_large diff --git a/docs/api/paddle/vision/models/mobilenet_v3_small_cn.rst b/docs/api/paddle/vision/models/mobilenet_v3_small_cn.rst index bc38e3559b1..f57dd78183a 100644 --- a/docs/api/paddle/vision/models/mobilenet_v3_small_cn.rst +++ b/docs/api/paddle/vision/models/mobilenet_v3_small_cn.rst @@ -5,18 +5,22 @@ mobilenet_v3_small .. py:function:: paddle.vision.models.mobilenet_v3_small(pretrained=False, scale=1.0, **kwargs) - MobileNetV3Small模型,来自论文 `"Searching for MobileNetV3" `_ 。 + +MobileNetV3 Small 架构模型,来自论文 `"Searching for MobileNetV3" `_ 。 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 - - **scale** (float,可选) - 模型通道数的缩放比例。默认值:1.0。 + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **scale** (float,可选) - 模型通道数的缩放比例。默认值为 1.0。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`MobileNetV3Small `。 返回 ::::::::: -mobilenetv3 small模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,MobileNetV3 Small 架构模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.mobilenet_v3_small \ No newline at end of file +COPY-FROM: paddle.vision.models.mobilenet_v3_small diff --git a/docs/api/paddle/vision/models/resnet101_cn.rst b/docs/api/paddle/vision/models/resnet101_cn.rst index 188cdc94459..f5cdb24eff1 100644 --- a/docs/api/paddle/vision/models/resnet101_cn.rst +++ b/docs/api/paddle/vision/models/resnet101_cn.rst @@ -11,12 +11,13 @@ resnet101 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值:False。 + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`ResNet `。 返回 ::::::::: -101 层的 ResNet 模型,:ref:`cn_api_fluid_dygraph_Layer` 的实例。 +:ref:`cn_api_fluid_dygraph_Layer`,101 层的 ResNet 模型实例。 代码示例 ::::::::: diff --git a/docs/api/paddle/vision/models/resnet152_cn.rst b/docs/api/paddle/vision/models/resnet152_cn.rst index 4273d9064d3..7a2067337f7 100644 --- a/docs/api/paddle/vision/models/resnet152_cn.rst +++ b/docs/api/paddle/vision/models/resnet152_cn.rst @@ -11,12 +11,13 @@ resnet152 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值:False。 + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`ResNet `。 返回 ::::::::: -152 层的 ResNet 模型,:ref:`cn_api_fluid_dygraph_Layer` 的实例。 +:ref:`cn_api_fluid_dygraph_Layer`,152 层的 ResNet 模型实例。 代码示例 ::::::::: diff --git a/docs/api/paddle/vision/models/resnet18_cn.rst b/docs/api/paddle/vision/models/resnet18_cn.rst index b2ff670742a..81cb0b0e72c 100644 --- a/docs/api/paddle/vision/models/resnet18_cn.rst +++ b/docs/api/paddle/vision/models/resnet18_cn.rst @@ -11,12 +11,13 @@ resnet18 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值:False。 + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`ResNet `。 返回 ::::::::: -18 层的 ResNet 模型,:ref:`cn_api_fluid_dygraph_Layer` 的实例。 +:ref:`cn_api_fluid_dygraph_Layer`,18 层的 ResNet 模型实例。 代码示例 ::::::::: diff --git a/docs/api/paddle/vision/models/resnet34_cn.rst b/docs/api/paddle/vision/models/resnet34_cn.rst index cf2b4038400..7ab0fe51463 100644 --- a/docs/api/paddle/vision/models/resnet34_cn.rst +++ b/docs/api/paddle/vision/models/resnet34_cn.rst @@ -11,12 +11,13 @@ resnet34 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值:False。 + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`ResNet `。 返回 ::::::::: -34 层的 ResNet 模型,:ref:`cn_api_fluid_dygraph_Layer` 的实例。 +:ref:`cn_api_fluid_dygraph_Layer`,34 层的 ResNet 模型实例。 代码示例 ::::::::: diff --git a/docs/api/paddle/vision/models/resnet50_cn.rst b/docs/api/paddle/vision/models/resnet50_cn.rst index 97370099fd3..aa83decd910 100644 --- a/docs/api/paddle/vision/models/resnet50_cn.rst +++ b/docs/api/paddle/vision/models/resnet50_cn.rst @@ -11,12 +11,13 @@ resnet50 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值:False。 + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`ResNet `。 返回 ::::::::: -50 层的 ResNet 模型,:ref:`cn_api_fluid_dygraph_Layer` 的实例。 +:ref:`cn_api_fluid_dygraph_Layer`,50 层的 ResNet 模型实例。 代码示例 ::::::::: diff --git a/docs/api/paddle/vision/models/resnext101_32x4d_cn.rst b/docs/api/paddle/vision/models/resnext101_32x4d_cn.rst index 17ee342057d..520b2c60acb 100644 --- a/docs/api/paddle/vision/models/resnext101_32x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext101_32x4d_cn.rst @@ -1,24 +1,25 @@ -.. _cn_api_paddle_vision_models_resnext101_32x4d: - -resnext101_32x4d -------------------------------- - -.. py:function:: paddle.vision.models.resnext101_32x4d(pretrained=False, **kwargs) - - -ResNeXt-101 32x4d 模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 - -参数 -::::::::: - - - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值:False。 - -返回 -::::::::: - -ResNeXt-101 32x4d 模型,:ref:`cn_api_fluid_dygraph_Layer` 的实例。 - -代码示例 -::::::::: - -COPY-FROM: paddle.vision.models.resnext101_32x4d +.. _cn_api_paddle_vision_models_resnext101_32x4d: + +resnext101_32x4d +------------------------------- + +.. py:function:: paddle.vision.models.resnext101_32x4d(pretrained=False, **kwargs) + + +ResNeXt-101 32x4d 模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 + +参数 +::::::::: + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`ResNet `。 + +返回 +::::::::: + +:ref:`cn_api_fluid_dygraph_Layer`,ResNeXt-101 32x4d 模型实例。 + +代码示例 +::::::::: + +COPY-FROM: paddle.vision.models.resnext101_32x4d diff --git a/docs/api/paddle/vision/models/resnext101_64x4d_cn.rst b/docs/api/paddle/vision/models/resnext101_64x4d_cn.rst index d984fbc27c6..eac1754761a 100644 --- a/docs/api/paddle/vision/models/resnext101_64x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext101_64x4d_cn.rst @@ -1,24 +1,25 @@ -.. _cn_api_paddle_vision_models_resnext101_64x4d: - -resnext101_64x4d -------------------------------- - -.. py:function:: paddle.vision.models.resnext101_64x4d(pretrained=False, **kwargs) - - -ResNeXt-101 64x4d 模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 - -参数 -::::::::: - - - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值:False。 - -返回 -::::::::: - -ResNeXt-101 64x4d 模型,:ref:`cn_api_fluid_dygraph_Layer` 的实例。 - -代码示例 -::::::::: - -COPY-FROM: paddle.vision.models.resnext101_64x4d +.. _cn_api_paddle_vision_models_resnext101_64x4d: + +resnext101_64x4d +------------------------------- + +.. py:function:: paddle.vision.models.resnext101_64x4d(pretrained=False, **kwargs) + + +ResNeXt-101 64x4d 模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 + +参数 +::::::::: + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`ResNet `。 + +返回 +::::::::: + +:ref:`cn_api_fluid_dygraph_Layer`,ResNeXt-101 64x4d 模型实例。 + +代码示例 +::::::::: + +COPY-FROM: paddle.vision.models.resnext101_64x4d diff --git a/docs/api/paddle/vision/models/resnext152_32x4d_cn.rst b/docs/api/paddle/vision/models/resnext152_32x4d_cn.rst index 4bd223c7386..48eefa788a6 100644 --- a/docs/api/paddle/vision/models/resnext152_32x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext152_32x4d_cn.rst @@ -1,24 +1,25 @@ -.. _cn_api_paddle_vision_models_resnext152_32x4d: - -resnext152_32x4d -------------------------------- - -.. py:function:: paddle.vision.models.resnext152_32x4d(pretrained=False, **kwargs) - - -ResNeXt-152 32x4d 模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 - -参数 -::::::::: - - - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值:False。 - -返回 -::::::::: - -ResNeXt-152 32x4d 模型,:ref:`cn_api_fluid_dygraph_Layer` 的实例。 - -代码示例 -::::::::: - -COPY-FROM: paddle.vision.models.resnext152_32x4d +.. _cn_api_paddle_vision_models_resnext152_32x4d: + +resnext152_32x4d +------------------------------- + +.. py:function:: paddle.vision.models.resnext152_32x4d(pretrained=False, **kwargs) + + +ResNeXt-152 32x4d 模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 + +参数 +::::::::: + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`ResNet `。 + +返回 +::::::::: + +:ref:`cn_api_fluid_dygraph_Layer`,ResNeXt-152 32x4d 模型实例。 + +代码示例 +::::::::: + +COPY-FROM: paddle.vision.models.resnext152_32x4d diff --git a/docs/api/paddle/vision/models/resnext152_64x4d_cn.rst b/docs/api/paddle/vision/models/resnext152_64x4d_cn.rst index 21789ac464e..55dc2f9cb5d 100644 --- a/docs/api/paddle/vision/models/resnext152_64x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext152_64x4d_cn.rst @@ -1,24 +1,25 @@ -.. _cn_api_paddle_vision_models_resnext152_64x4d: - -resnext152_64x4d -------------------------------- - -.. py:function:: paddle.vision.models.resnext152_64x4d(pretrained=False, **kwargs) - - -ResNeXt-152 64x4d 模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 - -参数 -::::::::: - - - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值:False。 - -返回 -::::::::: - -ResNeXt-152 64x4d 模型,:ref:`cn_api_fluid_dygraph_Layer` 的实例。 - -代码示例 -::::::::: - -COPY-FROM: paddle.vision.models.resnext152_64x4d +.. _cn_api_paddle_vision_models_resnext152_64x4d: + +resnext152_64x4d +------------------------------- + +.. py:function:: paddle.vision.models.resnext152_64x4d(pretrained=False, **kwargs) + + +ResNeXt-152 64x4d 模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 + +参数 +::::::::: + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`ResNet `。 + +返回 +::::::::: + +:ref:`cn_api_fluid_dygraph_Layer`,ResNeXt-152 64x4d 模型实例。 + +代码示例 +::::::::: + +COPY-FROM: paddle.vision.models.resnext152_64x4d diff --git a/docs/api/paddle/vision/models/resnext50_32x4d_cn.rst b/docs/api/paddle/vision/models/resnext50_32x4d_cn.rst index 2cea0a14603..8a0ed2a46ae 100644 --- a/docs/api/paddle/vision/models/resnext50_32x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext50_32x4d_cn.rst @@ -1,24 +1,25 @@ -.. _cn_api_paddle_vision_models_resnext50_32x4d: - -resnext50_32x4d -------------------------------- - -.. py:function:: paddle.vision.models.resnext50_32x4d(pretrained=False, **kwargs) - - -ResNeXt-50 32x4d 模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 - -参数 -::::::::: - - - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值:False。 - -返回 -::::::::: - -ResNeXt-50 32x4d 模型,:ref:`cn_api_fluid_dygraph_Layer` 的实例。 - -代码示例 -::::::::: - -COPY-FROM: paddle.vision.models.resnext50_32x4d +.. _cn_api_paddle_vision_models_resnext50_32x4d: + +resnext50_32x4d +------------------------------- + +.. py:function:: paddle.vision.models.resnext50_32x4d(pretrained=False, **kwargs) + + +ResNeXt-50 32x4d 模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 + +参数 +::::::::: + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`ResNet `。 + +返回 +::::::::: + +:ref:`cn_api_fluid_dygraph_Layer`,ResNeXt-50 32x4d 模型实例。 + +代码示例 +::::::::: + +COPY-FROM: paddle.vision.models.resnext50_32x4d diff --git a/docs/api/paddle/vision/models/resnext50_64x4d_cn.rst b/docs/api/paddle/vision/models/resnext50_64x4d_cn.rst index 7b2101b4e73..17d27b724af 100644 --- a/docs/api/paddle/vision/models/resnext50_64x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext50_64x4d_cn.rst @@ -1,24 +1,25 @@ -.. _cn_api_paddle_vision_models_resnext50_64x4d: - -resnext50_64x4d -------------------------------- - -.. py:function:: paddle.vision.models.resnext50_64x4d(pretrained=False, **kwargs) - - -ResNeXt-50 64x4d 模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 - -参数 -::::::::: - - - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值:False。 - -返回 -::::::::: - -ResNeXt-50 64x4d 模型,:ref:`cn_api_fluid_dygraph_Layer` 的实例。 - -代码示例 -::::::::: - -COPY-FROM: paddle.vision.models.resnext50_64x4d +.. _cn_api_paddle_vision_models_resnext50_64x4d: + +resnext50_64x4d +------------------------------- + +.. py:function:: paddle.vision.models.resnext50_64x4d(pretrained=False, **kwargs) + + +ResNeXt-50 64x4d 模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 + +参数 +::::::::: + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`ResNet `。 + +返回 +::::::::: + +:ref:`cn_api_fluid_dygraph_Layer`,ResNeXt-50 64x4d 模型实例。 + +代码示例 +::::::::: + +COPY-FROM: paddle.vision.models.resnext50_64x4d diff --git a/docs/api/paddle/vision/models/shufflenet_v2_swish_cn.rst b/docs/api/paddle/vision/models/shufflenet_v2_swish_cn.rst index c22afb1bb3e..a0e499cc84c 100644 --- a/docs/api/paddle/vision/models/shufflenet_v2_swish_cn.rst +++ b/docs/api/paddle/vision/models/shufflenet_v2_swish_cn.rst @@ -5,16 +5,21 @@ shufflenet_v2_swish .. py:function:: paddle.vision.models.shufflenet_v2_swish(pretrained=False, **kwargs) - 使用 swish 进行激活的 ShuffleNetV2 模型,来自论文 `"ShuffleNet V2: Practical Guidelines for Ecient CNN Architecture Design" `_ 。 + +使用 swish 作为激活函数的 ShuffleNetV2 模型,来自论文 `"ShuffleNet V2: Practical Guidelines for Ecient CNN Architecture Design" `_ 。 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`ShuffleNetV2 `。 返回 ::::::::: -shufflenet_v2_swish模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,使用 swish 作为激活函数的 ShuffleNetV2 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.shufflenet_v2_swish \ No newline at end of file + +COPY-FROM: paddle.vision.models.shufflenet_v2_swish diff --git a/docs/api/paddle/vision/models/shufflenet_v2_x0_25_cn.rst b/docs/api/paddle/vision/models/shufflenet_v2_x0_25_cn.rst index 1cfaac2c144..842704b95a6 100644 --- a/docs/api/paddle/vision/models/shufflenet_v2_x0_25_cn.rst +++ b/docs/api/paddle/vision/models/shufflenet_v2_x0_25_cn.rst @@ -5,16 +5,21 @@ shufflenet_v2_x0_25 .. py:function:: paddle.vision.models.shufflenet_v2_x0_25(pretrained=False, **kwargs) - 输出通道缩放比例为 0.25 的 ShuffleNetV2 模型,来自论文 `"ShuffleNet V2: Practical Guidelines for Ecient CNN Architecture Design" `_ 。 + +输出通道缩放比例为 0.25 的 ShuffleNetV2 模型,来自论文 `"ShuffleNet V2: Practical Guidelines for Ecient CNN Architecture Design" `_ 。 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`ShuffleNetV2 `。 返回 ::::::::: -shufflenet_v2_x0_25模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,输出通道缩放比例为 0.25 的 ShuffleNetV2 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.shufflenet_v2_x0_25 \ No newline at end of file + +COPY-FROM: paddle.vision.models.shufflenet_v2_x0_25 diff --git a/docs/api/paddle/vision/models/shufflenet_v2_x0_33_cn.rst b/docs/api/paddle/vision/models/shufflenet_v2_x0_33_cn.rst index 8f23308cd05..f0ad9c8bde6 100644 --- a/docs/api/paddle/vision/models/shufflenet_v2_x0_33_cn.rst +++ b/docs/api/paddle/vision/models/shufflenet_v2_x0_33_cn.rst @@ -5,16 +5,21 @@ shufflenet_v2_x0_33 .. py:function:: paddle.vision.models.shufflenet_v2_x0_33(pretrained=False, **kwargs) - 输出通道缩放比例为 0.25 的 ShuffleNetV2 模型,来自论文 `"ShuffleNet V2: Practical Guidelines for Ecient CNN Architecture Design" `_ 。 + +输出通道缩放比例为 0.33 的 ShuffleNetV2 模型,来自论文 `"ShuffleNet V2: Practical Guidelines for Ecient CNN Architecture Design" `_ 。 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`ShuffleNetV2 `。 返回 ::::::::: -shufflenet_v2_x0_33模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,输出通道缩放比例为 0.33 的 ShuffleNetV2 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.shufflenet_v2_x0_33 \ No newline at end of file + +COPY-FROM: paddle.vision.models.shufflenet_v2_x0_33 diff --git a/docs/api/paddle/vision/models/shufflenet_v2_x0_5_cn.rst b/docs/api/paddle/vision/models/shufflenet_v2_x0_5_cn.rst index 05ea8fec053..5547e880b4e 100644 --- a/docs/api/paddle/vision/models/shufflenet_v2_x0_5_cn.rst +++ b/docs/api/paddle/vision/models/shufflenet_v2_x0_5_cn.rst @@ -5,16 +5,21 @@ shufflenet_v2_x0_5 .. py:function:: paddle.vision.models.shufflenet_v2_x0_5(pretrained=False, **kwargs) - 输出通道缩放比例为 0.5 的 ShuffleNetV2 模型,来自论文 `"ShuffleNet V2: Practical Guidelines for Ecient CNN Architecture Design" `_ 。 + +输出通道缩放比例为 0.5 的 ShuffleNetV2 模型,来自论文 `"ShuffleNet V2: Practical Guidelines for Ecient CNN Architecture Design" `_ 。 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`ShuffleNetV2 `。 返回 ::::::::: -shufflenet_v2_x0_5模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,输出通道缩放比例为 0.5 的 ShuffleNetV2 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.shufflenet_v2_x0_5 \ No newline at end of file + +COPY-FROM: paddle.vision.models.shufflenet_v2_x0_5 diff --git a/docs/api/paddle/vision/models/shufflenet_v2_x1_0_cn.rst b/docs/api/paddle/vision/models/shufflenet_v2_x1_0_cn.rst index abbfdc3430f..cfd7a4b9cf5 100644 --- a/docs/api/paddle/vision/models/shufflenet_v2_x1_0_cn.rst +++ b/docs/api/paddle/vision/models/shufflenet_v2_x1_0_cn.rst @@ -5,16 +5,21 @@ shufflenet_v2_x1_0 .. py:function:: paddle.vision.models.shufflenet_v2_x1_0(pretrained=False, **kwargs) - 输出通道缩放比例为 1.0 的 ShuffleNetV2 模型,来自论文 `"ShuffleNet V2: Practical Guidelines for Ecient CNN Architecture Design" `_ 。 + +输出通道缩放比例为 1.0 的 ShuffleNetV2 模型,来自论文 `"ShuffleNet V2: Practical Guidelines for Ecient CNN Architecture Design" `_ 。 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`ShuffleNetV2 `。 返回 ::::::::: -shufflenet_v2_x1_0模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,输出通道缩放比例为 1.0 的 ShuffleNetV2 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.shufflenet_v2_x1_0 \ No newline at end of file + +COPY-FROM: paddle.vision.models.shufflenet_v2_x1_0 diff --git a/docs/api/paddle/vision/models/shufflenet_v2_x1_5_cn.rst b/docs/api/paddle/vision/models/shufflenet_v2_x1_5_cn.rst index 7f77777da09..b945566f890 100644 --- a/docs/api/paddle/vision/models/shufflenet_v2_x1_5_cn.rst +++ b/docs/api/paddle/vision/models/shufflenet_v2_x1_5_cn.rst @@ -5,16 +5,21 @@ shufflenet_v2_x1_5 .. py:function:: paddle.vision.models.shufflenet_v2_x1_5(pretrained=False, **kwargs) - 输出通道缩放比例为 1.5 的 ShuffleNetV2 模型,来自论文 `"ShuffleNet V2: Practical Guidelines for Ecient CNN Architecture Design" `_ 。 + +输出通道缩放比例为 1.5 的 ShuffleNetV2 模型,来自论文 `"ShuffleNet V2: Practical Guidelines for Ecient CNN Architecture Design" `_ 。 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`ShuffleNetV2 `。 返回 ::::::::: -shufflenet_v2_x1_5模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,输出通道缩放比例为 1.5 的 ShuffleNetV2 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.shufflenet_v2_x1_5 \ No newline at end of file + +COPY-FROM: paddle.vision.models.shufflenet_v2_x1_5 diff --git a/docs/api/paddle/vision/models/shufflenet_v2_x2_0_cn.rst b/docs/api/paddle/vision/models/shufflenet_v2_x2_0_cn.rst index 856f4df268b..683c9b78abb 100644 --- a/docs/api/paddle/vision/models/shufflenet_v2_x2_0_cn.rst +++ b/docs/api/paddle/vision/models/shufflenet_v2_x2_0_cn.rst @@ -5,16 +5,21 @@ shufflenet_v2_x2_0 .. py:function:: paddle.vision.models.shufflenet_v2_x2_0(pretrained=False, **kwargs) - 输出通道缩放比例为 2.0 的 ShuffleNetV2 模型,来自论文 `"ShuffleNet V2: Practical Guidelines for Ecient CNN Architecture Design" `_ 。 + +输出通道缩放比例为 2.0 的 ShuffleNetV2 模型,来自论文 `"ShuffleNet V2: Practical Guidelines for Ecient CNN Architecture Design" `_ 。 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`ShuffleNetV2 `。 返回 ::::::::: -shufflenet_v2_x2_0模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,输出通道缩放比例为 2.0 的 ShuffleNetV2 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.shufflenet_v2_x2_0 \ No newline at end of file + +COPY-FROM: paddle.vision.models.shufflenet_v2_x2_0 diff --git a/docs/api/paddle/vision/models/squeezenet1_0_cn.rst b/docs/api/paddle/vision/models/squeezenet1_0_cn.rst index 316202d4994..8f5d36af744 100644 --- a/docs/api/paddle/vision/models/squeezenet1_0_cn.rst +++ b/docs/api/paddle/vision/models/squeezenet1_0_cn.rst @@ -5,16 +5,21 @@ squeezenet1_0 .. py:function:: paddle.vision.models.squeezenet1_0(pretrained=False, **kwargs) - squeezenet1_0模型,来自论文 `"SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and <0.5MB model size" `_ 。 + +SqueezeNet v1.0 模型,来自论文 `"SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and <0.5MB model size" `_ 。 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`SqueezeNet `。 返回 ::::::::: -squeezenet1_0模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,SqueezeNet v1.0 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.squeezenet1_0 \ No newline at end of file + +COPY-FROM: paddle.vision.models.squeezenet1_0 diff --git a/docs/api/paddle/vision/models/squeezenet1_1_cn.rst b/docs/api/paddle/vision/models/squeezenet1_1_cn.rst index 44b829b0bbd..3f61e249385 100644 --- a/docs/api/paddle/vision/models/squeezenet1_1_cn.rst +++ b/docs/api/paddle/vision/models/squeezenet1_1_cn.rst @@ -5,16 +5,22 @@ squeezenet1_1 .. py:function:: paddle.vision.models.squeezenet1_1(pretrained=False, **kwargs) - squeezenet1_1模型,来自论文 `"SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and <0.5MB model size" `_ 。 + +SqueezeNet v1.1 模型,来自论文 `"SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and <0.5MB model size" `_ 。 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`SqueezeNet `。 返回 ::::::::: -squeezenet1_1模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,SqueezeNet v1.1 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.squeezenet1_1 \ No newline at end of file + +COPY-FROM: paddle.vision.models.squeezenet1_1 + diff --git a/docs/api/paddle/vision/models/vgg11_cn.rst b/docs/api/paddle/vision/models/vgg11_cn.rst index 901452d61c2..57c50950af2 100644 --- a/docs/api/paddle/vision/models/vgg11_cn.rst +++ b/docs/api/paddle/vision/models/vgg11_cn.rst @@ -5,17 +5,22 @@ vgg11 .. py:function:: paddle.vision.models.vgg11(pretrained=False, batch_norm=False, **kwargs) - vgg11模型,来自论文 `"Very Deep Convolutional Networks For Large-Scale Image Recognition" `_ 。 + +11 层的 VGG 模型,来自论文 `"Very Deep Convolutional Networks For Large-Scale Image Recognition" `_ 。 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 - - **batch_norm** (bool,可选) - 是否在每个卷积层后添加批归一化层。默认值:False。 + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **batch_norm** (bool,可选) - 是否在每个卷积层后添加批归一化层。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`VGG `。 返回 ::::::::: -vgg11模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,11 层的 VGG 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.vgg11 \ No newline at end of file + +COPY-FROM: paddle.vision.models.vgg11 diff --git a/docs/api/paddle/vision/models/vgg13_cn.rst b/docs/api/paddle/vision/models/vgg13_cn.rst index 0ad98148606..22d44d209d2 100644 --- a/docs/api/paddle/vision/models/vgg13_cn.rst +++ b/docs/api/paddle/vision/models/vgg13_cn.rst @@ -5,18 +5,23 @@ vgg13 .. py:function:: paddle.vision.models.vgg13(pretrained=False, batch_norm=False, **kwargs) - vgg13模型,来自论文 `"Very Deep Convolutional Networks For Large-Scale Image Recognition" `_ 。 + +13 层的 VGG 模型,来自论文 `"Very Deep Convolutional Networks For Large-Scale Image Recognition" `_ 。 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 - - **batch_norm** (bool,可选) - 是否在每个卷积层后添加批归一化层。默认值:False。 + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **batch_norm** (bool,可选) - 是否在每个卷积层后添加批归一化层。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`VGG `。 返回 ::::::::: -vgg13模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,13 层的 VGG 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.vgg13 \ No newline at end of file +COPY-FROM: paddle.vision.models.vgg13 + diff --git a/docs/api/paddle/vision/models/vgg16_cn.rst b/docs/api/paddle/vision/models/vgg16_cn.rst index b76d61beb77..6643a169be4 100644 --- a/docs/api/paddle/vision/models/vgg16_cn.rst +++ b/docs/api/paddle/vision/models/vgg16_cn.rst @@ -5,18 +5,22 @@ vgg16 .. py:function:: paddle.vision.models.vgg16(pretrained=False, batch_norm=False, **kwargs) - vgg16模型,来自论文 `"Very Deep Convolutional Networks For Large-Scale Image Recognition" `_ 。 + +16 层的 VGG 模型,来自论文 `"Very Deep Convolutional Networks For Large-Scale Image Recognition" `_ 。 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 - - **batch_norm** (bool,可选) - 是否在每个卷积层后添加批归一化层。默认值:False。 + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **batch_norm** (bool,可选) - 是否在每个卷积层后添加批归一化层。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`VGG `。 返回 ::::::::: -vgg16模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,16 层的 VGG 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.vgg16 \ No newline at end of file +COPY-FROM: paddle.vision.models.vgg16 diff --git a/docs/api/paddle/vision/models/vgg19_cn.rst b/docs/api/paddle/vision/models/vgg19_cn.rst index e6a83931e53..ca97e8242a7 100644 --- a/docs/api/paddle/vision/models/vgg19_cn.rst +++ b/docs/api/paddle/vision/models/vgg19_cn.rst @@ -5,18 +5,22 @@ vgg19 .. py:function:: paddle.vision.models.vgg19(pretrained=False, batch_norm=False, **kwargs) - vgg19模型,来自论文 `"Very Deep Convolutional Networks For Large-Scale Image Recognition" `_ 。 + +19 层的 VGG 模型,来自论文 `"Very Deep Convolutional Networks For Large-Scale Image Recognition" `_ 。 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 - - **batch_norm** (bool,可选) - 是否在每个卷积层后添加批归一化层。默认值:False。 + + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值为 False。 + - **batch_norm** (bool,可选) - 是否在每个卷积层后添加批归一化层。默认值为 False。 + - **\*\*kwargs** (可选) - 附加的关键字参数,具体可选参数请参见 :ref:`VGG `。 返回 ::::::::: -vgg19模型,Layer的实例。 + +:ref:`cn_api_fluid_dygraph_Layer`,19 层的 VGG 模型实例。 代码示例 ::::::::: -COPY-FROM: paddle.vision.models.vgg19 \ No newline at end of file +COPY-FROM: paddle.vision.models.vgg19 diff --git a/docs/api/paddle/vision/models/wide_resnet101_2_cn.rst b/docs/api/paddle/vision/models/wide_resnet101_2_cn.rst index 8997279ce12..5070b18352e 100644 --- a/docs/api/paddle/vision/models/wide_resnet101_2_cn.rst +++ b/docs/api/paddle/vision/models/wide_resnet101_2_cn.rst @@ -11,12 +11,13 @@ Wide ResNet-101-2 模型,来自论文 `"Wide Residual Networks" `。 返回 ::::::::: -Wide ResNet-101-2 模型,:ref:`cn_api_fluid_dygraph_Layer` 的实例。 +:ref:`cn_api_fluid_dygraph_Layer`,Wide ResNet-101-2 模型实例。 代码示例 ::::::::: diff --git a/docs/api/paddle/vision/models/wide_resnet50_2_cn.rst b/docs/api/paddle/vision/models/wide_resnet50_2_cn.rst index 79fe660770a..dfa07de6aed 100644 --- a/docs/api/paddle/vision/models/wide_resnet50_2_cn.rst +++ b/docs/api/paddle/vision/models/wide_resnet50_2_cn.rst @@ -11,12 +11,13 @@ Wide ResNet-50-2 模型,来自论文 `"Wide Residual Networks" `。 返回 ::::::::: -Wide ResNet-50-2 模型,:ref:`cn_api_fluid_dygraph_Layer` 的实例。 +:ref:`cn_api_fluid_dygraph_Layer`,Wide ResNet-50-2 模型实例。 代码示例 :::::::::