ValueError: Tried to convert ‘min_object_covered’ to a tensor and failed. Error: None values not supported.
原来的部分
begin,size,bounding_box=tf.image.sample_distorted_bounding_box(tf.shape(image_after_decode),bounding_boxes=boxes)
改正后的部分
begin,size,bounding_box=tf.image.sample_distorted_bounding_box(tf.shape(image_after_decode),bounding_boxes=boxes,min_object_covered=0.1)
改正后的顺利运行的正确代码代码
`import matplotlib.pyplot as plt
import tensorflow as tf
import numpy as np
image=tf.gfile.GFile('图片路径','rb').read(