Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wzpei9
Paddle
提交
79e0a26a
P
Paddle
项目概览
wzpei9
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
79e0a26a
编写于
11月 10, 2017
作者:
G
guosheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix test_roi_pool_layer.py
上级
7829034d
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
64 addition
and
2 deletion
+64
-2
python/paddle/trainer_config_helpers/tests/configs/protostr/test_roi_pool_layer.protostr
...lpers/tests/configs/protostr/test_roi_pool_layer.protostr
+54
-1
python/paddle/trainer_config_helpers/tests/configs/test_roi_pool_layer.py
...ainer_config_helpers/tests/configs/test_roi_pool_layer.py
+10
-1
未找到文件。
python/paddle/trainer_config_helpers/tests/configs/protostr/test_roi_pool_layer.protostr
浏览文件 @
79e0a26a
...
@@ -13,12 +13,44 @@ layers {
...
@@ -13,12 +13,44 @@ layers {
size: 10
size: 10
active_type: ""
active_type: ""
}
}
layers {
name: "__conv_0__"
type: "exconv"
size: 3136
active_type: ""
inputs {
input_layer_name: "data"
input_parameter_name: "___conv_0__.w0"
conv_conf {
filter_size: 3
channels: 3
stride: 1
padding: 1
groups: 1
filter_channels: 3
output_x: 14
img_size: 14
caffe_mode: true
filter_size_y: 3
padding_y: 1
stride_y: 1
output_y: 14
img_size_y: 14
}
}
bias_parameter_name: "___conv_0__.wbias"
num_filters: 16
shared_biases: true
height: 14
width: 14
}
layers {
layers {
name: "__roi_pool_0__"
name: "__roi_pool_0__"
type: "roi_pool"
type: "roi_pool"
size: 784
active_type: ""
active_type: ""
inputs {
inputs {
input_layer_name: "
data
"
input_layer_name: "
__conv_0__
"
roi_pool_conf {
roi_pool_conf {
pooled_width: 7
pooled_width: 7
pooled_height: 7
pooled_height: 7
...
@@ -28,6 +60,26 @@ layers {
...
@@ -28,6 +60,26 @@ layers {
inputs {
inputs {
input_layer_name: "rois"
input_layer_name: "rois"
}
}
height: 7
width: 7
}
parameters {
name: "___conv_0__.w0"
size: 432
initial_mean: 0.0
initial_std: 0.272165526976
initial_strategy: 0
initial_smart: false
}
parameters {
name: "___conv_0__.wbias"
size: 16
initial_mean: 0.0
initial_std: 0.0
dims: 16
dims: 1
initial_strategy: 0
initial_smart: false
}
}
input_layer_names: "data"
input_layer_names: "data"
input_layer_names: "rois"
input_layer_names: "rois"
...
@@ -36,6 +88,7 @@ sub_models {
...
@@ -36,6 +88,7 @@ sub_models {
name: "root"
name: "root"
layer_names: "data"
layer_names: "data"
layer_names: "rois"
layer_names: "rois"
layer_names: "__conv_0__"
layer_names: "__roi_pool_0__"
layer_names: "__roi_pool_0__"
input_layer_names: "data"
input_layer_names: "data"
input_layer_names: "rois"
input_layer_names: "rois"
...
...
python/paddle/trainer_config_helpers/tests/configs/test_roi_pool_layer.py
浏览文件 @
79e0a26a
...
@@ -4,8 +4,17 @@ data = data_layer(name='data', size=3 * 14 * 14, height=14, width=14)
...
@@ -4,8 +4,17 @@ data = data_layer(name='data', size=3 * 14 * 14, height=14, width=14)
rois
=
data_layer
(
name
=
'rois'
,
size
=
10
)
rois
=
data_layer
(
name
=
'rois'
,
size
=
10
)
roi_pool
=
roi_pool
_layer
(
conv
=
img_conv
_layer
(
input
=
data
,
input
=
data
,
filter_size
=
3
,
num_channels
=
3
,
num_filters
=
16
,
padding
=
1
,
act
=
LinearActivation
(),
bias_attr
=
True
)
roi_pool
=
roi_pool_layer
(
input
=
conv
,
rois
=
rois
,
rois
=
rois
,
pooled_width
=
7
,
pooled_width
=
7
,
pooled_height
=
7
,
pooled_height
=
7
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录