Open aaronhan92 opened 5 years ago
dst_image = tf_image.resize_image(dst_image, out_shape, method=tf.image.ResizeMethod.BILINEAR, align_corners=False)
tf_summary_image(dst_image, bboxes, 'image_shape_distorted') print("image shape distorted")
fig = plt.figure(1) fig.add_subplot(1,2,1) plt.imshow(dst_image) plt.savefig('../preprocessing/figures/image_shape_distorted.png')
raise TypeError("Image data cannot be converted to float") TypeError: Image data cannot be converted to float
dst_image = tf_image.resize_image(dst_image, out_shape, method=tf.image.ResizeMethod.BILINEAR, align_corners=False)
tf_summary_image(dst_image, bboxes, 'image_shape_distorted') print("image shape distorted")
fig = plt.figure(1) fig.add_subplot(1,2,1) plt.imshow(dst_image) plt.savefig('../preprocessing/figures/image_shape_distorted.png')
raise TypeError("Image data cannot be converted to float") TypeError: Image data cannot be converted to float