balancap / SSD-Tensorflow

Single Shot MultiBox Detector in TensorFlow
4.11k stars 1.89k forks source link

How to display or plot preprocessed image using matlab in ssd_vgg_preprocessing.py #299

Open aaronhan92 opened 5 years ago

aaronhan92 commented 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