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

absl.flags._exceptions.UnrecognizedFlagError: Unknown command line flag 'out_dir' #119

Open
vendyv opened this issue Feb 10, 2020 · 2 comments

Comments

@vendyv
Copy link

vendyv commented Feb 10, 2020

This error pops up everytime i try to run 'run-demo.py' from demo branch.

command: python3 run-demo.py
Traceback (most recent call last): File "run-demo.py", line 16, in <module> demo = Demo() File "/home/vendy/Desktop/kwgraph/bi-att-flow-demo/basic/demo_cli.py", line 117, in __init__ config.out_dir = os.path.join(config.out_base_dir, config.model_name, str(config.run_id).zfill(2)) File "/home/vendy/.local/lib/python3.6/site-packages/tensorflow_core/python/platform/flags.py", line 88, in __setattr__ return self.__dict__['__wrapped'].__setattr__(name, value) File "/home/vendy/.local/lib/python3.6/site-packages/absl/flags/_flagvalues.py", line 499, in __setattr__ return self._set_unknown_flag(name, value) File "/home/vendy/.local/lib/python3.6/site-packages/absl/flags/_flagvalues.py", line 375, in _set_unknown_flag raise _exceptions.UnrecognizedFlagError(name, value) absl.flags._exceptions.UnrecognizedFlagError: Unknown command line flag 'out_dir'

@naveenjafer
Copy link

naveenjafer commented Jun 29, 2020

@vendyv Did you manage to get this to work? I am facing the same issue

@353xiong
Copy link

add this in cli.py

flags.DEFINE_string("out_dir", "", "")
flags.DEFINE_string("save_dir", "", "")
flags.DEFINE_string("eval_dir", "", "")
flags.DEFINE_string("answer_dir", "", "")

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