Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleX
提交
23431930
P
PaddleX
项目概览
PaddlePaddle
/
PaddleX
通知
138
Star
4
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
43
列表
看板
标记
里程碑
合并请求
5
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleX
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
43
Issue
43
列表
看板
标记
里程碑
合并请求
5
合并请求
5
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
23431930
编写于
6月 11, 2020
作者:
S
sunyanfang01
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix the blazenet
上级
7a614e76
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
9 addition
and
6 deletion
+9
-6
paddlex/cv/nets/blazenet.py
paddlex/cv/nets/blazenet.py
+9
-6
未找到文件。
paddlex/cv/nets/blazenet.py
浏览文件 @
23431930
...
@@ -90,6 +90,7 @@ class BlazeNet(object):
...
@@ -90,6 +90,7 @@ class BlazeNet(object):
name
=
'double_blaze_{}'
.
format
(
k
))
name
=
'double_blaze_{}'
.
format
(
k
))
elif
len
(
v
)
==
4
:
elif
len
(
v
)
==
4
:
layers
.
append
(
conv
)
layers
.
append
(
conv
)
fluid
.
layers
.
Print
(
layers
[
-
1
])
conv
=
self
.
BlazeBlock
(
conv
=
self
.
BlazeBlock
(
conv
,
conv
,
v
[
0
],
v
[
0
],
...
@@ -102,6 +103,8 @@ class BlazeNet(object):
...
@@ -102,6 +103,8 @@ class BlazeNet(object):
if
not
self
.
with_extra_blocks
:
if
not
self
.
with_extra_blocks
:
return
layers
[
-
1
]
return
layers
[
-
1
]
fluid
.
layers
.
Print
(
layers
[
-
2
])
fluid
.
layers
.
Print
(
layers
[
-
1
])
return
layers
[
-
2
],
layers
[
-
1
]
return
layers
[
-
2
],
layers
[
-
1
]
else
:
else
:
conv1
=
self
.
_conv_norm
(
conv1
=
self
.
_conv_norm
(
...
@@ -152,7 +155,7 @@ class BlazeNet(object):
...
@@ -152,7 +155,7 @@ class BlazeNet(object):
stride
=
stride
,
stride
=
stride
,
padding
=
2
,
padding
=
2
,
num_groups
=
in_channels
,
num_groups
=
in_channels
,
use_cudnn
=
Tru
e
,
use_cudnn
=
Fals
e
,
name
=
name
+
"1_dw"
)
name
=
name
+
"1_dw"
)
else
:
else
:
conv_dw_1
=
self
.
_conv_norm
(
conv_dw_1
=
self
.
_conv_norm
(
...
@@ -162,7 +165,7 @@ class BlazeNet(object):
...
@@ -162,7 +165,7 @@ class BlazeNet(object):
stride
=
1
,
stride
=
1
,
padding
=
1
,
padding
=
1
,
num_groups
=
in_channels
,
num_groups
=
in_channels
,
use_cudnn
=
Tru
e
,
use_cudnn
=
Fals
e
,
name
=
name
+
"1_dw_1"
)
name
=
name
+
"1_dw_1"
)
conv_dw
=
self
.
_conv_norm
(
conv_dw
=
self
.
_conv_norm
(
input
=
conv_dw_1
,
input
=
conv_dw_1
,
...
@@ -171,7 +174,7 @@ class BlazeNet(object):
...
@@ -171,7 +174,7 @@ class BlazeNet(object):
stride
=
stride
,
stride
=
stride
,
padding
=
1
,
padding
=
1
,
num_groups
=
in_channels
,
num_groups
=
in_channels
,
use_cudnn
=
Tru
e
,
use_cudnn
=
Fals
e
,
name
=
name
+
"1_dw_2"
)
name
=
name
+
"1_dw_2"
)
conv_pw
=
self
.
_conv_norm
(
conv_pw
=
self
.
_conv_norm
(
...
@@ -191,7 +194,7 @@ class BlazeNet(object):
...
@@ -191,7 +194,7 @@ class BlazeNet(object):
num_filters
=
out_channels
,
num_filters
=
out_channels
,
stride
=
1
,
stride
=
1
,
padding
=
2
,
padding
=
2
,
use_cudnn
=
Tru
e
,
use_cudnn
=
Fals
e
,
name
=
name
+
"2_dw"
)
name
=
name
+
"2_dw"
)
else
:
else
:
conv_dw_1
=
self
.
_conv_norm
(
conv_dw_1
=
self
.
_conv_norm
(
...
@@ -201,7 +204,7 @@ class BlazeNet(object):
...
@@ -201,7 +204,7 @@ class BlazeNet(object):
stride
=
1
,
stride
=
1
,
padding
=
1
,
padding
=
1
,
num_groups
=
out_channels
,
num_groups
=
out_channels
,
use_cudnn
=
Tru
e
,
use_cudnn
=
Fals
e
,
name
=
name
+
"2_dw_1"
)
name
=
name
+
"2_dw_1"
)
conv_dw
=
self
.
_conv_norm
(
conv_dw
=
self
.
_conv_norm
(
input
=
conv_dw_1
,
input
=
conv_dw_1
,
...
@@ -210,7 +213,7 @@ class BlazeNet(object):
...
@@ -210,7 +213,7 @@ class BlazeNet(object):
stride
=
1
,
stride
=
1
,
padding
=
1
,
padding
=
1
,
num_groups
=
out_channels
,
num_groups
=
out_channels
,
use_cudnn
=
Tru
e
,
use_cudnn
=
Fals
e
,
name
=
name
+
"2_dw_2"
)
name
=
name
+
"2_dw_2"
)
conv_pw
=
self
.
_conv_norm
(
conv_pw
=
self
.
_conv_norm
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录