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
c25f699c
Commit
c25f699c
authored
Apr 20, 2021
by
jihanyang
Browse files
fixbug: multi_classes_nms and waymo dataset with old version splits
parent
0642cf06
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
pcdet/datasets/waymo/waymo_dataset.py
pcdet/datasets/waymo/waymo_dataset.py
+1
-1
pcdet/models/model_utils/model_nms_utils.py
pcdet/models/model_utils/model_nms_utils.py
+1
-0
No files found.
pcdet/datasets/waymo/waymo_dataset.py
View file @
c25f699c
...
...
@@ -70,7 +70,7 @@ class WaymoDataset(DatasetTemplate):
@
staticmethod
def
check_sequence_name_with_all_version
(
sequence_file
):
if
'_with_camera_labels'
not
in
str
(
sequence_file
)
and
not
sequence_file
.
exists
():
sequence_file
=
Path
(
str
(
sequence_file
[:
-
9
]
)
+
'_with_camera_labels.tfrecord'
)
sequence_file
=
Path
(
str
(
sequence_file
)
[:
-
9
]
+
'_with_camera_labels.tfrecord'
)
if
'_with_camera_labels'
in
str
(
sequence_file
)
and
not
sequence_file
.
exists
():
sequence_file
=
Path
(
str
(
sequence_file
).
replace
(
'_with_camera_labels'
,
''
))
...
...
pcdet/models/model_utils/model_nms_utils.py
View file @
c25f699c
...
...
@@ -44,6 +44,7 @@ def multi_classes_nms(cls_scores, box_preds, nms_config, score_thresh=None):
cur_box_preds
=
box_preds
[
scores_mask
]
else
:
box_scores
=
cls_scores
[:,
k
]
cur_box_preds
=
box_preds
selected
=
[]
if
box_scores
.
shape
[
0
]
>
0
:
...
...
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