Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
FluidDoc
提交
40cc0b44
F
FluidDoc
项目概览
PaddlePaddle
/
FluidDoc
通知
5
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
23
列表
看板
标记
里程碑
合并请求
111
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
FluidDoc
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
23
Issue
23
列表
看板
标记
里程碑
合并请求
111
合并请求
111
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
40cc0b44
编写于
10月 09, 2019
作者:
W
wangguanzhong
提交者:
GitHub
10月 09, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update example (#1483)
上级
0b57f766
变更
11
显示空白变更内容
内联
并排
Showing
11 changed file
with
37 addition
and
41 deletion
+37
-41
doc/fluid/api_cn/layers_cn/anchor_generator_cn.rst
doc/fluid/api_cn/layers_cn/anchor_generator_cn.rst
+1
-1
doc/fluid/api_cn/layers_cn/bipartite_match_cn.rst
doc/fluid/api_cn/layers_cn/bipartite_match_cn.rst
+2
-2
doc/fluid/api_cn/layers_cn/box_clip_cn.rst
doc/fluid/api_cn/layers_cn/box_clip_cn.rst
+3
-3
doc/fluid/api_cn/layers_cn/box_coder_cn.rst
doc/fluid/api_cn/layers_cn/box_coder_cn.rst
+8
-12
doc/fluid/api_cn/layers_cn/box_decoder_and_assign_cn.rst
doc/fluid/api_cn/layers_cn/box_decoder_and_assign_cn.rst
+8
-8
doc/fluid/api_cn/layers_cn/clip_by_norm_cn.rst
doc/fluid/api_cn/layers_cn/clip_by_norm_cn.rst
+2
-2
doc/fluid/api_cn/layers_cn/collect_fpn_proposals_cn.rst
doc/fluid/api_cn/layers_cn/collect_fpn_proposals_cn.rst
+4
-4
doc/fluid/api_cn/layers_cn/distribute_fpn_proposals_cn.rst
doc/fluid/api_cn/layers_cn/distribute_fpn_proposals_cn.rst
+2
-2
doc/fluid/api_cn/layers_cn/maxout_cn.rst
doc/fluid/api_cn/layers_cn/maxout_cn.rst
+2
-2
doc/fluid/api_cn/layers_cn/prelu_cn.rst
doc/fluid/api_cn/layers_cn/prelu_cn.rst
+1
-1
doc/fluid/api_cn/layers_cn/roi_align_cn.rst
doc/fluid/api_cn/layers_cn/roi_align_cn.rst
+4
-4
未找到文件。
doc/fluid/api_cn/layers_cn/anchor_generator_cn.rst
浏览文件 @
40cc0b44
...
@@ -33,7 +33,7 @@ anchor_generator
...
@@ -33,7 +33,7 @@ anchor_generator
.. code-block:: python
.. code-block:: python
import paddle.fluid as fluid
import paddle.fluid as fluid
conv1 = fluid.
layers.data(name='conv1', shape=[
48, 16, 16], dtype='float32')
conv1 = fluid.
data(name='conv1', shape=[None,
48, 16, 16], dtype='float32')
anchor, var = fluid.layers.anchor_generator(
anchor, var = fluid.layers.anchor_generator(
input=conv1,
input=conv1,
anchor_sizes=[64, 128, 256, 512],
anchor_sizes=[64, 128, 256, 512],
...
...
doc/fluid/api_cn/layers_cn/bipartite_match_cn.rst
浏览文件 @
40cc0b44
...
@@ -34,7 +34,7 @@ bipartite_match
...
@@ -34,7 +34,7 @@ bipartite_match
.. code-block:: python
.. code-block:: python
import paddle.fluid as fluid
import paddle.fluid as fluid
x = fluid.
layers.data(name='x', shape=[
4], dtype='float32')
x = fluid.
data(name='x', shape=[None,
4], dtype='float32')
y = fluid.
layers.data(name='y', shape=[
4], dtype='float32')
y = fluid.
data(name='y', shape=[None,
4], dtype='float32')
iou = fluid.layers.iou_similarity(x=x, y=y)
iou = fluid.layers.iou_similarity(x=x, y=y)
matched_indices, matched_dist = fluid.layers.bipartite_match(iou)
matched_indices, matched_dist = fluid.layers.bipartite_match(iou)
doc/fluid/api_cn/layers_cn/box_clip_cn.rst
浏览文件 @
40cc0b44
...
@@ -37,8 +37,8 @@ box_clip
...
@@ -37,8 +37,8 @@ box_clip
.. code-block:: python
.. code-block:: python
import paddle.fluid as fluid
import paddle.fluid as fluid
boxes = fluid.
layers.
data(
boxes = fluid.data(
name='boxes', shape=[8, 4], dtype='float32', lod_level=1)
name='boxes', shape=[
None,
8, 4], dtype='float32', lod_level=1)
im_info = fluid.
layers.data(name='im_info', shape=[
3])
im_info = fluid.
data(name='im_info', shape=[None,
3])
out = fluid.layers.box_clip(
out = fluid.layers.box_clip(
input=boxes, im_info=im_info)
input=boxes, im_info=im_info)
doc/fluid/api_cn/layers_cn/box_coder_cn.rst
浏览文件 @
40cc0b44
...
@@ -65,27 +65,23 @@ Bounding Box Coder
...
@@ -65,27 +65,23 @@ Bounding Box Coder
import paddle.fluid as fluid
import paddle.fluid as fluid
# For encode
# For encode
prior_box_encode = fluid.
layers.
data(name='prior_box_encode',
prior_box_encode = fluid.data(name='prior_box_encode',
shape=[512, 4],
shape=[512, 4],
dtype='float32',
dtype='float32')
append_batch_size=False)
target_box_encode = fluid.data(name='target_box_encode',
target_box_encode = fluid.layers.data(name='target_box_encode',
shape=[81,4],
shape=[81,4],
dtype='float32',
dtype='float32')
append_batch_size=False)
output_encode = fluid.layers.box_coder(prior_box=prior_box_encode,
output_encode = fluid.layers.box_coder(prior_box=prior_box_encode,
prior_box_var=[0.1,0.1,0.2,0.2],
prior_box_var=[0.1,0.1,0.2,0.2],
target_box=target_box_encode,
target_box=target_box_encode,
code_type="encode_center_size")
code_type="encode_center_size")
# For decode
# For decode
prior_box_decode = fluid.
layers.
data(name='prior_box_decode',
prior_box_decode = fluid.data(name='prior_box_decode',
shape=[512, 4],
shape=[512, 4],
dtype='float32',
dtype='float32')
append_batch_size=False)
target_box_decode = fluid.data(name='target_box_decode',
target_box_decode = fluid.layers.data(name='target_box_decode',
shape=[512,81,4],
shape=[512,81,4],
dtype='float32',
dtype='float32')
append_batch_size=False)
output_decode = fluid.layers.box_coder(prior_box=prior_box_decode,
output_decode = fluid.layers.box_coder(prior_box=prior_box_decode,
prior_box_var=[0.1,0.1,0.2,0.2],
prior_box_var=[0.1,0.1,0.2,0.2],
target_box=target_box_decode,
target_box=target_box_decode,
...
...
doc/fluid/api_cn/layers_cn/box_decoder_and_assign_cn.rst
浏览文件 @
40cc0b44
...
@@ -49,14 +49,14 @@ box decode过程得出decode_box,然后分配方案如下所述:
...
@@ -49,14 +49,14 @@ box decode过程得出decode_box,然后分配方案如下所述:
.. code-block:: python
.. code-block:: python
import paddle.fluid as fluid
import paddle.fluid as fluid
pb = fluid.
layers.
data(
pb = fluid.data(
name='prior_box', shape=[4], dtype='float32')
name='prior_box', shape=[
None,
4], dtype='float32')
pbv = fluid.
layers.
data(
pbv = fluid.data(
name='prior_box_var', shape=[4], dtype='float32'
, append_batch_size=False)
)
name='prior_box_var', shape=[4], dtype='float32')
loc = fluid.
layers.
data(
loc = fluid.data(
name='target_box', shape=[4*81], dtype='float32')
name='target_box', shape=[
None,
4*81], dtype='float32')
scores = fluid.
layers.
data(
scores = fluid.data(
name='scores', shape=[81], dtype='float32')
name='scores', shape=[
None,
81], dtype='float32')
decoded_box, output_assign_box = fluid.layers.box_decoder_and_assign(
decoded_box, output_assign_box = fluid.layers.box_decoder_and_assign(
pb, pbv, loc, scores, 4.135)
pb, pbv, loc, scores, 4.135)
doc/fluid/api_cn/layers_cn/clip_by_norm_cn.rst
浏览文件 @
40cc0b44
...
@@ -29,8 +29,8 @@ ClipByNorm算子
...
@@ -29,8 +29,8 @@ ClipByNorm算子
.. code-block:: python
.. code-block:: python
import paddle.fluid as fluid
import paddle.fluid as fluid
input = fluid.
layers.
data(
input = fluid.data(
name='data', shape=[1], dtype='float32')
name='data', shape=[
None,
1], dtype='float32')
reward = fluid.layers.clip_by_norm(x=input, max_norm=1.0)
reward = fluid.layers.clip_by_norm(x=input, max_norm=1.0)
...
...
doc/fluid/api_cn/layers_cn/collect_fpn_proposals_cn.rst
浏览文件 @
40cc0b44
...
@@ -35,11 +35,11 @@ collect_fpn_proposals
...
@@ -35,11 +35,11 @@ collect_fpn_proposals
multi_rois = []
multi_rois = []
multi_scores = []
multi_scores = []
for i in range(4):
for i in range(4):
multi_rois.append(fluid.
layers.
data(
multi_rois.append(fluid.data(
name='roi_'+str(i), shape=[4], dtype='float32', lod_level=1))
name='roi_'+str(i), shape=[
None,
4], dtype='float32', lod_level=1))
for i in range(4):
for i in range(4):
multi_scores.append(fluid.
layers.
data(
multi_scores.append(fluid.data(
name='score_'+str(i), shape=[1], dtype='float32', lod_level=1))
name='score_'+str(i), shape=[
None,
1], dtype='float32', lod_level=1))
fpn_rois = fluid.layers.collect_fpn_proposals(
fpn_rois = fluid.layers.collect_fpn_proposals(
multi_rois=multi_rois,
multi_rois=multi_rois,
...
...
doc/fluid/api_cn/layers_cn/distribute_fpn_proposals_cn.rst
浏览文件 @
40cc0b44
...
@@ -36,8 +36,8 @@ distribute_fpn_proposals
...
@@ -36,8 +36,8 @@ distribute_fpn_proposals
.. code-block:: python
.. code-block:: python
import paddle.fluid as fluid
import paddle.fluid as fluid
fpn_rois = fluid.
layers.
data(
fpn_rois = fluid.data(
name='data', shape=[4], dtype='float32', lod_level=1)
name='data', shape=[
None,
4], dtype='float32', lod_level=1)
multi_rois, restore_ind = fluid.layers.distribute_fpn_proposals(
multi_rois, restore_ind = fluid.layers.distribute_fpn_proposals(
fpn_rois=fpn_rois,
fpn_rois=fpn_rois,
min_level=2,
min_level=2,
...
...
doc/fluid/api_cn/layers_cn/maxout_cn.rst
浏览文件 @
40cc0b44
...
@@ -38,8 +38,8 @@ maxout
...
@@ -38,8 +38,8 @@ maxout
.. code-block:: python
.. code-block:: python
import paddle.fluid as fluid
import paddle.fluid as fluid
input = fluid.
layers.
data(
input = fluid.data(
name='data',
name='data',
shape=[256, 32, 32],
shape=[
None,
256, 32, 32],
dtype='float32')
dtype='float32')
out = fluid.layers.maxout(input, groups=2)
out = fluid.layers.maxout(input, groups=2)
doc/fluid/api_cn/layers_cn/prelu_cn.rst
浏览文件 @
40cc0b44
...
@@ -38,7 +38,7 @@ prelu
...
@@ -38,7 +38,7 @@ prelu
import paddle.fluid as fluid
import paddle.fluid as fluid
from paddle.fluid.param_attr import ParamAttr
from paddle.fluid.param_attr import ParamAttr
x = fluid.
layers.data(name="x", shape=[
5,10,10], dtype="float32")
x = fluid.
data(name="x", shape=[None,
5,10,10], dtype="float32")
mode = 'channel'
mode = 'channel'
output = fluid.layers.prelu(
output = fluid.layers.prelu(
x,mode,param_attr=ParamAttr(name='alpha'))
x,mode,param_attr=ParamAttr(name='alpha'))
...
...
doc/fluid/api_cn/layers_cn/roi_align_cn.rst
浏览文件 @
40cc0b44
...
@@ -35,10 +35,10 @@ Region of Interests align(直译:有意义、有价值选区对齐) 用于实
...
@@ -35,10 +35,10 @@ Region of Interests align(直译:有意义、有价值选区对齐) 用于实
.. code-block:: python
.. code-block:: python
import paddle.fluid as fluid
import paddle.fluid as fluid
x = fluid.
layers.
data(
x = fluid.data(
name='data', shape=[256, 32, 32], dtype='float32')
name='data', shape=[
None,
256, 32, 32], dtype='float32')
rois = fluid.
layers.
data(
rois = fluid.data(
name='rois', shape=[4], dtype='float32')
name='rois', shape=[
None,
4], dtype='float32')
align_out = fluid.layers.roi_align(input=x,
align_out = fluid.layers.roi_align(input=x,
rois=rois,
rois=rois,
pooled_height=7,
pooled_height=7,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录