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
mmdetection3d
Commits
cec2d8b0
Unverified
Commit
cec2d8b0
authored
Oct 20, 2020
by
Liang Liu
Committed by
GitHub
Oct 20, 2020
Browse files
[Fix]: code weights for anchor3d_head (#173)
parent
c84285da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mmdet3d/models/dense_heads/anchor3d_head.py
mmdet3d/models/dense_heads/anchor3d_head.py
+1
-1
No files found.
mmdet3d/models/dense_heads/anchor3d_head.py
View file @
cec2d8b0
...
...
@@ -244,7 +244,7 @@ class Anchor3DHead(nn.Module, AnchorTrainMixin):
if
num_pos
>
0
:
code_weight
=
self
.
train_cfg
.
get
(
'code_weight'
,
None
)
if
code_weight
:
bbox_weights
=
bbox_weights
*
bbox_weights
.
new_tensor
(
pos_
bbox_weights
=
pos_
bbox_weights
*
bbox_weights
.
new_tensor
(
code_weight
)
if
self
.
diff_rad_by_sin
:
pos_bbox_pred
,
pos_bbox_targets
=
self
.
add_sin_difference
(
...
...
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