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

AssertionError: output_dir missing. in create_create_cityscapes_tf_record.py #94

Open
Phulieu opened this issue Nov 4, 2020 · 2 comments

Comments

@Phulieu
Copy link

Phulieu commented Nov 4, 2020

File "create_cityscapes_tf_record.py", line 108, in main
assert FLAGS.output_dir, 'output_dir missing.'
AssertionError: output_dir missing.

I have the problem in running create_create_cityscapes_tf_record.py
First I change :
import tensorflow as tf
to:
import tensorflow.compat.v1 as tf
Because I use tensorflow 2.2
Is there any error in this way ?

@zhouxiaoxi1994
Copy link

Have you solved this problem? Can you explain how to set these paths?

@snowmint
Copy link

output_dir is which directory you want to store the TFRecord output, you can simply use --output_dir ./output.
Just set output_dir is not enough, you also need to specify the directory of --input_pattern, --annot_pattern, and --cityscapes_dir, each of this directory depend on where your dataset been put.

Detailed explanations of those arguments are all in the create_cityscapes_tf_record.py.

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

3 participants