I am currently following this tutorial at section 4. When I run the command to generate the TF Records it returns a trace-back error for the generate_tfrecord.py file. The first error being for:
flags = tf.compat.v1.flags
flags.DEFINE_string('csv_input', '', 'Path to the CSV input')
flags.DEFINE_string('image_dir', '', 'Path to the image directory')
flags.DEFINE_string('output_path', '', 'Path to output TFRecord')
FLAGS = flags.FLAGS
I simply fixed it by adding the .compat.v1 line because I am using TF 2.0.
The next error I got was that last line with;
if __name__ == '__main__':
tf.app.run()
It returned:
Traceback (most recent call last):
File "generate_tfrecord.py", line 101, in <module>
tf.app.run()
AttributeError: module 'tensorflow' has no attribute 'app'
Any help would greatly appreciated! -Cheers