The flag 'log_dir' is defined twice - While running the ./demo.sh
Closed this issue · 6 comments
pidugusundeep commented
Error :
absl.flags._exceptions.DuplicateFlagError: The flag 'log_dir' is defined twice. First from absl.logging, Second from flags. Description from first occurrence: directory to write logfiles into
What's the fix to this?
tomhosking commented
Could you please run the following command and post the output here?
pip freeze | grep absl
pidugusundeep commented
$ pip freeze | grep absl
absl-py==0.5.0
tomhosking commented
Weird, I haven't seen this before. I guess you can comment out the declaration in flags.py for now, I'll see if I can find out why it works for me.
pidugusundeep commented
tomhosking commented
requirements.txt
specifies tensorflow version 1.12, I don't know if 1.14 is compatible with the code.
pidugusundeep commented
Sorry i was using python 3.7
and i was unable to install tensorflow 1.12.0
so i downgraded to python 3.6
and i was able to run the application (./demo.sh) .