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

KeyError: 'verbosity' #17

Open
ljljlj02 opened this issue Jun 14, 2020 · 5 comments
Open

KeyError: 'verbosity' #17

ljljlj02 opened this issue Jun 14, 2020 · 5 comments

Comments

@ljljlj02
Copy link

ljljlj02 commented Jun 14, 2020

when i run train.py ,something went wrong:KeyError: 'verbosity'

2020-06-14 16:28:44.548595: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_100.dll
Traceback (most recent call last):
File "D:/vnet-tensorflow-master/train.py", line 625, in
tf.compat.v1.app.run()
File "E:\Ana\envs\py374\lib\site-packages\tensorflow_core\python\platform\app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "E:\Ana\envs\py374\lib\site-packages\absl\app.py", line 293, in run
flags_parser,
File "E:\Ana\envs\py374\lib\site-packages\absl\app.py", line 359, in run_init
logging.use_absl_handler()
File "E:\Ana\envs\py374\lib\site-packages\absl\logging_init
.py", line 1148, in use_absl_handler
FLAGS['verbosity']._update_logging_levels() # pylint: disable=protected-access
File "E:\Ana\envs\py374\lib\site-packages\absl\flags_flagvalues.py", line 463, in getitem
return self._flags()[name]
KeyError: 'verbosity'

How can I solve this problem? (my python version is 3.7.4,tensorflow-gpu==1.14.0,Anaconda environment is ok. )
Any help would be appreciate.

@jackyko1991
Copy link
Owner

I wonder if you are training with Windows environment. The code is only tested on Ubuntu 18.04.

The error shows that absl logging environment maybe inconsistent for Windows and Linux Tensorflow built.

@ljljlj02
Copy link
Author

I did run it on Windows 10.

@zhangkun0220
Copy link

I encountered the same situation as you. Have you finally solved it?

@ljljlj02
Copy link
Author

I encountered the same situation as you. Have you finally solved it?

No, I have now given up using TensorFlow, Pytorch (or MONAI) may be a better option.

@zhangkun0220
Copy link

zhangkun0220 commented Mar 10, 2022 via email

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