forked from PaddlePaddle/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PaddlePaddle Hackathon] add InceptionV3 zh doc (PaddlePaddle#3921)
* add inception_v3 * sync with en doc * remove argument config * add inceptionv3 into overview * add parameter with_pool * update inceptionv3 docs
- Loading branch information
Showing
3 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.. _cn_api_paddle_vision_models_InceptionV3: | ||
|
||
InceptionV3 | ||
------------------------------- | ||
|
||
.. py:class:: paddle.vision.models.InceptionV3(num_classes=1000, with_pool=True) | ||
InceptionV3模型,来自论文 `"Rethinking the Inception Architecture for Computer Vision" <https://arxiv.org/pdf/1512.00567.pdf>`_ 。 | ||
|
||
参数 | ||
::::::::: | ||
- **num_classes** (int, 可选) - 最后一个全连接层输出的维度。如果该值小于0,则不定义最后一个全连接层。默认值:1000。 | ||
- **with_pool** (bool,可选) - 是否定义最后一个全连接层之前的池化层。默认值:True。 | ||
|
||
返回 | ||
::::::::: | ||
InceptionV3模型,Layer的实例。 | ||
|
||
代码示例 | ||
::::::::: | ||
.. code-block:: python | ||
import paddle | ||
from paddle.vision.models import InceptionV3 | ||
inception_v3 = InceptionV3() | ||
x = paddle.rand([1, 3, 299, 299]) | ||
out = inception_v3(x) | ||
print(out.shape) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.. _cn_api_paddle_vision_models_inception_v3: | ||
|
||
inception_v3 | ||
------------------------------- | ||
|
||
.. py:function:: paddle.vision.models.inception_v3(pretrained=False, **kwargs) | ||
InceptionV3模型,来自论文 `"Rethinking the Inception Architecture for Computer Vision" <https://arxiv.org/pdf/1512.00567.pdf>`_ 。 | ||
|
||
参数 | ||
::::::::: | ||
- **pretrained** (bool,可选) - 是否加载在imagenet数据集上的预训练权重。默认值:False。 | ||
|
||
返回 | ||
::::::::: | ||
InceptionV3模型,Layer的实例。 | ||
|
||
代码示例 | ||
::::::::: | ||
.. code-block:: python | ||
import paddle | ||
from paddle.vision.models import inception_v3 | ||
# build model | ||
model = inception_v3() | ||
# build model and load imagenet pretrained weight | ||
# model = inception_v3(pretrained=True) | ||
x = paddle.rand([1, 3, 299, 299]) | ||
out = model(x) | ||
print(out.shape) |