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
c6302949
Commit
c6302949
authored
Jun 25, 2020
by
Shaoshuai Shi
Browse files
bugfixed: run create_kitti_infos on PCDet v0.2.0
parent
a8703703
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
pcdet/datasets/kitti/kitti_dataset.py
pcdet/datasets/kitti/kitti_dataset.py
+3
-2
No files found.
pcdet/datasets/kitti/kitti_dataset.py
View file @
c6302949
...
...
@@ -7,7 +7,6 @@ from ..dataset import DatasetTemplate
from
...ops.roiaware_pool3d
import
roiaware_pool3d_utils
class
KittiDataset
(
DatasetTemplate
):
def
__init__
(
self
,
dataset_cfg
,
class_names
,
training
=
True
,
root_path
=
None
,
logger
=
None
):
"""
...
...
@@ -37,6 +36,8 @@ class KittiDataset(DatasetTemplate):
for
info_path
in
self
.
dataset_cfg
.
INFO_PATH
[
mode
]:
info_path
=
self
.
root_path
/
info_path
if
not
info_path
.
exists
():
continue
with
open
(
info_path
,
'rb'
)
as
f
:
infos
=
pickle
.
load
(
f
)
kitti_infos
.
extend
(
infos
)
...
...
@@ -376,7 +377,7 @@ class KittiDataset(DatasetTemplate):
def
create_kitti_infos
(
dataset_cfg
,
class_names
,
data_path
,
save_path
,
workers
=
4
):
dataset
=
KittiDataset
(
dataset_cfg
=
dataset_cfg
,
class_names
=
class_names
,
root_path
=
data_path
)
dataset
=
KittiDataset
(
dataset_cfg
=
dataset_cfg
,
class_names
=
class_names
,
root_path
=
data_path
,
training
=
False
)
train_split
,
val_split
=
'train'
,
'val'
train_filename
=
save_path
/
(
'kitti_infos_%s.pkl'
%
train_split
)
...
...
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