rishizek / tensorflow-deeplab-v3-plus

DeepLabv3+ built in TensorFlow
MIT License
833 stars 307 forks source link

AssertionError: `output_dir` missing. in create_create_cityscapes_tf_record.py #94

Open Phulieu opened 3 years ago

Phulieu commented 3 years ago

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 commented 3 years ago

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

snowmint commented 3 years ago

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.