Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
OpenPCDet
Commits
b56ab159
Unverified
Commit
b56ab159
authored
Jan 27, 2021
by
jihan.yang
Committed by
GitHub
Jan 27, 2021
Browse files
Merge pull request #438 from Starrah/fix_sample_points
fixbug: error of sample_points when num_point < far_idx_choice
parents
a7cf5368
a8b7ff1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
pcdet/datasets/processor/data_processor.py
pcdet/datasets/processor/data_processor.py
+0
-1
No files found.
pcdet/datasets/processor/data_processor.py
View file @
b56ab159
...
@@ -88,7 +88,6 @@ class DataProcessor(object):
...
@@ -88,7 +88,6 @@ class DataProcessor(object):
pts_near_flag
=
pts_depth
<
40.0
pts_near_flag
=
pts_depth
<
40.0
far_idxs_choice
=
np
.
where
(
pts_near_flag
==
0
)[
0
]
far_idxs_choice
=
np
.
where
(
pts_near_flag
==
0
)[
0
]
near_idxs
=
np
.
where
(
pts_near_flag
==
1
)[
0
]
near_idxs
=
np
.
where
(
pts_near_flag
==
1
)[
0
]
near_idxs_choice
=
np
.
random
.
choice
(
near_idxs
,
num_points
-
len
(
far_idxs_choice
),
replace
=
False
)
choice
=
[]
choice
=
[]
if
num_points
>
len
(
far_idxs_choice
):
if
num_points
>
len
(
far_idxs_choice
):
near_idxs_choice
=
np
.
random
.
choice
(
near_idxs
,
num_points
-
len
(
far_idxs_choice
),
replace
=
False
)
near_idxs_choice
=
np
.
random
.
choice
(
near_idxs
,
num_points
-
len
(
far_idxs_choice
),
replace
=
False
)
...
...
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