Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
s920243400
PaddleDetection
提交
9714e0f4
P
PaddleDetection
项目概览
s920243400
/
PaddleDetection
与 Fork 源项目一致
Fork自
PaddlePaddle / PaddleDetection
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleDetection
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9714e0f4
编写于
7月 25, 2019
作者:
G
Guanghua Yu
提交者:
qingqing01
7月 25, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix scale setting in MobileNet-SSD. (#2928)
上级
50a51c82
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
10 addition
and
13 deletion
+10
-13
configs/ssd_mobilenet_v1_voc.yml
configs/ssd_mobilenet_v1_voc.yml
+1
-2
ppdet/modeling/backbones/mobilenet.py
ppdet/modeling/backbones/mobilenet.py
+9
-11
未找到文件。
configs/ssd_mobilenet_v1_voc.yml
浏览文件 @
9714e0f4
architecture
:
SSD
max_iters
:
28000
train_feed
:
SSDTrainFeed
eval_feed
:
SSDEvalFeed
test_feed
:
SSDTestFeed
pretrain_weights
:
https://paddlemodels.bj.bcebos.com/object_detection/ssd_mobilenet_v1_coco_pretrained.tar
use_gpu
:
true
max_iters
:
28000
snapshot_iter
:
2000
log_smooth_window
:
1
metric
:
VOC
...
...
ppdet/modeling/backbones/mobilenet.py
浏览文件 @
9714e0f4
...
...
@@ -57,7 +57,6 @@ class MobileNet(object):
num_filters
,
stride
,
padding
,
channels
=
None
,
num_groups
=
1
,
act
=
'relu'
,
use_cudnn
=
True
,
...
...
@@ -125,22 +124,21 @@ class MobileNet(object):
num_filters2
,
num_groups
,
stride
,
scale
,
name
=
None
):
pointwise_conv
=
self
.
_conv_norm
(
input
=
input
,
filter_size
=
1
,
num_filters
=
int
(
num_filters1
*
scale
),
num_filters
=
int
(
num_filters1
),
stride
=
1
,
num_groups
=
int
(
num_groups
*
scale
),
num_groups
=
int
(
num_groups
),
padding
=
0
,
name
=
name
+
"_extra1"
)
normal_conv
=
self
.
_conv_norm
(
input
=
pointwise_conv
,
filter_size
=
3
,
num_filters
=
int
(
num_filters2
*
scale
),
num_filters
=
int
(
num_filters2
),
stride
=
2
,
num_groups
=
int
(
num_groups
*
scale
),
num_groups
=
int
(
num_groups
),
padding
=
1
,
name
=
name
+
"_extra2"
)
return
normal_conv
...
...
@@ -150,7 +148,7 @@ class MobileNet(object):
blocks
=
[]
# input 1/1
out
=
self
.
_conv_norm
(
input
,
3
,
int
(
32
*
scale
),
2
,
1
,
3
,
name
=
"conv1"
)
out
=
self
.
_conv_norm
(
input
,
3
,
int
(
32
*
scale
),
2
,
1
,
name
=
"conv1"
)
# 1/2
out
=
self
.
depthwise_separable
(
out
,
32
,
64
,
32
,
1
,
scale
,
name
=
"conv2_1"
)
...
...
@@ -186,11 +184,11 @@ class MobileNet(object):
num_filters
=
self
.
extra_block_filters
module14
=
self
.
_extra_block
(
module13
,
num_filters
[
0
][
0
],
num_filters
[
0
][
1
],
1
,
2
,
scale
,
"conv7_1"
)
num_filters
[
0
][
1
],
1
,
2
,
"conv7_1"
)
module15
=
self
.
_extra_block
(
module14
,
num_filters
[
1
][
0
],
num_filters
[
1
][
1
],
1
,
2
,
scale
,
"conv7_2"
)
num_filters
[
1
][
1
],
1
,
2
,
"conv7_2"
)
module16
=
self
.
_extra_block
(
module15
,
num_filters
[
2
][
0
],
num_filters
[
2
][
1
],
1
,
2
,
scale
,
"conv7_3"
)
num_filters
[
2
][
1
],
1
,
2
,
"conv7_3"
)
module17
=
self
.
_extra_block
(
module16
,
num_filters
[
3
][
0
],
num_filters
[
3
][
1
],
1
,
2
,
scale
,
"conv7_4"
)
num_filters
[
3
][
1
],
1
,
2
,
"conv7_4"
)
return
module11
,
module13
,
module14
,
module15
,
module16
,
module17
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录