Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
OpenPCDet
Commits
274c90c5
Unverified
Commit
274c90c5
authored
Jan 24, 2022
by
jihan.yang
Committed by
GitHub
Jan 24, 2022
Browse files
fixbug: miss cls loss weight in center head (#772)
parent
fa78c4f1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
pcdet/models/dense_heads/center_head.py
pcdet/models/dense_heads/center_head.py
+1
-0
No files found.
pcdet/models/dense_heads/center_head.py
View file @
274c90c5
...
...
@@ -232,6 +232,7 @@ class CenterHead(nn.Module):
for
idx
,
pred_dict
in
enumerate
(
pred_dicts
):
pred_dict
[
'hm'
]
=
self
.
sigmoid
(
pred_dict
[
'hm'
])
hm_loss
=
self
.
hm_loss_func
(
pred_dict
[
'hm'
],
target_dicts
[
'heatmaps'
][
idx
])
hm_loss
*=
self
.
model_cfg
.
LOSS_CONFIG
.
LOSS_WEIGHTS
[
'cls_weight'
]
target_boxes
=
target_dicts
[
'target_boxes'
][
idx
]
pred_boxes
=
torch
.
cat
([
pred_dict
[
head_name
]
for
head_name
in
self
.
separate_head_cfg
.
HEAD_ORDER
],
dim
=
1
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment