From 9409fa5ad550161a39eadc701d725066208f1187 Mon Sep 17 00:00:00 2001 From: SigureMo Date: Sun, 20 Mar 2022 03:30:41 +0800 Subject: [PATCH 01/11] refine cn docs --- docs/api/paddle/vision/models/ResNeXt_cn.rst | 33 ------------------- docs/api/paddle/vision/models/ResNet_cn.rst | 14 ++++++-- .../api/paddle/vision/models/resnet101_cn.rst | 1 + .../api/paddle/vision/models/resnet152_cn.rst | 1 + docs/api/paddle/vision/models/resnet18_cn.rst | 1 + docs/api/paddle/vision/models/resnet34_cn.rst | 1 + docs/api/paddle/vision/models/resnet50_cn.rst | 1 + .../vision/models/resnext101_32x4d_cn.rst | 1 + .../vision/models/resnext101_64x4d_cn.rst | 1 + .../vision/models/resnext152_32x4d_cn.rst | 1 + .../vision/models/resnext152_64x4d_cn.rst | 1 + .../vision/models/resnext50_32x4d_cn.rst | 1 + .../vision/models/resnext50_64x4d_cn.rst | 1 + .../vision/models/wide_resnet101_2_cn.rst | 1 + .../vision/models/wide_resnet50_2_cn.rst | 1 + 15 files changed, 24 insertions(+), 36 deletions(-) delete mode 100644 docs/api/paddle/vision/models/ResNeXt_cn.rst diff --git a/docs/api/paddle/vision/models/ResNeXt_cn.rst b/docs/api/paddle/vision/models/ResNeXt_cn.rst deleted file mode 100644 index 9483cca4a1b..00000000000 --- a/docs/api/paddle/vision/models/ResNeXt_cn.rst +++ /dev/null @@ -1,33 +0,0 @@ -.. _cn_api_paddle_vision_models_ResNeXt: - -ResNeXt -------------------------------- - -.. py:class:: paddle.vision.models.ResNeXt(layers=50, cardinality=32, num_classes=1000, with_pool=True) - - ResNeXt模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 - -参数 -::::::::: - - **layers** (int,可选) - ResNeXt 模型的深度。默认值:50 - - **cardinality** (int,可选) - 模型基数,也即划分组的数量。默认值:32 - - **num_classes** (int, 可选) - 最后一个全连接层输出的维度。如果该值小于0,则不定义最后一个全连接层。默认值:1000。 - - **with_pool** (bool,可选) - 是否定义最后一个全连接层之前的池化层。默认值:True。 - -返回 -::::::::: -ResNeXt模型,Layer的实例。 - -代码示例 -::::::::: -.. code-block:: python - - import paddle - from paddle.vision.models import ResNeXt - - resnext50_32x4d = ResNeXt(depth=50, cardinality=32) - - x = paddle.rand([1, 3, 224, 224]) - out = resnext50_32x4d(x) - - print(out.shape) \ No newline at end of file diff --git a/docs/api/paddle/vision/models/ResNet_cn.rst b/docs/api/paddle/vision/models/ResNet_cn.rst index f3d4e9ca2e9..991bd4718e7 100644 --- a/docs/api/paddle/vision/models/ResNet_cn.rst +++ b/docs/api/paddle/vision/models/ResNet_cn.rst @@ -11,7 +11,8 @@ ResNet ::::::::: - **Block** (BasicBlock|BottleneckBlock) - 模型的残差模块。 - **depth** (int,可选) - resnet模型的深度。默认值:50。 - - **width** (int,可选) - resnet模型的基础宽度。默认值:64。 + - **groups** (int,可选) - 各个卷积块的分组数。默认值:1。 + - **width_per_group** (int,可选) - 各个卷积块的每个卷积组基础宽度。默认值:64。 - **num_classes** (int, 可选) - 最后一个全连接层输出的维度。如果该值小于0,则不定义最后一个全连接层。默认值:1000。 - **with_pool** (bool,可选) - 是否定义最后一个全连接层之前的池化层。默认值:True。 @@ -27,13 +28,20 @@ ResNet模型,Layer的实例。 from paddle.vision.models import ResNet from paddle.vision.models.resnet import BottleneckBlock, BasicBlock + # build ResNet with 18 layers + resnet18 = ResNet(BasicBlock, 18) + + # build ResNet with 50 layers resnet50 = ResNet(BottleneckBlock, 50) - wide_resnet50_2 = ResNet(BottleneckBlock, 50, width=64*2) + # build Wide ResNet model + wide_resnet50_2 = ResNet(BottleneckBlock, 50, width_per_group=64*2) - resnet18 = ResNet(BasicBlock, 18) + # build ResNeXt model + resnext50_32x4d = ResNet(BottleneckBlock, 50, groups=32, width_per_group=4) x = paddle.rand([1, 3, 224, 224]) out = resnet18(x) print(out.shape) + # [1, 1000] diff --git a/docs/api/paddle/vision/models/resnet101_cn.rst b/docs/api/paddle/vision/models/resnet101_cn.rst index 35cd2011a83..da08b2d0400 100644 --- a/docs/api/paddle/vision/models/resnet101_cn.rst +++ b/docs/api/paddle/vision/models/resnet101_cn.rst @@ -32,3 +32,4 @@ resnet101模型,Layer的实例。 out = model(x) print(out.shape) + # [1, 1000] diff --git a/docs/api/paddle/vision/models/resnet152_cn.rst b/docs/api/paddle/vision/models/resnet152_cn.rst index 68d3178c069..0cb92848d79 100644 --- a/docs/api/paddle/vision/models/resnet152_cn.rst +++ b/docs/api/paddle/vision/models/resnet152_cn.rst @@ -32,3 +32,4 @@ resnet152模型,Layer的实例。 out = model(x) print(out.shape) + # [1, 1000] diff --git a/docs/api/paddle/vision/models/resnet18_cn.rst b/docs/api/paddle/vision/models/resnet18_cn.rst index 512eb30a180..da8766d9744 100644 --- a/docs/api/paddle/vision/models/resnet18_cn.rst +++ b/docs/api/paddle/vision/models/resnet18_cn.rst @@ -32,3 +32,4 @@ resnet18模型,Layer的实例。 out = model(x) print(out.shape) + # [1, 1000] diff --git a/docs/api/paddle/vision/models/resnet34_cn.rst b/docs/api/paddle/vision/models/resnet34_cn.rst index ecc0fb424be..bffae597cd6 100644 --- a/docs/api/paddle/vision/models/resnet34_cn.rst +++ b/docs/api/paddle/vision/models/resnet34_cn.rst @@ -32,3 +32,4 @@ resnet34模型,Layer的实例。 out = model(x) print(out.shape) + # [1, 1000] diff --git a/docs/api/paddle/vision/models/resnet50_cn.rst b/docs/api/paddle/vision/models/resnet50_cn.rst index d9bb69734e5..dc556914cb3 100644 --- a/docs/api/paddle/vision/models/resnet50_cn.rst +++ b/docs/api/paddle/vision/models/resnet50_cn.rst @@ -32,3 +32,4 @@ resnet50模型,Layer的实例。 out = model(x) print(out.shape) + # [1, 1000] diff --git a/docs/api/paddle/vision/models/resnext101_32x4d_cn.rst b/docs/api/paddle/vision/models/resnext101_32x4d_cn.rst index f4536b0109e..06a7027a9f5 100644 --- a/docs/api/paddle/vision/models/resnext101_32x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext101_32x4d_cn.rst @@ -32,3 +32,4 @@ resnext101_32x4d模型,Layer的实例。 out = model(x) print(out.shape) + # [1, 1000] diff --git a/docs/api/paddle/vision/models/resnext101_64x4d_cn.rst b/docs/api/paddle/vision/models/resnext101_64x4d_cn.rst index ea7ada6e16b..5915155ab9b 100644 --- a/docs/api/paddle/vision/models/resnext101_64x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext101_64x4d_cn.rst @@ -32,3 +32,4 @@ resnext101_64x4d模型,Layer的实例。 out = model(x) print(out.shape) + # [1, 1000] diff --git a/docs/api/paddle/vision/models/resnext152_32x4d_cn.rst b/docs/api/paddle/vision/models/resnext152_32x4d_cn.rst index baa59e8d173..58b9a037806 100644 --- a/docs/api/paddle/vision/models/resnext152_32x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext152_32x4d_cn.rst @@ -32,3 +32,4 @@ resnext152_32x4d模型,Layer的实例。 out = model(x) print(out.shape) + # [1, 1000] diff --git a/docs/api/paddle/vision/models/resnext152_64x4d_cn.rst b/docs/api/paddle/vision/models/resnext152_64x4d_cn.rst index 585d8c5a956..5d387117af7 100644 --- a/docs/api/paddle/vision/models/resnext152_64x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext152_64x4d_cn.rst @@ -32,3 +32,4 @@ resnext152_64x4d模型,Layer的实例。 out = model(x) print(out.shape) + # [1, 1000] diff --git a/docs/api/paddle/vision/models/resnext50_32x4d_cn.rst b/docs/api/paddle/vision/models/resnext50_32x4d_cn.rst index 0850861a243..fc256509f7e 100644 --- a/docs/api/paddle/vision/models/resnext50_32x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext50_32x4d_cn.rst @@ -32,3 +32,4 @@ resnext50_32x4d模型,Layer的实例。 out = model(x) print(out.shape) + # [1, 1000] diff --git a/docs/api/paddle/vision/models/resnext50_64x4d_cn.rst b/docs/api/paddle/vision/models/resnext50_64x4d_cn.rst index 1f81e17e13c..4063de99465 100644 --- a/docs/api/paddle/vision/models/resnext50_64x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext50_64x4d_cn.rst @@ -32,3 +32,4 @@ resnext50_64x4d模型,Layer的实例。 out = model(x) print(out.shape) + # [1, 1000] 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 113db2965b4..c6a1a8a8341 100644 --- a/docs/api/paddle/vision/models/wide_resnet101_2_cn.rst +++ b/docs/api/paddle/vision/models/wide_resnet101_2_cn.rst @@ -32,3 +32,4 @@ wide_resnet101_2模型,Layer的实例。 out = model(x) print(out.shape) + # [1, 1000] 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 a775521412f..11c671d2593 100644 --- a/docs/api/paddle/vision/models/wide_resnet50_2_cn.rst +++ b/docs/api/paddle/vision/models/wide_resnet50_2_cn.rst @@ -32,3 +32,4 @@ wide_resnet50_2模型,Layer的实例。 out = model(x) print(out.shape) + # [1, 1000] From 5bfa463f61db2231f124856b165cdbca88325023 Mon Sep 17 00:00:00 2001 From: Nyakku Shigure Date: Fri, 22 Apr 2022 09:55:48 +0000 Subject: [PATCH 02/11] width_per_group -> width --- docs/api/paddle/vision/models/ResNet_cn.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/api/paddle/vision/models/ResNet_cn.rst b/docs/api/paddle/vision/models/ResNet_cn.rst index 991bd4718e7..43957e5b94e 100644 --- a/docs/api/paddle/vision/models/ResNet_cn.rst +++ b/docs/api/paddle/vision/models/ResNet_cn.rst @@ -3,7 +3,7 @@ ResNet ------------------------------- -.. py:class:: paddle.vision.models.ResNet(Block, depth=50, width=64, num_classes=1000, with_pool=True) +.. py:class:: paddle.vision.models.ResNet(Block, depth=50, width=64, num_classes=1000, with_pool=True, groups=1) ResNet模型,来自论文 `"Deep Residual Learning for Image Recognition" `_ 。 @@ -11,10 +11,10 @@ ResNet ::::::::: - **Block** (BasicBlock|BottleneckBlock) - 模型的残差模块。 - **depth** (int,可选) - resnet模型的深度。默认值:50。 - - **groups** (int,可选) - 各个卷积块的分组数。默认值:1。 - - **width_per_group** (int,可选) - 各个卷积块的每个卷积组基础宽度。默认值:64。 + - **width** (int,可选) - 各个卷积块的每个卷积组基础宽度。默认值:64。 - **num_classes** (int, 可选) - 最后一个全连接层输出的维度。如果该值小于0,则不定义最后一个全连接层。默认值:1000。 - **with_pool** (bool,可选) - 是否定义最后一个全连接层之前的池化层。默认值:True。 + - **groups** (int,可选) - 各个卷积块的分组数。默认值:1。 返回 ::::::::: @@ -35,10 +35,10 @@ ResNet模型,Layer的实例。 resnet50 = ResNet(BottleneckBlock, 50) # build Wide ResNet model - wide_resnet50_2 = ResNet(BottleneckBlock, 50, width_per_group=64*2) + wide_resnet50_2 = ResNet(BottleneckBlock, 50, width=64*2) # build ResNeXt model - resnext50_32x4d = ResNet(BottleneckBlock, 50, groups=32, width_per_group=4) + resnext50_32x4d = ResNet(BottleneckBlock, 50, width=4, groups=32) x = paddle.rand([1, 3, 224, 224]) out = resnet18(x) From d6b76eb8febeb547cd110e609c79c63b9066b0f1 Mon Sep 17 00:00:00 2001 From: Nyakku Shigure Date: Fri, 22 Apr 2022 10:02:39 +0000 Subject: [PATCH 03/11] remove ResNeXt from Overview --- docs/api/paddle/vision/Overview_cn.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/api/paddle/vision/Overview_cn.rst b/docs/api/paddle/vision/Overview_cn.rst index 694a37b5e2f..dd3ea47b76e 100644 --- a/docs/api/paddle/vision/Overview_cn.rst +++ b/docs/api/paddle/vision/Overview_cn.rst @@ -55,7 +55,6 @@ paddle.vision 目录是飞桨在视觉领域的高层API。具体如下: " :ref:`resnet152 ` ", "152层的ResNet模型" " :ref:`wide_resnet50_2 ` ", "50层的WideResNet模型" " :ref:`wide_resnet101_2 ` ", "101层的WideResNet模型" - " :ref:`ResNeXt ` ", "ResNeXt模型" " :ref:`resnext50_32x4d ` ", "ResNeXt-50 32x4d模型" " :ref:`resnext50_64x4d ` ", "ResNeXt-50 64x4d模型" " :ref:`resnext101_32x4d ` ", "ResNeXt-101 32x4d模型" From fb84a53434a7ad867d993506d0f70764cfcebab8 Mon Sep 17 00:00:00 2001 From: Nyakku Shigure Date: Sun, 24 Apr 2022 09:46:28 +0000 Subject: [PATCH 04/11] trigger From dcf82862af6b6de3a499e92bd7ff819da1233d66 Mon Sep 17 00:00:00 2001 From: Nyakku Shigure Date: Wed, 27 Apr 2022 10:30:43 +0000 Subject: [PATCH 05/11] copy from en docs --- docs/api/paddle/vision/models/ResNet_cn.rst | 24 +------------------ .../api/paddle/vision/models/resnet101_cn.rst | 17 +------------ .../api/paddle/vision/models/resnet152_cn.rst | 17 +------------ docs/api/paddle/vision/models/resnet18_cn.rst | 17 +------------ docs/api/paddle/vision/models/resnet34_cn.rst | 17 +------------ docs/api/paddle/vision/models/resnet50_cn.rst | 17 +------------ .../vision/models/resnext101_32x4d_cn.rst | 17 +------------ .../vision/models/resnext101_64x4d_cn.rst | 17 +------------ .../vision/models/resnext152_32x4d_cn.rst | 17 +------------ .../vision/models/resnext152_64x4d_cn.rst | 17 +------------ .../vision/models/resnext50_32x4d_cn.rst | 17 +------------ .../vision/models/resnext50_64x4d_cn.rst | 17 +------------ .../vision/models/wide_resnet101_2_cn.rst | 17 +------------ .../vision/models/wide_resnet50_2_cn.rst | 17 +------------ 14 files changed, 14 insertions(+), 231 deletions(-) diff --git a/docs/api/paddle/vision/models/ResNet_cn.rst b/docs/api/paddle/vision/models/ResNet_cn.rst index 43957e5b94e..59df19bc527 100644 --- a/docs/api/paddle/vision/models/ResNet_cn.rst +++ b/docs/api/paddle/vision/models/ResNet_cn.rst @@ -22,26 +22,4 @@ ResNet模型,Layer的实例。 代码示例 ::::::::: -.. code-block:: python - - import paddle - from paddle.vision.models import ResNet - from paddle.vision.models.resnet import BottleneckBlock, BasicBlock - - # build ResNet with 18 layers - resnet18 = ResNet(BasicBlock, 18) - - # build ResNet with 50 layers - resnet50 = ResNet(BottleneckBlock, 50) - - # build Wide ResNet model - wide_resnet50_2 = ResNet(BottleneckBlock, 50, width=64*2) - - # build ResNeXt model - resnext50_32x4d = ResNet(BottleneckBlock, 50, width=4, groups=32) - - x = paddle.rand([1, 3, 224, 224]) - out = resnet18(x) - - print(out.shape) - # [1, 1000] +COPY-FROM: paddle.vision.models.ResNet diff --git a/docs/api/paddle/vision/models/resnet101_cn.rst b/docs/api/paddle/vision/models/resnet101_cn.rst index da08b2d0400..f1ff2cb52b9 100644 --- a/docs/api/paddle/vision/models/resnet101_cn.rst +++ b/docs/api/paddle/vision/models/resnet101_cn.rst @@ -17,19 +17,4 @@ resnet101模型,Layer的实例。 代码示例 ::::::::: -.. code-block:: python - - import paddle - from paddle.vision.models import resnet101 - - # build model - model = resnet101() - - # build model and load imagenet pretrained weight - # model = resnet101(pretrained=True) - - x = paddle.rand([1, 3, 224, 224]) - out = model(x) - - print(out.shape) - # [1, 1000] +COPY-FROM: paddle.vision.models.resnet101 diff --git a/docs/api/paddle/vision/models/resnet152_cn.rst b/docs/api/paddle/vision/models/resnet152_cn.rst index 0cb92848d79..0f71105b9d1 100644 --- a/docs/api/paddle/vision/models/resnet152_cn.rst +++ b/docs/api/paddle/vision/models/resnet152_cn.rst @@ -17,19 +17,4 @@ resnet152模型,Layer的实例。 代码示例 ::::::::: -.. code-block:: python - - import paddle - from paddle.vision.models import resnet152 - - # build model - model = resnet152() - - # build model and load imagenet pretrained weight - # model = resnet152(pretrained=True) - - x = paddle.rand([1, 3, 224, 224]) - out = model(x) - - print(out.shape) - # [1, 1000] +COPY-FROM: paddle.vision.models.resnet152 diff --git a/docs/api/paddle/vision/models/resnet18_cn.rst b/docs/api/paddle/vision/models/resnet18_cn.rst index da8766d9744..6b18ef5b669 100644 --- a/docs/api/paddle/vision/models/resnet18_cn.rst +++ b/docs/api/paddle/vision/models/resnet18_cn.rst @@ -17,19 +17,4 @@ resnet18模型,Layer的实例。 代码示例 ::::::::: -.. code-block:: python - - import paddle - from paddle.vision.models import resnet18 - - # build model - model = resnet18() - - # build model and load imagenet pretrained weight - # model = resnet18(pretrained=True) - - x = paddle.rand([1, 3, 224, 224]) - out = model(x) - - print(out.shape) - # [1, 1000] +COPY-FROM: paddle.vision.models.resnet18 diff --git a/docs/api/paddle/vision/models/resnet34_cn.rst b/docs/api/paddle/vision/models/resnet34_cn.rst index bffae597cd6..7f2e86b01da 100644 --- a/docs/api/paddle/vision/models/resnet34_cn.rst +++ b/docs/api/paddle/vision/models/resnet34_cn.rst @@ -17,19 +17,4 @@ resnet34模型,Layer的实例。 代码示例 ::::::::: -.. code-block:: python - - import paddle - from paddle.vision.models import resnet34 - - # build model - model = resnet34() - - # build model and load imagenet pretrained weight - # model = resnet34(pretrained=True) - - x = paddle.rand([1, 3, 224, 224]) - out = model(x) - - print(out.shape) - # [1, 1000] +COPY-FROM: paddle.vision.models.resnet34 diff --git a/docs/api/paddle/vision/models/resnet50_cn.rst b/docs/api/paddle/vision/models/resnet50_cn.rst index dc556914cb3..7f53cea84ea 100644 --- a/docs/api/paddle/vision/models/resnet50_cn.rst +++ b/docs/api/paddle/vision/models/resnet50_cn.rst @@ -17,19 +17,4 @@ resnet50模型,Layer的实例。 代码示例 ::::::::: -.. code-block:: python - - import paddle - from paddle.vision.models import resnet50 - - # build model - model = resnet50() - - # build model and load imagenet pretrained weight - # model = resnet50(pretrained=True) - - x = paddle.rand([1, 3, 224, 224]) - out = model(x) - - print(out.shape) - # [1, 1000] +COPY-FROM: paddle.vision.models.resnet50 diff --git a/docs/api/paddle/vision/models/resnext101_32x4d_cn.rst b/docs/api/paddle/vision/models/resnext101_32x4d_cn.rst index 06a7027a9f5..3f9858170bc 100644 --- a/docs/api/paddle/vision/models/resnext101_32x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext101_32x4d_cn.rst @@ -17,19 +17,4 @@ resnext101_32x4d模型,Layer的实例。 代码示例 ::::::::: -.. code-block:: python - - import paddle - from paddle.vision.models import resnext101_32x4d - - # build model - model = resnext101_32x4d() - - # build model and load imagenet pretrained weight - # model = resnext101_32x4d(pretrained=True) - - x = paddle.rand([1, 3, 224, 224]) - out = model(x) - - print(out.shape) - # [1, 1000] +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 5915155ab9b..511ccf7b93d 100644 --- a/docs/api/paddle/vision/models/resnext101_64x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext101_64x4d_cn.rst @@ -17,19 +17,4 @@ resnext101_64x4d模型,Layer的实例。 代码示例 ::::::::: -.. code-block:: python - - import paddle - from paddle.vision.models import resnext101_64x4d - - # build model - model = resnext101_64x4d() - - # build model and load imagenet pretrained weight - # model = resnext101_64x4d(pretrained=True) - - x = paddle.rand([1, 3, 224, 224]) - out = model(x) - - print(out.shape) - # [1, 1000] +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 58b9a037806..872c90f04e9 100644 --- a/docs/api/paddle/vision/models/resnext152_32x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext152_32x4d_cn.rst @@ -17,19 +17,4 @@ resnext152_32x4d模型,Layer的实例。 代码示例 ::::::::: -.. code-block:: python - - import paddle - from paddle.vision.models import resnext152_32x4d - - # build model - model = resnext152_32x4d() - - # build model and load imagenet pretrained weight - # model = resnext152_32x4d(pretrained=True) - - x = paddle.rand([1, 3, 224, 224]) - out = model(x) - - print(out.shape) - # [1, 1000] +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 5d387117af7..13a8dd7136f 100644 --- a/docs/api/paddle/vision/models/resnext152_64x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext152_64x4d_cn.rst @@ -17,19 +17,4 @@ resnext152_64x4d模型,Layer的实例。 代码示例 ::::::::: -.. code-block:: python - - import paddle - from paddle.vision.models import resnext152_64x4d - - # build model - model = resnext152_64x4d() - - # build model and load imagenet pretrained weight - # model = resnext152_64x4d(pretrained=True) - - x = paddle.rand([1, 3, 224, 224]) - out = model(x) - - print(out.shape) - # [1, 1000] +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 fc256509f7e..498779f7b97 100644 --- a/docs/api/paddle/vision/models/resnext50_32x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext50_32x4d_cn.rst @@ -17,19 +17,4 @@ resnext50_32x4d模型,Layer的实例。 代码示例 ::::::::: -.. code-block:: python - - import paddle - from paddle.vision.models import resnext50_32x4d - - # build model - model = resnext50_32x4d() - - # build model and load imagenet pretrained weight - # model = resnext50_32x4d(pretrained=True) - - x = paddle.rand([1, 3, 224, 224]) - out = model(x) - - print(out.shape) - # [1, 1000] +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 4063de99465..7bc8933e5c5 100644 --- a/docs/api/paddle/vision/models/resnext50_64x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext50_64x4d_cn.rst @@ -17,19 +17,4 @@ resnext50_64x4d模型,Layer的实例。 代码示例 ::::::::: -.. code-block:: python - - import paddle - from paddle.vision.models import resnext50_64x4d - - # build model - model = resnext50_64x4d() - - # build model and load imagenet pretrained weight - # model = resnext50_64x4d(pretrained=True) - - x = paddle.rand([1, 3, 224, 224]) - out = model(x) - - print(out.shape) - # [1, 1000] +COPY-FROM: paddle.vision.models.resnext50_64x4d 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 c6a1a8a8341..c3a2cc4ffd5 100644 --- a/docs/api/paddle/vision/models/wide_resnet101_2_cn.rst +++ b/docs/api/paddle/vision/models/wide_resnet101_2_cn.rst @@ -17,19 +17,4 @@ wide_resnet101_2模型,Layer的实例。 代码示例 ::::::::: -.. code-block:: python - - import paddle - from paddle.vision.models import wide_resnet101_2 - - # build model - model = wide_resnet101_2() - - # build model and load imagenet pretrained weight - # model = wide_resnet101_2(pretrained=True) - - x = paddle.rand([1, 3, 224, 224]) - out = model(x) - - print(out.shape) - # [1, 1000] +COPY-FROM: paddle.vision.models.wide_resnet101_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 11c671d2593..2eeabac0a09 100644 --- a/docs/api/paddle/vision/models/wide_resnet50_2_cn.rst +++ b/docs/api/paddle/vision/models/wide_resnet50_2_cn.rst @@ -17,19 +17,4 @@ wide_resnet50_2模型,Layer的实例。 代码示例 ::::::::: -.. code-block:: python - - import paddle - from paddle.vision.models import wide_resnet50_2 - - # build model - model = wide_resnet50_2() - - # build model and load imagenet pretrained weight - # model = wide_resnet50_2(pretrained=True) - - x = paddle.rand([1, 3, 224, 224]) - out = model(x) - - print(out.shape) - # [1, 1000] +COPY-FROM: paddle.vision.models.wide_resnet50_2 From 519db683ef63107bc33638a02f0e2e86fd8444b3 Mon Sep 17 00:00:00 2001 From: Nyakku Shigure Date: Fri, 29 Apr 2022 08:23:29 +0000 Subject: [PATCH 06/11] add a blank line --- docs/api/paddle/vision/models/ResNet_cn.rst | 3 ++- docs/api/paddle/vision/models/resnet101_cn.rst | 3 ++- docs/api/paddle/vision/models/resnet152_cn.rst | 3 ++- docs/api/paddle/vision/models/resnet18_cn.rst | 3 ++- docs/api/paddle/vision/models/resnet34_cn.rst | 3 ++- docs/api/paddle/vision/models/resnet50_cn.rst | 3 ++- docs/api/paddle/vision/models/resnext101_32x4d_cn.rst | 3 ++- docs/api/paddle/vision/models/resnext101_64x4d_cn.rst | 3 ++- docs/api/paddle/vision/models/resnext152_32x4d_cn.rst | 3 ++- docs/api/paddle/vision/models/resnext152_64x4d_cn.rst | 3 ++- docs/api/paddle/vision/models/resnext50_32x4d_cn.rst | 3 ++- docs/api/paddle/vision/models/resnext50_64x4d_cn.rst | 3 ++- docs/api/paddle/vision/models/wide_resnet101_2_cn.rst | 3 ++- docs/api/paddle/vision/models/wide_resnet50_2_cn.rst | 3 ++- 14 files changed, 28 insertions(+), 14 deletions(-) diff --git a/docs/api/paddle/vision/models/ResNet_cn.rst b/docs/api/paddle/vision/models/ResNet_cn.rst index 59df19bc527..14ad285254d 100644 --- a/docs/api/paddle/vision/models/ResNet_cn.rst +++ b/docs/api/paddle/vision/models/ResNet_cn.rst @@ -5,7 +5,8 @@ ResNet .. py:class:: paddle.vision.models.ResNet(Block, depth=50, width=64, num_classes=1000, with_pool=True, groups=1) - ResNet模型,来自论文 `"Deep Residual Learning for Image Recognition" `_ 。 + +ResNet模型,来自论文 `"Deep Residual Learning for Image Recognition" `_ 。 参数 ::::::::: diff --git a/docs/api/paddle/vision/models/resnet101_cn.rst b/docs/api/paddle/vision/models/resnet101_cn.rst index f1ff2cb52b9..f841bf5d760 100644 --- a/docs/api/paddle/vision/models/resnet101_cn.rst +++ b/docs/api/paddle/vision/models/resnet101_cn.rst @@ -5,7 +5,8 @@ resnet101 .. py:function:: paddle.vision.models.resnet101(pretrained=False, **kwargs) - 101层的resnet模型,来自论文 `"Deep Residual Learning for Image Recognition" `_ 。 + +101层的resnet模型,来自论文 `"Deep Residual Learning for Image Recognition" `_ 。 参数 ::::::::: diff --git a/docs/api/paddle/vision/models/resnet152_cn.rst b/docs/api/paddle/vision/models/resnet152_cn.rst index 0f71105b9d1..d9cdb15c177 100644 --- a/docs/api/paddle/vision/models/resnet152_cn.rst +++ b/docs/api/paddle/vision/models/resnet152_cn.rst @@ -5,7 +5,8 @@ resnet152 .. py:function:: paddle.vision.models.resnet152(pretrained=False, **kwargs) - 152层的resnet模型,来自论文 `"Deep Residual Learning for Image Recognition" `_ 。 + +152层的resnet模型,来自论文 `"Deep Residual Learning for Image Recognition" `_ 。 参数 ::::::::: diff --git a/docs/api/paddle/vision/models/resnet18_cn.rst b/docs/api/paddle/vision/models/resnet18_cn.rst index 6b18ef5b669..4d054e8547f 100644 --- a/docs/api/paddle/vision/models/resnet18_cn.rst +++ b/docs/api/paddle/vision/models/resnet18_cn.rst @@ -5,7 +5,8 @@ resnet18 .. py:function:: paddle.vision.models.resnet18(pretrained=False, **kwargs) - 18层的resnet模型,来自论文 `"Deep Residual Learning for Image Recognition" `_ 。 + +18层的resnet模型,来自论文 `"Deep Residual Learning for Image Recognition" `_ 。 参数 ::::::::: diff --git a/docs/api/paddle/vision/models/resnet34_cn.rst b/docs/api/paddle/vision/models/resnet34_cn.rst index 7f2e86b01da..47a70ff1ee2 100644 --- a/docs/api/paddle/vision/models/resnet34_cn.rst +++ b/docs/api/paddle/vision/models/resnet34_cn.rst @@ -5,7 +5,8 @@ resnet34 .. py:function:: paddle.vision.models.resnet34(pretrained=False, **kwargs) - 34层的resnet模型,来自论文 `"Deep Residual Learning for Image Recognition" `_ 。 + +34层的resnet模型,来自论文 `"Deep Residual Learning for Image Recognition" `_ 。 参数 ::::::::: diff --git a/docs/api/paddle/vision/models/resnet50_cn.rst b/docs/api/paddle/vision/models/resnet50_cn.rst index 7f53cea84ea..692889c970e 100644 --- a/docs/api/paddle/vision/models/resnet50_cn.rst +++ b/docs/api/paddle/vision/models/resnet50_cn.rst @@ -5,7 +5,8 @@ resnet50 .. py:function:: paddle.vision.models.resnet50(pretrained=False, **kwargs) - 50层的resnet模型,来自论文 `"Deep Residual Learning for Image Recognition" `_ 。 + +50层的resnet模型,来自论文 `"Deep Residual Learning for Image Recognition" `_ 。 参数 ::::::::: diff --git a/docs/api/paddle/vision/models/resnext101_32x4d_cn.rst b/docs/api/paddle/vision/models/resnext101_32x4d_cn.rst index 3f9858170bc..6367839ecfd 100644 --- a/docs/api/paddle/vision/models/resnext101_32x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext101_32x4d_cn.rst @@ -5,7 +5,8 @@ resnext101_32x4d .. py:function:: paddle.vision.models.resnext101_32x4d(pretrained=False, **kwargs) - ResNeXt-101 32x4d模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 + +ResNeXt-101 32x4d模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 参数 ::::::::: diff --git a/docs/api/paddle/vision/models/resnext101_64x4d_cn.rst b/docs/api/paddle/vision/models/resnext101_64x4d_cn.rst index 511ccf7b93d..822f00253aa 100644 --- a/docs/api/paddle/vision/models/resnext101_64x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext101_64x4d_cn.rst @@ -5,7 +5,8 @@ resnext101_64x4d .. py:function:: paddle.vision.models.resnext101_64x4d(pretrained=False, **kwargs) - ResNeXt-101 64x4d模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 + +ResNeXt-101 64x4d模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 参数 ::::::::: diff --git a/docs/api/paddle/vision/models/resnext152_32x4d_cn.rst b/docs/api/paddle/vision/models/resnext152_32x4d_cn.rst index 872c90f04e9..f77c24dcf1a 100644 --- a/docs/api/paddle/vision/models/resnext152_32x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext152_32x4d_cn.rst @@ -5,7 +5,8 @@ resnext152_32x4d .. py:function:: paddle.vision.models.resnext152_32x4d(pretrained=False, **kwargs) - ResNeXt-152 32x4d模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 + +ResNeXt-152 32x4d模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 参数 ::::::::: diff --git a/docs/api/paddle/vision/models/resnext152_64x4d_cn.rst b/docs/api/paddle/vision/models/resnext152_64x4d_cn.rst index 13a8dd7136f..5f055e9bb69 100644 --- a/docs/api/paddle/vision/models/resnext152_64x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext152_64x4d_cn.rst @@ -5,7 +5,8 @@ resnext152_64x4d .. py:function:: paddle.vision.models.resnext152_64x4d(pretrained=False, **kwargs) - ResNeXt-152 64x4d模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 + +ResNeXt-152 64x4d模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 参数 ::::::::: diff --git a/docs/api/paddle/vision/models/resnext50_32x4d_cn.rst b/docs/api/paddle/vision/models/resnext50_32x4d_cn.rst index 498779f7b97..e650f5d0067 100644 --- a/docs/api/paddle/vision/models/resnext50_32x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext50_32x4d_cn.rst @@ -5,7 +5,8 @@ resnext50_32x4d .. py:function:: paddle.vision.models.resnext50_32x4d(pretrained=False, **kwargs) - ResNeXt-50 32x4d模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 + +ResNeXt-50 32x4d模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 参数 ::::::::: diff --git a/docs/api/paddle/vision/models/resnext50_64x4d_cn.rst b/docs/api/paddle/vision/models/resnext50_64x4d_cn.rst index 7bc8933e5c5..99a8b89ea84 100644 --- a/docs/api/paddle/vision/models/resnext50_64x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext50_64x4d_cn.rst @@ -5,7 +5,8 @@ resnext50_64x4d .. py:function:: paddle.vision.models.resnext50_64x4d(pretrained=False, **kwargs) - ResNeXt-50 64x4d模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 + +ResNeXt-50 64x4d模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 参数 ::::::::: 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 c3a2cc4ffd5..00e31a6f985 100644 --- a/docs/api/paddle/vision/models/wide_resnet101_2_cn.rst +++ b/docs/api/paddle/vision/models/wide_resnet101_2_cn.rst @@ -5,7 +5,8 @@ wide_resnet101_2 .. py:function:: paddle.vision.models.wide_resnet101_2(pretrained=False, **kwargs) - 101层的wide_resnet模型,来自论文 `"Wide Residual Networks" `_ 。 + +101层的wide_resnet模型,来自论文 `"Wide Residual Networks" `_ 。 参数 ::::::::: 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 2eeabac0a09..4cb19a274c0 100644 --- a/docs/api/paddle/vision/models/wide_resnet50_2_cn.rst +++ b/docs/api/paddle/vision/models/wide_resnet50_2_cn.rst @@ -5,7 +5,8 @@ wide_resnet50_2 .. py:function:: paddle.vision.models.wide_resnet50_2(pretrained=False, **kwargs) - 50层的wide_resnet模型,来自论文 `"Wide Residual Networks" `_ 。 + +50层的wide_resnet模型,来自论文 `"Wide Residual Networks" `_ 。 参数 ::::::::: From aa3571cf46099d835591e4cbefa1c70fe9762b71 Mon Sep 17 00:00:00 2001 From: Nyakku Shigure Date: Wed, 1 Jun 2022 15:07:10 +0000 Subject: [PATCH 07/11] trigger ci (remove PADDLEPADDLE_PR) From bd10c9f1688a558b383c1aedad7d6c753d4ec695 Mon Sep 17 00:00:00 2001 From: Nyakku Shigure Date: Tue, 14 Jun 2022 15:04:29 +0000 Subject: [PATCH 08/11] refine `Returns` --- docs/api/paddle/vision/models/ResNet_cn.rst | 4 ++-- docs/api/paddle/vision/models/resnet101_cn.rst | 7 +++++-- docs/api/paddle/vision/models/resnet152_cn.rst | 7 +++++-- docs/api/paddle/vision/models/resnet18_cn.rst | 7 +++++-- docs/api/paddle/vision/models/resnet34_cn.rst | 7 +++++-- docs/api/paddle/vision/models/resnet50_cn.rst | 7 +++++-- docs/api/paddle/vision/models/resnext101_32x4d_cn.rst | 7 +++++-- docs/api/paddle/vision/models/resnext101_64x4d_cn.rst | 7 +++++-- docs/api/paddle/vision/models/resnext152_32x4d_cn.rst | 7 +++++-- docs/api/paddle/vision/models/resnext152_64x4d_cn.rst | 7 +++++-- docs/api/paddle/vision/models/resnext50_32x4d_cn.rst | 7 +++++-- docs/api/paddle/vision/models/resnext50_64x4d_cn.rst | 7 +++++-- docs/api/paddle/vision/models/wide_resnet101_2_cn.rst | 7 +++++-- docs/api/paddle/vision/models/wide_resnet50_2_cn.rst | 7 +++++-- 14 files changed, 67 insertions(+), 28 deletions(-) diff --git a/docs/api/paddle/vision/models/ResNet_cn.rst b/docs/api/paddle/vision/models/ResNet_cn.rst index 14ad285254d..b1d4d53afd7 100644 --- a/docs/api/paddle/vision/models/ResNet_cn.rst +++ b/docs/api/paddle/vision/models/ResNet_cn.rst @@ -6,7 +6,7 @@ ResNet .. py:class:: paddle.vision.models.ResNet(Block, depth=50, width=64, num_classes=1000, with_pool=True, groups=1) -ResNet模型,来自论文 `"Deep Residual Learning for Image Recognition" `_ 。 +ResNet 模型,来自论文 `"Deep Residual Learning for Image Recognition" `_ 。 参数 ::::::::: @@ -19,7 +19,7 @@ ResNet模型,来自论文 `"Deep Residual Learning for Image Recognition" `_ 。 +101 层的 ResNet 模型,来自论文 `"Deep Residual Learning for Image Recognition" `_ 。 参数 ::::::::: + - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 返回 ::::::::: -resnet101模型,Layer的实例。 + +101 层的 ResNet 模型,:ref:`cn_api_fluid_dygraph_Layer` 的实例。 代码示例 ::::::::: + COPY-FROM: paddle.vision.models.resnet101 diff --git a/docs/api/paddle/vision/models/resnet152_cn.rst b/docs/api/paddle/vision/models/resnet152_cn.rst index d9cdb15c177..db6f6906dca 100644 --- a/docs/api/paddle/vision/models/resnet152_cn.rst +++ b/docs/api/paddle/vision/models/resnet152_cn.rst @@ -6,16 +6,19 @@ resnet152 .. py:function:: paddle.vision.models.resnet152(pretrained=False, **kwargs) -152层的resnet模型,来自论文 `"Deep Residual Learning for Image Recognition" `_ 。 +152 层的 ResNet 模型,来自论文 `"Deep Residual Learning for Image Recognition" `_ 。 参数 ::::::::: + - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 返回 ::::::::: -resnet152模型,Layer的实例。 + +152 层的 ResNet 模型,:ref:`cn_api_fluid_dygraph_Layer` 的实例。 代码示例 ::::::::: + COPY-FROM: paddle.vision.models.resnet152 diff --git a/docs/api/paddle/vision/models/resnet18_cn.rst b/docs/api/paddle/vision/models/resnet18_cn.rst index 4d054e8547f..2bf72a1cd7a 100644 --- a/docs/api/paddle/vision/models/resnet18_cn.rst +++ b/docs/api/paddle/vision/models/resnet18_cn.rst @@ -6,16 +6,19 @@ resnet18 .. py:function:: paddle.vision.models.resnet18(pretrained=False, **kwargs) -18层的resnet模型,来自论文 `"Deep Residual Learning for Image Recognition" `_ 。 +18 层的 ResNet 模型,来自论文 `"Deep Residual Learning for Image Recognition" `_ 。 参数 ::::::::: + - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 返回 ::::::::: -resnet18模型,Layer的实例。 + +18 层的 ResNet 模型,:ref:`cn_api_fluid_dygraph_Layer` 的实例。 代码示例 ::::::::: + COPY-FROM: paddle.vision.models.resnet18 diff --git a/docs/api/paddle/vision/models/resnet34_cn.rst b/docs/api/paddle/vision/models/resnet34_cn.rst index 47a70ff1ee2..a87b0f4318c 100644 --- a/docs/api/paddle/vision/models/resnet34_cn.rst +++ b/docs/api/paddle/vision/models/resnet34_cn.rst @@ -6,16 +6,19 @@ resnet34 .. py:function:: paddle.vision.models.resnet34(pretrained=False, **kwargs) -34层的resnet模型,来自论文 `"Deep Residual Learning for Image Recognition" `_ 。 +34 层的 ResNet 模型,来自论文 `"Deep Residual Learning for Image Recognition" `_ 。 参数 ::::::::: + - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 返回 ::::::::: -resnet34模型,Layer的实例。 + +34 层的 ResNet 模型,:ref:`cn_api_fluid_dygraph_Layer` 的实例。 代码示例 ::::::::: + COPY-FROM: paddle.vision.models.resnet34 diff --git a/docs/api/paddle/vision/models/resnet50_cn.rst b/docs/api/paddle/vision/models/resnet50_cn.rst index 692889c970e..aa7d7cc0661 100644 --- a/docs/api/paddle/vision/models/resnet50_cn.rst +++ b/docs/api/paddle/vision/models/resnet50_cn.rst @@ -6,16 +6,19 @@ resnet50 .. py:function:: paddle.vision.models.resnet50(pretrained=False, **kwargs) -50层的resnet模型,来自论文 `"Deep Residual Learning for Image Recognition" `_ 。 +50 层的 ResNet 模型,来自论文 `"Deep Residual Learning for Image Recognition" `_ 。 参数 ::::::::: + - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 返回 ::::::::: -resnet50模型,Layer的实例。 + +50 层的 ResNet 模型,:ref:`cn_api_fluid_dygraph_Layer` 的实例。 代码示例 ::::::::: + COPY-FROM: paddle.vision.models.resnet50 diff --git a/docs/api/paddle/vision/models/resnext101_32x4d_cn.rst b/docs/api/paddle/vision/models/resnext101_32x4d_cn.rst index 6367839ecfd..bbaee9483f7 100644 --- a/docs/api/paddle/vision/models/resnext101_32x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext101_32x4d_cn.rst @@ -6,16 +6,19 @@ resnext101_32x4d .. py:function:: paddle.vision.models.resnext101_32x4d(pretrained=False, **kwargs) -ResNeXt-101 32x4d模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 +ResNeXt-101 32x4d 模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 参数 ::::::::: + - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 返回 ::::::::: -resnext101_32x4d模型,Layer的实例。 + +ResNeXt-101 32x4d 模型,:ref:`cn_api_fluid_dygraph_Layer` 的实例。 代码示例 ::::::::: + 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 822f00253aa..2f30c14e04f 100644 --- a/docs/api/paddle/vision/models/resnext101_64x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext101_64x4d_cn.rst @@ -6,16 +6,19 @@ resnext101_64x4d .. py:function:: paddle.vision.models.resnext101_64x4d(pretrained=False, **kwargs) -ResNeXt-101 64x4d模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 +ResNeXt-101 64x4d 模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 参数 ::::::::: + - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 返回 ::::::::: -resnext101_64x4d模型,Layer的实例。 + +ResNeXt-101 64x4d 模型,:ref:`cn_api_fluid_dygraph_Layer` 的实例。 代码示例 ::::::::: + 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 f77c24dcf1a..7eaa02345ae 100644 --- a/docs/api/paddle/vision/models/resnext152_32x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext152_32x4d_cn.rst @@ -6,16 +6,19 @@ resnext152_32x4d .. py:function:: paddle.vision.models.resnext152_32x4d(pretrained=False, **kwargs) -ResNeXt-152 32x4d模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 +ResNeXt-152 32x4d 模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 参数 ::::::::: + - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 返回 ::::::::: -resnext152_32x4d模型,Layer的实例。 + +ResNeXt-152 32x4d 模型,:ref:`cn_api_fluid_dygraph_Layer` 的实例。 代码示例 ::::::::: + 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 5f055e9bb69..43104739465 100644 --- a/docs/api/paddle/vision/models/resnext152_64x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext152_64x4d_cn.rst @@ -6,16 +6,19 @@ resnext152_64x4d .. py:function:: paddle.vision.models.resnext152_64x4d(pretrained=False, **kwargs) -ResNeXt-152 64x4d模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 +ResNeXt-152 64x4d 模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 参数 ::::::::: + - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 返回 ::::::::: -resnext152_64x4d模型,Layer的实例。 + +ResNeXt-152 64x4d 模型,:ref:`cn_api_fluid_dygraph_Layer` 的实例。 代码示例 ::::::::: + 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 e650f5d0067..f5534cc1320 100644 --- a/docs/api/paddle/vision/models/resnext50_32x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext50_32x4d_cn.rst @@ -6,16 +6,19 @@ resnext50_32x4d .. py:function:: paddle.vision.models.resnext50_32x4d(pretrained=False, **kwargs) -ResNeXt-50 32x4d模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 +ResNeXt-50 32x4d 模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 参数 ::::::::: + - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 返回 ::::::::: -resnext50_32x4d模型,Layer的实例。 + +ResNeXt-50 32x4d 模型,:ref:`cn_api_fluid_dygraph_Layer` 的实例。 代码示例 ::::::::: + 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 99a8b89ea84..ad8e1ebaadb 100644 --- a/docs/api/paddle/vision/models/resnext50_64x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext50_64x4d_cn.rst @@ -6,16 +6,19 @@ resnext50_64x4d .. py:function:: paddle.vision.models.resnext50_64x4d(pretrained=False, **kwargs) -ResNeXt-50 64x4d模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 +ResNeXt-50 64x4d 模型,来自论文 `"Aggregated Residual Transformations for Deep Neural Networks" `_ 。 参数 ::::::::: + - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 返回 ::::::::: -resnext50_64x4d模型,Layer的实例。 + +ResNeXt-50 64x4d 模型,:ref:`cn_api_fluid_dygraph_Layer` 的实例。 代码示例 ::::::::: + COPY-FROM: paddle.vision.models.resnext50_64x4d 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 00e31a6f985..ce3782c531a 100644 --- a/docs/api/paddle/vision/models/wide_resnet101_2_cn.rst +++ b/docs/api/paddle/vision/models/wide_resnet101_2_cn.rst @@ -6,16 +6,19 @@ wide_resnet101_2 .. py:function:: paddle.vision.models.wide_resnet101_2(pretrained=False, **kwargs) -101层的wide_resnet模型,来自论文 `"Wide Residual Networks" `_ 。 +Wide ResNet-101-2 模型,来自论文 `"Wide Residual Networks" `_ 。 参数 ::::::::: + - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 返回 ::::::::: -wide_resnet101_2模型,Layer的实例。 + +Wide ResNet-101-2 模型,:ref:`cn_api_fluid_dygraph_Layer` 的实例。 代码示例 ::::::::: + COPY-FROM: paddle.vision.models.wide_resnet101_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 4cb19a274c0..559cfb6467b 100644 --- a/docs/api/paddle/vision/models/wide_resnet50_2_cn.rst +++ b/docs/api/paddle/vision/models/wide_resnet50_2_cn.rst @@ -6,16 +6,19 @@ wide_resnet50_2 .. py:function:: paddle.vision.models.wide_resnet50_2(pretrained=False, **kwargs) -50层的wide_resnet模型,来自论文 `"Wide Residual Networks" `_ 。 +Wide ResNet-50-2 模型,来自论文 `"Wide Residual Networks" `_ 。 参数 ::::::::: + - **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 返回 ::::::::: -wide_resnet50_2模型,Layer的实例。 + +Wide ResNet-50-2 模型,:ref:`cn_api_fluid_dygraph_Layer` 的实例。 代码示例 ::::::::: + COPY-FROM: paddle.vision.models.wide_resnet50_2 From 0e42bcdc76d368bfd4a1ac8d68ef7b1ea5dc9d87 Mon Sep 17 00:00:00 2001 From: Nyakku Shigure Date: Tue, 14 Jun 2022 15:17:41 +0000 Subject: [PATCH 09/11] add space between cn and en char --- docs/api/paddle/vision/models/ResNet_cn.rst | 7 +++++-- docs/api/paddle/vision/models/resnet101_cn.rst | 2 +- docs/api/paddle/vision/models/resnet152_cn.rst | 2 +- docs/api/paddle/vision/models/resnet18_cn.rst | 2 +- docs/api/paddle/vision/models/resnet34_cn.rst | 2 +- docs/api/paddle/vision/models/resnet50_cn.rst | 2 +- docs/api/paddle/vision/models/resnext101_32x4d_cn.rst | 2 +- docs/api/paddle/vision/models/resnext101_64x4d_cn.rst | 2 +- docs/api/paddle/vision/models/resnext152_32x4d_cn.rst | 2 +- docs/api/paddle/vision/models/resnext152_64x4d_cn.rst | 2 +- docs/api/paddle/vision/models/resnext50_32x4d_cn.rst | 2 +- docs/api/paddle/vision/models/resnext50_64x4d_cn.rst | 2 +- docs/api/paddle/vision/models/wide_resnet101_2_cn.rst | 2 +- docs/api/paddle/vision/models/wide_resnet50_2_cn.rst | 2 +- 14 files changed, 18 insertions(+), 15 deletions(-) diff --git a/docs/api/paddle/vision/models/ResNet_cn.rst b/docs/api/paddle/vision/models/ResNet_cn.rst index b1d4d53afd7..87b31bff6b0 100644 --- a/docs/api/paddle/vision/models/ResNet_cn.rst +++ b/docs/api/paddle/vision/models/ResNet_cn.rst @@ -10,17 +10,20 @@ ResNet 模型,来自论文 `"Deep Residual Learning for Image Recognition" Date: Tue, 14 Jun 2022 15:49:34 +0000 Subject: [PATCH 10/11] refine desc of pretrained --- docs/api/paddle/vision/models/resnet101_cn.rst | 2 +- docs/api/paddle/vision/models/resnet152_cn.rst | 2 +- docs/api/paddle/vision/models/resnet18_cn.rst | 2 +- docs/api/paddle/vision/models/resnet34_cn.rst | 2 +- docs/api/paddle/vision/models/resnet50_cn.rst | 2 +- docs/api/paddle/vision/models/resnext101_32x4d_cn.rst | 2 +- docs/api/paddle/vision/models/resnext101_64x4d_cn.rst | 2 +- docs/api/paddle/vision/models/resnext152_32x4d_cn.rst | 2 +- docs/api/paddle/vision/models/resnext152_64x4d_cn.rst | 2 +- docs/api/paddle/vision/models/resnext50_32x4d_cn.rst | 2 +- docs/api/paddle/vision/models/resnext50_64x4d_cn.rst | 2 +- docs/api/paddle/vision/models/wide_resnet101_2_cn.rst | 2 +- docs/api/paddle/vision/models/wide_resnet50_2_cn.rst | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/api/paddle/vision/models/resnet101_cn.rst b/docs/api/paddle/vision/models/resnet101_cn.rst index 784363d055b..188cdc94459 100644 --- a/docs/api/paddle/vision/models/resnet101_cn.rst +++ b/docs/api/paddle/vision/models/resnet101_cn.rst @@ -11,7 +11,7 @@ resnet101 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在 ImageNet 数据集上的预训练权重。默认值:False。 + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值:False。 返回 ::::::::: diff --git a/docs/api/paddle/vision/models/resnet152_cn.rst b/docs/api/paddle/vision/models/resnet152_cn.rst index 9a5a22bf345..4273d9064d3 100644 --- a/docs/api/paddle/vision/models/resnet152_cn.rst +++ b/docs/api/paddle/vision/models/resnet152_cn.rst @@ -11,7 +11,7 @@ resnet152 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在 ImageNet 数据集上的预训练权重。默认值:False。 + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值:False。 返回 ::::::::: diff --git a/docs/api/paddle/vision/models/resnet18_cn.rst b/docs/api/paddle/vision/models/resnet18_cn.rst index a8513e80a34..b2ff670742a 100644 --- a/docs/api/paddle/vision/models/resnet18_cn.rst +++ b/docs/api/paddle/vision/models/resnet18_cn.rst @@ -11,7 +11,7 @@ resnet18 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在 ImageNet 数据集上的预训练权重。默认值:False。 + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值:False。 返回 ::::::::: diff --git a/docs/api/paddle/vision/models/resnet34_cn.rst b/docs/api/paddle/vision/models/resnet34_cn.rst index 89002041d1a..cf2b4038400 100644 --- a/docs/api/paddle/vision/models/resnet34_cn.rst +++ b/docs/api/paddle/vision/models/resnet34_cn.rst @@ -11,7 +11,7 @@ resnet34 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在 ImageNet 数据集上的预训练权重。默认值:False。 + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值:False。 返回 ::::::::: diff --git a/docs/api/paddle/vision/models/resnet50_cn.rst b/docs/api/paddle/vision/models/resnet50_cn.rst index b64232c12f4..97370099fd3 100644 --- a/docs/api/paddle/vision/models/resnet50_cn.rst +++ b/docs/api/paddle/vision/models/resnet50_cn.rst @@ -11,7 +11,7 @@ resnet50 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在 ImageNet 数据集上的预训练权重。默认值:False。 + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值:False。 返回 ::::::::: diff --git a/docs/api/paddle/vision/models/resnext101_32x4d_cn.rst b/docs/api/paddle/vision/models/resnext101_32x4d_cn.rst index 1cd26173cd1..17ee342057d 100644 --- a/docs/api/paddle/vision/models/resnext101_32x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext101_32x4d_cn.rst @@ -11,7 +11,7 @@ ResNeXt-101 32x4d 模型,来自论文 `"Aggregated Residual Transformations fo 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在 ImageNet 数据集上的预训练权重。默认值:False。 + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值:False。 返回 ::::::::: diff --git a/docs/api/paddle/vision/models/resnext101_64x4d_cn.rst b/docs/api/paddle/vision/models/resnext101_64x4d_cn.rst index f1748b976c3..d984fbc27c6 100644 --- a/docs/api/paddle/vision/models/resnext101_64x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext101_64x4d_cn.rst @@ -11,7 +11,7 @@ ResNeXt-101 64x4d 模型,来自论文 `"Aggregated Residual Transformations fo 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在 ImageNet 数据集上的预训练权重。默认值:False。 + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值:False。 返回 ::::::::: diff --git a/docs/api/paddle/vision/models/resnext152_32x4d_cn.rst b/docs/api/paddle/vision/models/resnext152_32x4d_cn.rst index e7af1bf5657..4bd223c7386 100644 --- a/docs/api/paddle/vision/models/resnext152_32x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext152_32x4d_cn.rst @@ -11,7 +11,7 @@ ResNeXt-152 32x4d 模型,来自论文 `"Aggregated Residual Transformations fo 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在 ImageNet 数据集上的预训练权重。默认值:False。 + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值:False。 返回 ::::::::: diff --git a/docs/api/paddle/vision/models/resnext152_64x4d_cn.rst b/docs/api/paddle/vision/models/resnext152_64x4d_cn.rst index ee7034a4164..21789ac464e 100644 --- a/docs/api/paddle/vision/models/resnext152_64x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext152_64x4d_cn.rst @@ -11,7 +11,7 @@ ResNeXt-152 64x4d 模型,来自论文 `"Aggregated Residual Transformations fo 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在 ImageNet 数据集上的预训练权重。默认值:False。 + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值:False。 返回 ::::::::: diff --git a/docs/api/paddle/vision/models/resnext50_32x4d_cn.rst b/docs/api/paddle/vision/models/resnext50_32x4d_cn.rst index 87ffa299f8a..2cea0a14603 100644 --- a/docs/api/paddle/vision/models/resnext50_32x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext50_32x4d_cn.rst @@ -11,7 +11,7 @@ ResNeXt-50 32x4d 模型,来自论文 `"Aggregated Residual Transformations for 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在 ImageNet 数据集上的预训练权重。默认值:False。 + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值:False。 返回 ::::::::: diff --git a/docs/api/paddle/vision/models/resnext50_64x4d_cn.rst b/docs/api/paddle/vision/models/resnext50_64x4d_cn.rst index d551b622cba..7b2101b4e73 100644 --- a/docs/api/paddle/vision/models/resnext50_64x4d_cn.rst +++ b/docs/api/paddle/vision/models/resnext50_64x4d_cn.rst @@ -11,7 +11,7 @@ ResNeXt-50 64x4d 模型,来自论文 `"Aggregated Residual Transformations for 参数 ::::::::: - - **pretrained** (bool,可选) - 是否加载在 ImageNet 数据集上的预训练权重。默认值:False。 + - **pretrained** (bool,可选) - 是否加载预训练权重。如果为 True,则返回在 ImageNet 上预训练的模型。默认值:False。 返回 ::::::::: 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 142645a8ade..8997279ce12 100644 --- a/docs/api/paddle/vision/models/wide_resnet101_2_cn.rst +++ b/docs/api/paddle/vision/models/wide_resnet101_2_cn.rst @@ -11,7 +11,7 @@ Wide ResNet-101-2 模型,来自论文 `"Wide Residual Networks" Date: Tue, 14 Jun 2022 16:16:50 +0000 Subject: [PATCH 11/11] fix wrong ref --- docs/api/paddle/vision/models/ResNet_cn.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/paddle/vision/models/ResNet_cn.rst b/docs/api/paddle/vision/models/ResNet_cn.rst index 87b31bff6b0..993f368deb5 100644 --- a/docs/api/paddle/vision/models/ResNet_cn.rst +++ b/docs/api/paddle/vision/models/ResNet_cn.rst @@ -21,7 +21,7 @@ ResNet 模型,来自论文 `"Deep Residual Learning for Image Recognition"