问题描述
模型训练时,查看损失和指标,终端调用tensorboard时报错如下:
(bsrn) D:\All model\GAN Model\Three\BSRN-main\BSRN-main>Tensorboard --logdir=./tb_logger/BSRN_x4 TensorFlow installation not found - running with reduced feature set. Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "D:\anaconda3\Scripts\tensorboard.exe\__main__.py", line 7, in <module> File "D:\anaconda3\Lib\site-packages\tensorboard\main.py", line 46, in run_main app.run(tensorboard.main, flags_parser=tensorboard.configure) File "D:\anaconda3\Lib\site-packages\absl\app.py", line 308, in run _run_main(main, args) File "D:\anaconda3\Lib\site-packages\absl\app.py", line 254, in _run_main sys.exit(main(argv)) ^^^^^^^^^^ File "D:\anaconda3\Lib\site-packages\tensorboard\program.py", line 276, in main return runner(self.flags) or 0 ^^^^^^^^^^^^^^^^^^ File "D:\anaconda3\Lib\site-packages\tensorboard\program.py", line 292, in _run_serve_subcommand server = self._make_server() ^^^^^^^^^^^^^^^^^^^ File "D:\anaconda3\Lib\site-packages\tensorboard\program.py", line 467, in _make_server app = application.TensorBoardWSGIApp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\anaconda3\Lib\site-packages\tensorboard\backend\application.py", line 139, in TensorBoardWSGIApp return TensorBoardWSGI( ^^^^^^^^^^^^^^^^ File "D:\anaconda3\Lib\site-packages\tensorboard\backend\application.py", line 252, in __init__ raise ValueError( ValueError: Duplicate plugins for name projector
解决方案:
环境里安装了多个版本的tensorboard和tensorflow,按照提示卸载并重新安装:
pip uninstall tb-nightly tensorboard tensorflow tensorflow-estimator tf-estimator-nightly tf-nightly pip install tensorflow # or `tensorflow-gpu`, or `tf-nightly`, ...