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
f91d9098
Commit
f91d9098
authored
Jan 05, 2022
by
Shaoshuai Shi
Browse files
merge with master
parents
ca5a1f19
1483517a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
pcdet/datasets/processor/point_feature_encoder.py
pcdet/datasets/processor/point_feature_encoder.py
+5
-0
No files found.
pcdet/datasets/processor/point_feature_encoder.py
View file @
f91d9098
...
@@ -31,8 +31,13 @@ class PointFeatureEncoder(object):
...
@@ -31,8 +31,13 @@ class PointFeatureEncoder(object):
)
)
data_dict
[
'use_lead_xyz'
]
=
use_lead_xyz
data_dict
[
'use_lead_xyz'
]
=
use_lead_xyz
<<<<<<<
HEAD
if
self
.
point_encoding_config
.
get
(
'FILTER_SWEEPS'
,
False
)
and
'timestamp'
in
self
.
src_feature_list
:
if
self
.
point_encoding_config
.
get
(
'FILTER_SWEEPS'
,
False
)
and
'timestamp'
in
self
.
src_feature_list
:
max_sweeps
=
self
.
point_encoding_config
.
MAX_SWEEPS
max_sweeps
=
self
.
point_encoding_config
.
MAX_SWEEPS
=======
if
self
.
point_encoding_config
.
get
(
'filter_sweeps'
,
False
)
and
'timestamp'
in
self
.
src_feature_list
:
max_sweeps
=
self
.
point_encoding_config
.
max_sweeps
>>>>>>>
dev_v0
.
5
idx
=
self
.
src_feature_list
.
index
(
'timestamp'
)
idx
=
self
.
src_feature_list
.
index
(
'timestamp'
)
dt
=
np
.
round
(
data_dict
[
'points'
][:,
idx
],
2
)
dt
=
np
.
round
(
data_dict
[
'points'
][:,
idx
],
2
)
max_dt
=
sorted
(
np
.
unique
(
dt
))[
min
(
len
(
np
.
unique
(
dt
))
-
1
,
max_sweeps
-
1
)]
max_dt
=
sorted
(
np
.
unique
(
dt
))[
min
(
len
(
np
.
unique
(
dt
))
-
1
,
max_sweeps
-
1
)]
...
...
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