(image, bboxes, name='image', unwhitened=False)
Add image with bounding boxes to summary.
Add image with bounding boxes to summary.
Add image with bounding boxes to summary .
def tf_summary_image(image, bboxes, name='image', unwhitened=False):
    """Add image with bounding boxes to summary.
    """
    if unwhitened:
        image = tf_image_unwhitened(image)
    image = tf.expand_dims(image, 0)
    bboxes = tf.expand_dims(bboxes, 0)
    image_with_box = tf.image.draw_bounding_boxes(image, bboxes)
    tf.summary.image(name, image_with_box, max_outputs=3)
def tf_summary_image ( image , bboxes , name = 'image' , unwhitened = False ) : if unwhitened : image = tf_image_unwhitened ( image ) image = tf . expand_dims ( image , 0 ) bboxes = tf . expand_dims ( bboxes , 0 ) image_with_box = tf . image . draw_bounding_boxes ( image , bboxes ) tf . summary . image ( name , image_with_box , max_outputs = 3 )