-
Notifications
You must be signed in to change notification settings - Fork 983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use tf.python_io.TFRecordWriter in Tensorflow 2.0 (generate_tfrecord.py) #90
Comments
use this : tf.compat.v1.python_io |
Or now that TF2 is out:
https://www.tensorflow.org/api_docs/python/tf/io/TFRecordWriter |
use tf.compat.v1.python_io.TFRecordWriter instead of tf.python_io.TFRecordWriter |
We need to make sure the py script follows the format for tf2: Open the generate_tfrecord.py file and make these changes:
|
@chuasonglin I followed your revisions and keep getting this error: |
fixed the set of errors? |
I get this error:
File "generate_tfrecord.py", line 102, in
main()
File "generate_tfrecord.py", line 89, in main
writer = tf.python_io.TFRecordWriter(FLAGS.output_path)
AttributeError: module 'tensorflow' has no attribute 'python_io'
What do i have to use instead?
The text was updated successfully, but these errors were encountered: