Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleDetection
提交
93de5e5f
P
PaddleDetection
项目概览
PaddlePaddle
/
PaddleDetection
大约 2 年 前同步成功
通知
708
Star
11112
Fork
2696
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
184
列表
看板
标记
里程碑
合并请求
40
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleDetection
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
184
Issue
184
列表
看板
标记
里程碑
合并请求
40
合并请求
40
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
93de5e5f
编写于
12月 08, 2022
作者:
U
ucsk
提交者:
GitHub
12月 08, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix 2 bugs (#7409)
* fix transposed convolution in_channels * fix when deep_supervision is false
上级
1ee80501
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
3 deletion
+5
-3
ppdet/modeling/heads/mask_head.py
ppdet/modeling/heads/mask_head.py
+1
-1
ppdet/modeling/heads/sparsercnn_head.py
ppdet/modeling/heads/sparsercnn_head.py
+4
-2
未找到文件。
ppdet/modeling/heads/mask_head.py
浏览文件 @
93de5e5f
...
@@ -80,7 +80,7 @@ class MaskFeat(nn.Layer):
...
@@ -80,7 +80,7 @@ class MaskFeat(nn.Layer):
mask_conv
.
add_sublayer
(
mask_conv
.
add_sublayer
(
'conv5_mask'
,
'conv5_mask'
,
nn
.
Conv2DTranspose
(
nn
.
Conv2DTranspose
(
in_channels
=
self
.
in_channel
,
in_channels
=
self
.
out_channel
if
num_convs
>
0
else
self
.
in_channel
,
out_channels
=
self
.
out_channel
,
out_channels
=
self
.
out_channel
,
kernel_size
=
2
,
kernel_size
=
2
,
stride
=
2
,
stride
=
2
,
...
...
ppdet/modeling/heads/sparsercnn_head.py
浏览文件 @
93de5e5f
...
@@ -242,6 +242,8 @@ class SparseRCNNHead(nn.Layer):
...
@@ -242,6 +242,8 @@ class SparseRCNNHead(nn.Layer):
loss_func
=
"SparseRCNNLoss"
,
loss_func
=
"SparseRCNNLoss"
,
roi_input_shape
=
None
,
):
roi_input_shape
=
None
,
):
super
().
__init__
()
super
().
__init__
()
assert
head_num_heads
>
0
,
\
f
'At least one RoI Head is required, but
{
head_num_heads
}
.'
# Build RoI.
# Build RoI.
box_pooler
=
self
.
_init_box_pooler
(
roi_input_shape
)
box_pooler
=
self
.
_init_box_pooler
(
roi_input_shape
)
...
@@ -337,11 +339,11 @@ class SparseRCNNHead(nn.Layer):
...
@@ -337,11 +339,11 @@ class SparseRCNNHead(nn.Layer):
inter_class_logits
=
[]
inter_class_logits
=
[]
inter_pred_bboxes
=
[]
inter_pred_bboxes
=
[]
for
rcnn_head
in
self
.
head_series
:
for
stage
,
rcnn_head
in
enumerate
(
self
.
head_series
)
:
class_logits
,
pred_bboxes
,
proposal_features
=
rcnn_head
(
class_logits
,
pred_bboxes
,
proposal_features
=
rcnn_head
(
features
,
bboxes
,
proposal_features
,
self
.
box_pooler
)
features
,
bboxes
,
proposal_features
,
self
.
box_pooler
)
if
self
.
return_intermediate
:
if
self
.
return_intermediate
or
stage
==
len
(
self
.
head_series
)
-
1
:
inter_class_logits
.
append
(
class_logits
)
inter_class_logits
.
append
(
class_logits
)
inter_pred_bboxes
.
append
(
pred_bboxes
)
inter_pred_bboxes
.
append
(
pred_bboxes
)
bboxes
=
pred_bboxes
.
detach
()
bboxes
=
pred_bboxes
.
detach
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录