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
7ef14309
Commit
7ef14309
authored
Jul 09, 2020
by
Shaoshuai Shi
Browse files
support merge_all_iters_to_one_epoch in NuScenes
parent
9157ee44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
pcdet/datasets/nuscenes/nuscenes_dataset.py
pcdet/datasets/nuscenes/nuscenes_dataset.py
+6
-0
No files found.
pcdet/datasets/nuscenes/nuscenes_dataset.py
View file @
7ef14309
...
...
@@ -107,9 +107,15 @@ class NuScenesDataset(DatasetTemplate):
return
points
def
__len__
(
self
):
if
self
.
_merge_all_iters_to_one_epoch
:
return
len
(
self
.
infos
)
*
self
.
total_epochs
return
len
(
self
.
infos
)
def
__getitem__
(
self
,
index
):
if
self
.
_merge_all_iters_to_one_epoch
:
index
=
index
%
len
(
self
.
infos
)
info
=
copy
.
deepcopy
(
self
.
infos
[
index
])
points
=
self
.
get_lidar_with_sweeps
(
index
,
max_sweeps
=
self
.
dataset_cfg
.
MAX_SWEEPS
)
...
...
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