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
fa330622
Unverified
Commit
fa330622
authored
Jul 04, 2022
by
yukang
Committed by
GitHub
Jul 04, 2022
Browse files
Update database_sampler.py
parent
0c85f610
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pcdet/datasets/augmentor/database_sampler.py
pcdet/datasets/augmentor/database_sampler.py
+1
-1
No files found.
pcdet/datasets/augmentor/database_sampler.py
View file @
fa330622
...
...
@@ -345,7 +345,7 @@ class DataBaseSampler(object):
if
self
.
img_aug_type
==
'kitti'
:
obj_points_idx
=
np
.
concatenate
(
img_aug_gt_dict
[
'obj_index_list'
],
axis
=
0
)
point_idxes
=
-
1
*
np
.
ones
(
len
(
points
),
dtype
=
np
.
int
)
point_idxes
=
np
.
concatenate
([
obj_points_idx
,
point_idx
es
],
axis
=
0
)
point_idxes
[:
obj_points_idx
.
shape
[
0
]]
=
obj_
point
s
_idx
data_dict
[
'gt_boxes2d'
]
=
np
.
concatenate
([
img_aug_gt_dict
[
'gt_boxes2d'
],
np
.
array
(
img_aug_gt_dict
[
'crop_boxes2d'
])],
axis
=
0
)
data_dict
=
self
.
copy_paste_to_image_kitti
(
data_dict
,
img_aug_gt_dict
[
'gt_crops2d'
],
img_aug_gt_dict
[
'gt_number'
],
point_idxes
)
...
...
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