raccoon_dataset icon indicating copy to clipboard operation
raccoon_dataset copied to clipboard

Error occurs when using generate_tfrecord.py

Open limkuoysuong opened this issue 6 years ago • 2 comments

This is the error I got when running generate_tfrecord.py

Traceback (most recent call last): File "generate_tfrecord_main.py", line 104, in tf.app.run() File "/home/suong/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 43, in run sys.exit(main(sys.argv[:1] + flags_passthrough)) File "generate_tfrecord_main.py", line 90, in main writer = tf.python_io.TFRecordWriter(FLAGS.output_path) File "/home/suong/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/python/platform/flags.py", line 50, in getattr raise AttributeError(name) AttributeError: output_path

Could anyone help me with this?

limkuoysuong avatar Sep 06 '17 07:09 limkuoysuong

This can't be the full error? What is output_path?

datitran avatar Sep 19 '17 00:09 datitran

Hello, I had the same problem:

File "C:\Users\ucesfpa\Object_Detection\models-master\research\raccoon_dataset-master\generate_tfrecord.py", line 85, in main writer = tf.python_io.TFRecordWriter(FLAGS.output_path) File "C:\Users\ucesfpa\Anaconda3\envs\deeplearning\lib\site-packages\tensorflow\python\platform\flags.py", line 55, in getattr raise AttributeError(name) AttributeError: output_path

It looks like there is a problem in the file flags.py at the line highlited with "<<<---"

def getattr(self, name): """Retrieves the 'value' attribute of the flag --name.""" try: parsed = self.dict['__parsed'] except KeyError: # May happen during pickle.load or copy.copy raise AttributeError(name) if not parsed: self._parse_flags() if name not in self.dict['__flags']: raise AttributeError(name) <<<<-------- return self.dict['__flags'][name]

Can you Help me in solving this problem??

Regards, Fabio

ucesfpa avatar Oct 27 '17 10:10 ucesfpa