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
fd20aabc
Unverified
Commit
fd20aabc
authored
Mar 30, 2022
by
Yzichen
Committed by
GitHub
Mar 29, 2022
Browse files
fix recall calculation bug for empty scene (#908)
parent
1d5dac76
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
pcdet/models/detectors/detector3d_template.py
pcdet/models/detectors/detector3d_template.py
+1
-1
pcdet/models/roi_heads/target_assigner/proposal_target_layer.py
...models/roi_heads/target_assigner/proposal_target_layer.py
+1
-1
No files found.
pcdet/models/detectors/detector3d_template.py
View file @
fd20aabc
...
@@ -299,7 +299,7 @@ class Detector3DTemplate(nn.Module):
...
@@ -299,7 +299,7 @@ class Detector3DTemplate(nn.Module):
cur_gt
=
gt_boxes
cur_gt
=
gt_boxes
k
=
cur_gt
.
__len__
()
-
1
k
=
cur_gt
.
__len__
()
-
1
while
k
>
0
and
cur_gt
[
k
].
sum
()
==
0
:
while
k
>
=
0
and
cur_gt
[
k
].
sum
()
==
0
:
k
-=
1
k
-=
1
cur_gt
=
cur_gt
[:
k
+
1
]
cur_gt
=
cur_gt
[:
k
+
1
]
...
...
pcdet/models/roi_heads/target_assigner/proposal_target_layer.py
View file @
fd20aabc
...
@@ -90,7 +90,7 @@ class ProposalTargetLayer(nn.Module):
...
@@ -90,7 +90,7 @@ class ProposalTargetLayer(nn.Module):
cur_roi
,
cur_gt
,
cur_roi_labels
,
cur_roi_scores
=
\
cur_roi
,
cur_gt
,
cur_roi_labels
,
cur_roi_scores
=
\
rois
[
index
],
gt_boxes
[
index
],
roi_labels
[
index
],
roi_scores
[
index
]
rois
[
index
],
gt_boxes
[
index
],
roi_labels
[
index
],
roi_scores
[
index
]
k
=
cur_gt
.
__len__
()
-
1
k
=
cur_gt
.
__len__
()
-
1
while
k
>
0
and
cur_gt
[
k
].
sum
()
==
0
:
while
k
>
=
0
and
cur_gt
[
k
].
sum
()
==
0
:
k
-=
1
k
-=
1
cur_gt
=
cur_gt
[:
k
+
1
]
cur_gt
=
cur_gt
[:
k
+
1
]
cur_gt
=
cur_gt
.
new_zeros
((
1
,
cur_gt
.
shape
[
1
]))
if
len
(
cur_gt
)
==
0
else
cur_gt
cur_gt
=
cur_gt
.
new_zeros
((
1
,
cur_gt
.
shape
[
1
]))
if
len
(
cur_gt
)
==
0
else
cur_gt
...
...
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