From f5570b5bba90eb69d67c8cfa56046bc0c4f4e9ee Mon Sep 17 00:00:00 2001 From: James Adams Date: Thu, 6 Feb 2020 00:34:32 -0500 Subject: [PATCH] removed commented-out code #139 --- src/cvdata/visualize.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/cvdata/visualize.py b/src/cvdata/visualize.py index 63a4f34..3f86993 100644 --- a/src/cvdata/visualize.py +++ b/src/cvdata/visualize.py @@ -133,11 +133,6 @@ def show_tfrecords_tfod( width = feature['image/width'].int64_list.value[0] height = feature['image/height'].int64_list.value[0] - # # convert the image's bytes list back into an RGB array - # img_bytes = feature['image/encoded'].bytes_list.value[0] - # img_1d = np.fromstring(img_bytes, dtype=np.uint8) - # img = np.reshape(img_1d, (height, width, 3)) - raw_img = feature['image/encoded'].bytes_list.value[0] img = tf.image.decode_jpeg(raw_img).numpy() # images are in BGR, convert to RGB