vnet-tensorflow icon indicating copy to clipboard operation
vnet-tensorflow copied to clipboard

KeyError: 'verbosity'

Open ljljlj02 opened this issue 4 years ago • 5 comments

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.

ljljlj02 avatar Jun 14 '20 08:06 ljljlj02

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.

jackyko1991 avatar Jun 15 '20 03:06 jackyko1991

I did run it on Windows 10.

ljljlj02 avatar Jun 15 '20 04:06 ljljlj02

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

zhangkun0220 avatar Mar 10 '22 00:03 zhangkun0220

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.

ljljlj02 avatar Mar 10 '22 00:03 ljljlj02

well, thanks

张昆 @.***

---Original--- From: @.> Date: Thu, Mar 10, 2022 08:50 AM To: @.>; Cc: @.@.>; Subject: Re: [jackyko1991/vnet-tensorflow] KeyError: 'verbosity' (#17)

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

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.***>

zhangkun0220 avatar Mar 10 '22 01:03 zhangkun0220