Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
db9088be
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2299
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
db9088be
编写于
6月 17, 2022
作者:
N
Nyakku Shigure
提交者:
GitHub
6月 17, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update ResNet en docs (#43523)
* add `Returns` * refine en doc * refine parameter `pretrained`, test=document_fix
上级
50b4e5ee
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
69 addition
and
14 deletion
+69
-14
python/paddle/vision/models/resnet.py
python/paddle/vision/models/resnet.py
+69
-14
未找到文件。
python/paddle/vision/models/resnet.py
浏览文件 @
db9088be
...
...
@@ -181,13 +181,16 @@ class ResNet(nn.Layer):
Args:
Block (BasicBlock|BottleneckBlock): block module of model.
depth (int, optional): layers of
resn
et, Default: 50.
depth (int, optional): layers of
ResN
et, Default: 50.
width (int, optional): base width per convolution group for each convolution block, Default: 64.
num_classes (int, optional): output dim of last fc layer. If num_classes <=0, last fc layer
will not be defined. Default: 1000.
with_pool (bool, optional): use pool before the last fc layer or not. Default: True.
groups (int, optional): number of groups for each convolution block, Default: 1.
Returns:
ResNet model. An instance of :ref:`api_fluid_dygraph_Layer`.
Examples:
.. code-block:: python
...
...
@@ -330,7 +333,11 @@ def resnet18(pretrained=False, **kwargs):
`"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_
Args:
pretrained (bool, optional): If True, returns a model pre-trained on ImageNet. Default: False.
pretrained (bool, optional): Whether to load pre-trained weights. If True, returns a model pre-trained
on ImageNet. Default: False.
Returns:
ResNet 18-layer model. An instance of :ref:`api_fluid_dygraph_Layer`.
Examples:
.. code-block:: python
...
...
@@ -358,7 +365,11 @@ def resnet34(pretrained=False, **kwargs):
`"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_
Args:
pretrained (bool, optional): If True, returns a model pre-trained on ImageNet. Default: False.
pretrained (bool, optional): Whether to load pre-trained weights. If True, returns a model pre-trained
on ImageNet. Default: False.
Returns:
ResNet 34-layer model. An instance of :ref:`api_fluid_dygraph_Layer`.
Examples:
.. code-block:: python
...
...
@@ -386,7 +397,11 @@ def resnet50(pretrained=False, **kwargs):
`"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_
Args:
pretrained (bool, optional): If True, returns a model pre-trained on ImageNet. Default: False.
pretrained (bool, optional): Whether to load pre-trained weights. If True, returns a model pre-trained
on ImageNet. Default: False.
Returns:
ResNet 50-layer model. An instance of :ref:`api_fluid_dygraph_Layer`.
Examples:
.. code-block:: python
...
...
@@ -414,7 +429,11 @@ def resnet101(pretrained=False, **kwargs):
`"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_
Args:
pretrained (bool, optional): If True, returns a model pre-trained on ImageNet. Default: False.
pretrained (bool, optional): Whether to load pre-trained weights. If True, returns a model pre-trained
on ImageNet. Default: False.
Returns:
ResNet 101-layer. An instance of :ref:`api_fluid_dygraph_Layer`.
Examples:
.. code-block:: python
...
...
@@ -442,7 +461,11 @@ def resnet152(pretrained=False, **kwargs):
`"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_
Args:
pretrained (bool, optional): If True, returns a model pre-trained on ImageNet. Default: False.
pretrained (bool, optional): Whether to load pre-trained weights. If True, returns a model pre-trained
on ImageNet. Default: False.
Returns:
ResNet 152-layer model. An instance of :ref:`api_fluid_dygraph_Layer`.
Examples:
.. code-block:: python
...
...
@@ -470,7 +493,11 @@ def resnext50_32x4d(pretrained=False, **kwargs):
`"Aggregated Residual Transformations for Deep Neural Networks" <https://arxiv.org/pdf/1611.05431.pdf>`_
Args:
pretrained (bool, optional): If True, returns a model pre-trained on ImageNet. Default: False.
pretrained (bool, optional): Whether to load pre-trained weights. If True, returns a model pre-trained
on ImageNet. Default: False.
Returns:
ResNeXt-50 32x4d model. An instance of :ref:`api_fluid_dygraph_Layer`.
Examples:
.. code-block:: python
...
...
@@ -500,7 +527,11 @@ def resnext50_64x4d(pretrained=False, **kwargs):
`"Aggregated Residual Transformations for Deep Neural Networks" <https://arxiv.org/pdf/1611.05431.pdf>`_
Args:
pretrained (bool, optional): If True, returns a model pre-trained on ImageNet. Default: False.
pretrained (bool, optional): Whether to load pre-trained weights. If True, returns a model pre-trained
on ImageNet. Default: False.
Returns:
ResNeXt-50 64x4d model. An instance of :ref:`api_fluid_dygraph_Layer`.
Examples:
.. code-block:: python
...
...
@@ -530,7 +561,11 @@ def resnext101_32x4d(pretrained=False, **kwargs):
`"Aggregated Residual Transformations for Deep Neural Networks" <https://arxiv.org/pdf/1611.05431.pdf>`_
Args:
pretrained (bool, optional): If True, returns a model pre-trained on ImageNet. Default: False.
pretrained (bool, optional): Whether to load pre-trained weights. If True, returns a model pre-trained
on ImageNet. Default: False.
Returns:
ResNeXt-101 32x4d model. An instance of :ref:`api_fluid_dygraph_Layer`.
Examples:
.. code-block:: python
...
...
@@ -561,7 +596,11 @@ def resnext101_64x4d(pretrained=False, **kwargs):
`"Aggregated Residual Transformations for Deep Neural Networks" <https://arxiv.org/pdf/1611.05431.pdf>`_
Args:
pretrained (bool, optional): If True, returns a model pre-trained on ImageNet. Default: False.
pretrained (bool, optional): Whether to load pre-trained weights. If True, returns a model pre-trained
on ImageNet. Default: False.
Returns:
ResNeXt-101 64x4d model. An instance of :ref:`api_fluid_dygraph_Layer`.
Examples:
.. code-block:: python
...
...
@@ -592,7 +631,11 @@ def resnext152_32x4d(pretrained=False, **kwargs):
`"Aggregated Residual Transformations for Deep Neural Networks" <https://arxiv.org/pdf/1611.05431.pdf>`_
Args:
pretrained (bool, optional): If True, returns a model pre-trained on ImageNet. Default: False.
pretrained (bool, optional): Whether to load pre-trained weights. If True, returns a model pre-trained
on ImageNet. Default: False.
Returns:
ResNeXt-152 32x4d model. An instance of :ref:`api_fluid_dygraph_Layer`.
Examples:
.. code-block:: python
...
...
@@ -623,7 +666,11 @@ def resnext152_64x4d(pretrained=False, **kwargs):
`"Aggregated Residual Transformations for Deep Neural Networks" <https://arxiv.org/pdf/1611.05431.pdf>`_
Args:
pretrained (bool, optional): If True, returns a model pre-trained on ImageNet. Default: False.
pretrained (bool, optional): Whether to load pre-trained weights. If True, returns a model pre-trained
on ImageNet. Default: False.
Returns:
ResNeXt-152 64x4d model. An instance of :ref:`api_fluid_dygraph_Layer`.
Examples:
.. code-block:: python
...
...
@@ -654,7 +701,11 @@ def wide_resnet50_2(pretrained=False, **kwargs):
`"Wide Residual Networks" <https://arxiv.org/pdf/1605.07146.pdf>`_.
Args:
pretrained (bool, optional): If True, returns a model pre-trained on ImageNet. Default: False.
pretrained (bool, optional): Whether to load pre-trained weights. If True, returns a model pre-trained
on ImageNet. Default: False.
Returns:
Wide ResNet-50-2 model. An instance of :ref:`api_fluid_dygraph_Layer`.
Examples:
.. code-block:: python
...
...
@@ -683,7 +734,11 @@ def wide_resnet101_2(pretrained=False, **kwargs):
`"Wide Residual Networks" <https://arxiv.org/pdf/1605.07146.pdf>`_.
Args:
pretrained (bool, optional): If True, returns a model pre-trained on ImageNet. Default: False.
pretrained (bool, optional): Whether to load pre-trained weights. If True, returns a model pre-trained
on ImageNet. Default: False.
Returns:
Wide ResNet-101-2 model. An instance of :ref:`api_fluid_dygraph_Layer`.
Examples:
.. code-block:: python
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录