"vscode:/vscode.git/clone" did not exist on "81cf6368adc15091c5fe0abdf2267b2699e03c95"
Unverified Commit d7d5e4fa authored by derekjchow's avatar derekjchow Committed by GitHub
Browse files

Merge pull request #2635 from sjentzsch/fix/2626

fixes #2626 as Tuple Parameter Unpacking is removed from Python 3
parents 059ffe4f 32439d2e
...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment