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
9e460da2
Unverified
Commit
9e460da2
authored
Aug 10, 2020
by
Shaoshuai Shi
Committed by
GitHub
Aug 10, 2020
Browse files
bugfixed: ignore empty boxes in visualization (#234)
parent
262596c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tools/visual_utils/visualize_utils.py
tools/visual_utils/visualize_utils.py
+1
-1
No files found.
tools/visual_utils/visualize_utils.py
View file @
9e460da2
...
@@ -157,7 +157,7 @@ def draw_scenes(points, gt_boxes=None, ref_boxes=None, ref_scores=None, ref_labe
...
@@ -157,7 +157,7 @@ def draw_scenes(points, gt_boxes=None, ref_boxes=None, ref_scores=None, ref_labe
corners3d
=
boxes_to_corners_3d
(
gt_boxes
)
corners3d
=
boxes_to_corners_3d
(
gt_boxes
)
fig
=
draw_corners3d
(
corners3d
,
fig
=
fig
,
color
=
(
0
,
0
,
1
),
max_num
=
100
)
fig
=
draw_corners3d
(
corners3d
,
fig
=
fig
,
color
=
(
0
,
0
,
1
),
max_num
=
100
)
if
ref_boxes
is
not
None
:
if
ref_boxes
is
not
None
and
len
(
ref_boxes
)
>
0
:
ref_corners3d
=
boxes_to_corners_3d
(
ref_boxes
)
ref_corners3d
=
boxes_to_corners_3d
(
ref_boxes
)
if
ref_labels
is
None
:
if
ref_labels
is
None
:
fig
=
draw_corners3d
(
ref_corners3d
,
fig
=
fig
,
color
=
(
0
,
1
,
0
),
cls
=
ref_scores
,
max_num
=
100
)
fig
=
draw_corners3d
(
ref_corners3d
,
fig
=
fig
,
color
=
(
0
,
1
,
0
),
cls
=
ref_scores
,
max_num
=
100
)
...
...
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