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
ModelZoo
ResNet50_tensorflow
Commits
d7d5e4fa
Unverified
Commit
d7d5e4fa
authored
Oct 30, 2017
by
derekjchow
Committed by
GitHub
Oct 30, 2017
Browse files
Merge pull request #2635 from sjentzsch/fix/2626
fixes #2626 as Tuple Parameter Unpacking is removed from Python 3
parents
059ffe4f
32439d2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
research/object_detection/utils/visualization_utils.py
research/object_detection/utils/visualization_utils.py
+2
-1
No files found.
research/object_detection/utils/visualization_utils.py
View file @
d7d5e4fa
...
@@ -289,8 +289,9 @@ def draw_bounding_boxes_on_image_tensors(images,
...
@@ -289,8 +289,9 @@ def draw_bounding_boxes_on_image_tensors(images,
agnostic_mode
=
False
,
agnostic_mode
=
False
,
line_thickness
=
4
)
line_thickness
=
4
)
def
draw_boxes
(
(
image
,
boxes
,
classes
,
scores
)
)
:
def
draw_boxes
(
image
_
boxes
_
classes
_
scores
):
"""Draws boxes on image."""
"""Draws boxes on image."""
(
image
,
boxes
,
classes
,
scores
)
=
image_boxes_classes_scores
image_with_boxes
=
tf
.
py_func
(
visualize_boxes_fn
,
image_with_boxes
=
tf
.
py_func
(
visualize_boxes_fn
,
[
image
,
boxes
,
classes
,
scores
],
tf
.
uint8
)
[
image
,
boxes
,
classes
,
scores
],
tf
.
uint8
)
return
image_with_boxes
return
image_with_boxes
...
...
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