ValueError: Tried to convert ‘min_object_covered’ to a tensor and failed. Error:

ValueError: Tried to convert 'min_object_covered' to a tensor and failed. Error: None values ​​not supported. error.
It is because the API of tensorflow has changed and the code needs to be adjusted.
turn out to be
bbox_begin, bbox_size, _ = tf.image.sample_distorted_bounding_box(tf.shape(image), bounding_boxes=bbox)

adjust to:
bbox_begin, bbox_size, _ = tf.image.sample_distorted_bounding_box(tf.shape(image), bounding_boxes=bbox,min_object_covered=0.1)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326171008&siteId=291194637