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
82ce5194
"pcdet/ops/git@developer.sourcefind.cn:OpenDAS/openpcdet.git" did not exist on "557d463793f6ff63f0301e851a047d29924fb1fe"
Unverified
Commit
82ce5194
authored
Jun 22, 2022
by
yukang
Committed by
GitHub
Jun 22, 2022
Browse files
Update dataset.py
parent
867e41a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
pcdet/datasets/dataset.py
pcdet/datasets/dataset.py
+5
-3
No files found.
pcdet/datasets/dataset.py
View file @
82ce5194
...
...
@@ -122,15 +122,17 @@ class DatasetTemplate(torch_data.Dataset):
if
self
.
training
:
assert
'gt_boxes'
in
data_dict
,
'gt_boxes should be provided for training'
gt_boxes_mask
=
np
.
array
([
n
in
self
.
class_names
for
n
in
data_dict
[
'gt_names'
]],
dtype
=
np
.
bool_
)
calib
=
data_dict
[
'calib'
]
if
'calib'
in
data_dict
:
calib
=
data_dict
[
'calib'
]
data_dict
=
self
.
data_augmentor
.
forward
(
data_dict
=
{
**
data_dict
,
'gt_boxes_mask'
:
gt_boxes_mask
}
)
data_dict
[
'calib'
]
=
calib
if
'calib'
in
data_dict
:
data_dict
[
'calib'
]
=
calib
if
data_dict
.
get
(
'gt_boxes'
,
None
)
is
not
None
:
selected
=
common_utils
.
keep_arrays_by_name
(
data_dict
[
'gt_names'
],
self
.
class_names
)
data_dict
[
'gt_boxes'
]
=
data_dict
[
'gt_boxes'
][
selected
]
...
...
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