Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
s920243400
PaddleDetection
提交
19f551fd
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看板
未验证
提交
19f551fd
编写于
11月 24, 2020
作者:
G
Guanghua Yu
提交者:
GitHub
11月 24, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix smoe model paddle version check (#1748)
上级
512fad42
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
15 addition
and
4 deletion
+15
-4
ppdet/modeling/anchor_heads/solov2_head.py
ppdet/modeling/anchor_heads/solov2_head.py
+0
-3
ppdet/modeling/anchor_heads/ttf_head.py
ppdet/modeling/anchor_heads/ttf_head.py
+5
-1
ppdet/modeling/architectures/cascade_mask_rcnn.py
ppdet/modeling/architectures/cascade_mask_rcnn.py
+2
-0
ppdet/modeling/architectures/cascade_rcnn.py
ppdet/modeling/architectures/cascade_rcnn.py
+2
-0
ppdet/modeling/architectures/cascade_rcnn_cls_aware.py
ppdet/modeling/architectures/cascade_rcnn_cls_aware.py
+2
-0
ppdet/modeling/architectures/htc.py
ppdet/modeling/architectures/htc.py
+2
-0
ppdet/modeling/architectures/solov2.py
ppdet/modeling/architectures/solov2.py
+2
-0
未找到文件。
ppdet/modeling/anchor_heads/solov2_head.py
浏览文件 @
19f551fd
...
@@ -24,8 +24,6 @@ from paddle.fluid.regularizer import L2Decay
...
@@ -24,8 +24,6 @@ from paddle.fluid.regularizer import L2Decay
from
ppdet.modeling.ops
import
ConvNorm
,
DeformConvNorm
,
MaskMatrixNMS
,
DropBlock
from
ppdet.modeling.ops
import
ConvNorm
,
DeformConvNorm
,
MaskMatrixNMS
,
DropBlock
from
ppdet.core.workspace
import
register
from
ppdet.core.workspace
import
register
from
ppdet.utils.check
import
check_version
from
six.moves
import
zip
from
six.moves
import
zip
import
numpy
as
np
import
numpy
as
np
...
@@ -71,7 +69,6 @@ class SOLOv2Head(object):
...
@@ -71,7 +69,6 @@ class SOLOv2Head(object):
kernel
=
'gaussian'
,
kernel
=
'gaussian'
,
sigma
=
2.0
).
__dict__
,
sigma
=
2.0
).
__dict__
,
drop_block
=
False
):
drop_block
=
False
):
check_version
(
'2.0.0-rc0'
)
self
.
num_classes
=
num_classes
self
.
num_classes
=
num_classes
self
.
seg_num_grids
=
num_grids
self
.
seg_num_grids
=
num_grids
self
.
cate_out_channels
=
self
.
num_classes
-
1
self
.
cate_out_channels
=
self
.
num_classes
-
1
...
...
ppdet/modeling/anchor_heads/ttf_head.py
浏览文件 @
19f551fd
...
@@ -348,7 +348,11 @@ class TTFHead(object):
...
@@ -348,7 +348,11 @@ class TTFHead(object):
return
pred
,
target
,
weight
return
pred
,
target
,
weight
def
get_loss
(
self
,
pred_hm
,
pred_wh
,
target_hm
,
box_target
,
target_weight
):
def
get_loss
(
self
,
pred_hm
,
pred_wh
,
target_hm
,
box_target
,
target_weight
):
pred_hm
=
paddle
.
clip
(
fluid
.
layers
.
sigmoid
(
pred_hm
),
1e-4
,
1
-
1e-4
)
try
:
pred_hm
=
paddle
.
clip
(
fluid
.
layers
.
sigmoid
(
pred_hm
),
1e-4
,
1
-
1e-4
)
except
:
pred_hm
=
paddle
.
tensor
.
clamp
(
fluid
.
layers
.
sigmoid
(
pred_hm
),
1e-4
,
1
-
1e-4
)
hm_loss
=
self
.
ct_focal_loss
(
pred_hm
,
target_hm
)
*
self
.
hm_weight
hm_loss
=
self
.
ct_focal_loss
(
pred_hm
,
target_hm
)
*
self
.
hm_weight
shape
=
fluid
.
layers
.
shape
(
target_hm
)
shape
=
fluid
.
layers
.
shape
(
target_hm
)
shape
.
stop_gradient
=
True
shape
.
stop_gradient
=
True
...
...
ppdet/modeling/architectures/cascade_mask_rcnn.py
浏览文件 @
19f551fd
...
@@ -23,6 +23,7 @@ import paddle.fluid as fluid
...
@@ -23,6 +23,7 @@ import paddle.fluid as fluid
from
ppdet.experimental
import
mixed_precision_global_state
from
ppdet.experimental
import
mixed_precision_global_state
from
ppdet.core.workspace
import
register
from
ppdet.core.workspace
import
register
from
ppdet.utils.check
import
check_version
from
.input_helper
import
multiscale_def
from
.input_helper
import
multiscale_def
...
@@ -62,6 +63,7 @@ class CascadeMaskRCNN(object):
...
@@ -62,6 +63,7 @@ class CascadeMaskRCNN(object):
rpn_only
=
False
,
rpn_only
=
False
,
fpn
=
'FPN'
):
fpn
=
'FPN'
):
super
(
CascadeMaskRCNN
,
self
).
__init__
()
super
(
CascadeMaskRCNN
,
self
).
__init__
()
check_version
(
'2.0.0-rc0'
)
assert
fpn
is
not
None
,
"cascade RCNN requires FPN"
assert
fpn
is
not
None
,
"cascade RCNN requires FPN"
self
.
backbone
=
backbone
self
.
backbone
=
backbone
self
.
fpn
=
fpn
self
.
fpn
=
fpn
...
...
ppdet/modeling/architectures/cascade_rcnn.py
浏览文件 @
19f551fd
...
@@ -23,6 +23,7 @@ import paddle.fluid as fluid
...
@@ -23,6 +23,7 @@ import paddle.fluid as fluid
from
ppdet.experimental
import
mixed_precision_global_state
from
ppdet.experimental
import
mixed_precision_global_state
from
ppdet.core.workspace
import
register
from
ppdet.core.workspace
import
register
from
ppdet.utils.check
import
check_version
from
.input_helper
import
multiscale_def
from
.input_helper
import
multiscale_def
__all__
=
[
'CascadeRCNN'
]
__all__
=
[
'CascadeRCNN'
]
...
@@ -57,6 +58,7 @@ class CascadeRCNN(object):
...
@@ -57,6 +58,7 @@ class CascadeRCNN(object):
rpn_only
=
False
,
rpn_only
=
False
,
fpn
=
'FPN'
):
fpn
=
'FPN'
):
super
(
CascadeRCNN
,
self
).
__init__
()
super
(
CascadeRCNN
,
self
).
__init__
()
check_version
(
'2.0.0-rc0'
)
assert
fpn
is
not
None
,
"cascade RCNN requires FPN"
assert
fpn
is
not
None
,
"cascade RCNN requires FPN"
self
.
backbone
=
backbone
self
.
backbone
=
backbone
self
.
fpn
=
fpn
self
.
fpn
=
fpn
...
...
ppdet/modeling/architectures/cascade_rcnn_cls_aware.py
浏览文件 @
19f551fd
...
@@ -24,6 +24,7 @@ import copy
...
@@ -24,6 +24,7 @@ import copy
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
from
ppdet.core.workspace
import
register
from
ppdet.core.workspace
import
register
from
ppdet.utils.check
import
check_version
from
.input_helper
import
multiscale_def
from
.input_helper
import
multiscale_def
__all__
=
[
'CascadeRCNNClsAware'
]
__all__
=
[
'CascadeRCNNClsAware'
]
...
@@ -60,6 +61,7 @@ class CascadeRCNNClsAware(object):
...
@@ -60,6 +61,7 @@ class CascadeRCNNClsAware(object):
bbox_assigner
=
'CascadeBBoxAssigner'
,
bbox_assigner
=
'CascadeBBoxAssigner'
,
fpn
=
'FPN'
,
):
fpn
=
'FPN'
,
):
super
(
CascadeRCNNClsAware
,
self
).
__init__
()
super
(
CascadeRCNNClsAware
,
self
).
__init__
()
check_version
(
'2.0.0-rc0'
)
assert
fpn
is
not
None
,
"cascade RCNN requires FPN"
assert
fpn
is
not
None
,
"cascade RCNN requires FPN"
self
.
backbone
=
backbone
self
.
backbone
=
backbone
self
.
fpn
=
fpn
self
.
fpn
=
fpn
...
...
ppdet/modeling/architectures/htc.py
浏览文件 @
19f551fd
...
@@ -26,6 +26,7 @@ from paddle.fluid.initializer import MSRA
...
@@ -26,6 +26,7 @@ from paddle.fluid.initializer import MSRA
from
paddle.fluid.regularizer
import
L2Decay
from
paddle.fluid.regularizer
import
L2Decay
from
ppdet.experimental
import
mixed_precision_global_state
from
ppdet.experimental
import
mixed_precision_global_state
from
ppdet.core.workspace
import
register
from
ppdet.core.workspace
import
register
from
ppdet.utils.check
import
check_version
from
.input_helper
import
multiscale_def
from
.input_helper
import
multiscale_def
...
@@ -70,6 +71,7 @@ class HybridTaskCascade(object):
...
@@ -70,6 +71,7 @@ class HybridTaskCascade(object):
rpn_only
=
False
,
rpn_only
=
False
,
fpn
=
'FPN'
):
fpn
=
'FPN'
):
super
(
HybridTaskCascade
,
self
).
__init__
()
super
(
HybridTaskCascade
,
self
).
__init__
()
check_version
(
'2.0.0-rc0'
)
assert
fpn
is
not
None
,
"HTC requires FPN"
assert
fpn
is
not
None
,
"HTC requires FPN"
self
.
backbone
=
backbone
self
.
backbone
=
backbone
self
.
fpn
=
fpn
self
.
fpn
=
fpn
...
...
ppdet/modeling/architectures/solov2.py
浏览文件 @
19f551fd
...
@@ -22,6 +22,7 @@ from paddle import fluid
...
@@ -22,6 +22,7 @@ from paddle import fluid
from
ppdet.experimental
import
mixed_precision_global_state
from
ppdet.experimental
import
mixed_precision_global_state
from
ppdet.core.workspace
import
register
from
ppdet.core.workspace
import
register
from
ppdet.utils.check
import
check_version
__all__
=
[
'SOLOv2'
]
__all__
=
[
'SOLOv2'
]
...
@@ -47,6 +48,7 @@ class SOLOv2(object):
...
@@ -47,6 +48,7 @@ class SOLOv2(object):
bbox_head
=
'SOLOv2Head'
,
bbox_head
=
'SOLOv2Head'
,
mask_head
=
'SOLOv2MaskHead'
):
mask_head
=
'SOLOv2MaskHead'
):
super
(
SOLOv2
,
self
).
__init__
()
super
(
SOLOv2
,
self
).
__init__
()
check_version
(
'2.0.0-rc0'
)
self
.
backbone
=
backbone
self
.
backbone
=
backbone
self
.
fpn
=
fpn
self
.
fpn
=
fpn
self
.
bbox_head
=
bbox_head
self
.
bbox_head
=
bbox_head
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录