sulc / tfrecord-viewer

TFRecord Viewer for browsing contents of TFRecords with object detection/classification annotations.
Other
183 stars 45 forks source link

Resolves AttributeError with TensorFlow 2.4.1 #11

Closed raudette closed 3 years ago

raudette commented 3 years ago

I'm running TensorFlow 2.4.1. When I first ran tfrecord-viewer, it presented the following error: AttributeError: module 'tensorflow' has no attribute 'python_io'

I came across this solution in another project, https://github.com/datitran/raccoon_dataset/issues/90

It now runs without issue - I'm not sure what the impact might be to older versions of Tensorflow.

tillchen commented 3 years ago

👍 Thank you so much! I also ran into the same issue. And this PR fixes the problem. Hope this can be merged soon 😄

sulc commented 3 years ago

Thank you! Merged :+1: