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
mmdetection3d
Commits
2ca5279b
"tools/vscode:/vscode.git/clone" did not exist on "90e63784f3d41909a713cf68ac381ee5fd94ff9a"
Commit
2ca5279b
authored
Jun 10, 2020
by
ZwwWayne
Browse files
fix bug of label index in nus bbox
parent
47850641
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
mmdet3d/datasets/pipelines/train_aug.py
mmdet3d/datasets/pipelines/train_aug.py
+5
-1
No files found.
mmdet3d/datasets/pipelines/train_aug.py
View file @
2ca5279b
...
...
@@ -304,7 +304,11 @@ class ObjectRangeFilter(object):
gt_labels_3d
=
input_dict
[
'gt_labels_3d'
]
mask
=
gt_bboxes_3d
.
in_range_bev
(
self
.
bev_range
)
gt_bboxes_3d
=
gt_bboxes_3d
[
mask
]
gt_labels_3d
=
gt_labels_3d
[
mask
]
# mask is a torch tensor but gt_labels_3d is still numpy array
# using mask to index gt_labels_3d will cause bug when
# len(gt_labels_3d) == 1, where mask=1 will be interpreted
# as gt_labels_3d[1] and cause out of index error
gt_labels_3d
=
gt_labels_3d
[
mask
.
numpy
().
astype
(
np
.
bool
)]
# limit rad to [-pi, pi]
gt_bboxes_3d
.
limit_yaw
(
offset
=
0.5
,
period
=
2
*
np
.
pi
)
...
...
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