Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
models
提交
2f22d577
M
models
项目概览
PaddlePaddle
/
models
大约 1 年 前同步成功
通知
222
Star
6828
Fork
2962
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
602
列表
看板
标记
里程碑
合并请求
255
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
models
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
602
Issue
602
列表
看板
标记
里程碑
合并请求
255
合并请求
255
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
2f22d577
编写于
10月 15, 2019
作者:
B
Bai Yifan
提交者:
GitHub
10月 15, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix subclasses do not have 'weight_prefix_name' attr bug (#3572)
上级
c1d55974
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
10 addition
and
5 deletion
+10
-5
PaddleCV/PaddleDetection/ppdet/modeling/backbones/resnet.py
PaddleCV/PaddleDetection/ppdet/modeling/backbones/resnet.py
+2
-1
PaddleCV/PaddleDetection/ppdet/modeling/backbones/resnext.py
PaddleCV/PaddleDetection/ppdet/modeling/backbones/resnext.py
+4
-2
PaddleCV/PaddleDetection/ppdet/modeling/backbones/senet.py
PaddleCV/PaddleDetection/ppdet/modeling/backbones/senet.py
+4
-2
未找到文件。
PaddleCV/PaddleDetection/ppdet/modeling/backbones/resnet.py
浏览文件 @
2f22d577
...
@@ -424,7 +424,8 @@ class ResNetC5(ResNet):
...
@@ -424,7 +424,8 @@ class ResNetC5(ResNet):
freeze_norm
=
True
,
freeze_norm
=
True
,
norm_decay
=
0.
,
norm_decay
=
0.
,
variant
=
'b'
,
variant
=
'b'
,
feature_maps
=
[
5
]):
feature_maps
=
[
5
],
weight_prefix_name
=
''
):
super
(
ResNetC5
,
self
).
__init__
(
depth
,
freeze_at
,
norm_type
,
freeze_norm
,
super
(
ResNetC5
,
self
).
__init__
(
depth
,
freeze_at
,
norm_type
,
freeze_norm
,
norm_decay
,
variant
,
feature_maps
)
norm_decay
,
variant
,
feature_maps
)
self
.
severed_head
=
True
self
.
severed_head
=
True
PaddleCV/PaddleDetection/ppdet/modeling/backbones/resnext.py
浏览文件 @
2f22d577
...
@@ -50,7 +50,8 @@ class ResNeXt(ResNet):
...
@@ -50,7 +50,8 @@ class ResNeXt(ResNet):
norm_decay
=
True
,
norm_decay
=
True
,
variant
=
'a'
,
variant
=
'a'
,
feature_maps
=
[
2
,
3
,
4
,
5
],
feature_maps
=
[
2
,
3
,
4
,
5
],
dcn_v2_stages
=
[]):
dcn_v2_stages
=
[],
weight_prefix_name
=
''
):
assert
depth
in
[
50
,
101
,
152
],
"depth {} should be 50, 101 or 152"
assert
depth
in
[
50
,
101
,
152
],
"depth {} should be 50, 101 or 152"
super
(
ResNeXt
,
self
).
__init__
(
depth
,
freeze_at
,
norm_type
,
freeze_norm
,
super
(
ResNeXt
,
self
).
__init__
(
depth
,
freeze_at
,
norm_type
,
freeze_norm
,
norm_decay
,
variant
,
feature_maps
)
norm_decay
,
variant
,
feature_maps
)
...
@@ -80,7 +81,8 @@ class ResNeXtC5(ResNeXt):
...
@@ -80,7 +81,8 @@ class ResNeXtC5(ResNeXt):
freeze_norm
=
True
,
freeze_norm
=
True
,
norm_decay
=
True
,
norm_decay
=
True
,
variant
=
'a'
,
variant
=
'a'
,
feature_maps
=
[
5
]):
feature_maps
=
[
5
],
weight_prefix_name
=
''
):
super
(
ResNeXtC5
,
self
).
__init__
(
depth
,
groups
,
group_width
,
freeze_at
,
super
(
ResNeXtC5
,
self
).
__init__
(
depth
,
groups
,
group_width
,
freeze_at
,
norm_type
,
freeze_norm
,
norm_decay
,
norm_type
,
freeze_norm
,
norm_decay
,
variant
,
feature_maps
)
variant
,
feature_maps
)
...
...
PaddleCV/PaddleDetection/ppdet/modeling/backbones/senet.py
浏览文件 @
2f22d577
...
@@ -56,7 +56,8 @@ class SENet(ResNeXt):
...
@@ -56,7 +56,8 @@ class SENet(ResNeXt):
variant
=
'd'
,
variant
=
'd'
,
feature_maps
=
[
2
,
3
,
4
,
5
],
feature_maps
=
[
2
,
3
,
4
,
5
],
dcn_v2_stages
=
[],
dcn_v2_stages
=
[],
std_senet
=
False
):
std_senet
=
False
,
weight_prefix_name
=
''
):
super
(
SENet
,
self
).
__init__
(
depth
,
groups
,
group_width
,
freeze_at
,
super
(
SENet
,
self
).
__init__
(
depth
,
groups
,
group_width
,
freeze_at
,
norm_type
,
freeze_norm
,
norm_decay
,
variant
,
norm_type
,
freeze_norm
,
norm_decay
,
variant
,
feature_maps
)
feature_maps
)
...
@@ -113,7 +114,8 @@ class SENetC5(SENet):
...
@@ -113,7 +114,8 @@ class SENetC5(SENet):
freeze_norm
=
True
,
freeze_norm
=
True
,
norm_decay
=
0.
,
norm_decay
=
0.
,
variant
=
'd'
,
variant
=
'd'
,
feature_maps
=
[
5
]):
feature_maps
=
[
5
],
weight_prefix_name
=
''
):
super
(
SENetC5
,
self
).
__init__
(
depth
,
groups
,
group_width
,
freeze_at
,
super
(
SENetC5
,
self
).
__init__
(
depth
,
groups
,
group_width
,
freeze_at
,
norm_type
,
freeze_norm
,
norm_decay
,
norm_type
,
freeze_norm
,
norm_decay
,
variant
,
feature_maps
)
variant
,
feature_maps
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录