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
7bc7e551
"...gtest/git@developer.sourcefind.cn:yangql/googletest.git" did not exist on "6576c64903765304ac42767cdbbc3824446550b0"
Unverified
Commit
7bc7e551
authored
Nov 08, 2020
by
Shaoshuai Shi
Committed by
GitHub
Nov 08, 2020
Browse files
Bugfixed: re-sample gt_boxes when training
parent
0e84f82d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pcdet/datasets/dataset.py
pcdet/datasets/dataset.py
+1
-1
No files found.
pcdet/datasets/dataset.py
View file @
7bc7e551
...
...
@@ -139,7 +139,7 @@ class DatasetTemplate(torch_data.Dataset):
data_dict
=
data_dict
)
if
len
(
data_dict
[
'gt_boxes'
])
==
0
:
if
self
.
training
and
len
(
data_dict
[
'gt_boxes'
])
==
0
:
new_index
=
np
.
random
.
randint
(
self
.
__len__
())
return
self
.
__getitem__
(
new_index
)
...
...
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