错误行:
bbox_begin, bbox_size, _ = tf.image.sample_distorted_bounding_box ( tf.shape (image), bounding_boxes=bbox)改成:
bbox_begin, bbox_size, _ = tf.image.sample_distorted_bounding_box ( tf.shape (image), bounding_boxes=bbox,min_object_covered=0.1)增加了新参数:
min_object_covered=0.1