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
0d524bc1
Commit
0d524bc1
authored
Jul 23, 2020
by
Shaoshuai Shi
Browse files
bugfixed: remove batch_index after proposal_layer
parent
202d767d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
pcdet/models/roi_heads/roi_head_template.py
pcdet/models/roi_heads/roi_head_template.py
+1
-0
No files found.
pcdet/models/roi_heads/roi_head_template.py
View file @
0d524bc1
...
...
@@ -92,6 +92,7 @@ class RoIHeadTemplate(nn.Module):
batch_dict
[
'roi_scores'
]
=
roi_scores
batch_dict
[
'roi_labels'
]
=
roi_labels
+
1
batch_dict
[
'has_class_labels'
]
=
True
if
batch_cls_preds
.
shape
[
-
1
]
>
1
else
False
batch_dict
.
pop
(
'batch_index'
,
None
)
return
batch_dict
def
assign_targets
(
self
,
batch_dict
):
...
...
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