Skip to content

Commit

Permalink
removed commented-out code
Browse files Browse the repository at this point in the history
  • Loading branch information
monocongo committed Feb 6, 2020
1 parent 1885219 commit f5570b5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/cvdata/visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f5570b5

Please sign in to comment.