Skip to content
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

ERROR in generate_tfrecord.py ( AttributeError: output_path ) #111

Open
Aashiq24 opened this issue Apr 17, 2020 · 1 comment
Open

ERROR in generate_tfrecord.py ( AttributeError: output_path ) #111

Aashiq24 opened this issue Apr 17, 2020 · 1 comment

Comments

@Aashiq24
Copy link

hello everyone, i have been struggling to solve this issue for quite some time now. whenever i run generate_tf.py script, i encounter the following error message:

Traceback (most recent call last):
File "C:/Users/MSI-GF63/Desktop/raccoon_dataset-master/generate_tfrecord.py", line 101, in
tf.app.run()
File "C:\Users\MSI-GF63\anaconda3\lib\site-packages\tensorflow\python\platform\app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "C:\Users\MSI-GF63\anaconda3\lib\site-packages\absl\app.py", line 299, in run
_run_main(main, args)
File "C:\Users\MSI-GF63\anaconda3\lib\site-packages\absl\app.py", line 250, in _run_main
sys.exit(main(argv))
File "C:/Users/MSI-GF63/Desktop/raccoon_dataset-master/generate_tfrecord.py", line 86, in main
print(FLAGS.output_path)
File "C:\Users\MSI-GF63\anaconda3\lib\site-packages\tensorflow\python\platform\flags.py", line 85, in getattr
return wrapped.getattr(name)
File "C:\Users\MSI-GF63\anaconda3\lib\site-packages\absl\flags_flagvalues.py", line 473, in getattr
raise AttributeError(name)
AttributeError: output_path

can someone please help me with this? i am using windows and running the script on Pycharm

@hostankit
Copy link

change the tf.app to tf.compat.v1.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants