运行tensorboard报错:ValueError: Duplicate plugins for name projector

简介: 运行tensorboard报错:ValueError: Duplicate plugins for name projector

问题描述

模型训练时,查看损失和指标,终端调用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`, ...


目录
相关文章
|
5月前
|
TensorFlow 算法框架/工具 Python
【Tensorflow】解决Tensorboard: ValueError: Duplicate plugins for name projector
解决TensorBoard版本冲突的方法,即通过卸载冲突的TensorFlow相关包然后重新安装所需的版本。
190 1
|
Python
Python常见问题 - pip报错 ValueError: Unable to find resource t64.exe in package pip._vendor.distlib
Python常见问题 - pip报错 ValueError: Unable to find resource t64.exe in package pip._vendor.distlib
442 0
Python常见问题 - pip报错 ValueError: Unable to find resource t64.exe in package pip._vendor.distlib
|
6月前
|
Java 开发工具 git
【Python】已解决:ERROR: No matching distribution found for JPype1
【Python】已解决:ERROR: No matching distribution found for JPype1
370 0
|
8月前
|
Linux 数据安全/隐私保护
anaconda运行Notebook和jupyter报错resource.setrlimit(resource.RLIMIT_NOFILE, (soft, hard)) ValueError
anaconda运行Notebook和jupyter报错resource.setrlimit(resource.RLIMIT_NOFILE, (soft, hard)) ValueError
68 0
|
8月前
|
缓存
pytest 运行测试函数报错的解决办法 TypeError: calling <function xxx> returned None, not a test
pytest 运行测试函数报错的解决办法 TypeError: calling <function xxx> returned None, not a test
388 0
如何解决 conda install 库时报错:The environment is inconsistent, please check the package plan carefully
如何解决 conda install 库时报错:The environment is inconsistent, please check the package plan carefully
如何解决 conda install 库时报错:The environment is inconsistent, please check the package plan carefully
|
机器学习/深度学习 PyTorch 算法框架/工具
|
Python
【python3.6】pyinstaller报错AssertionError: Failed to determine matplotlib‘s data directory!【解决方案】
【python3.6】pyinstaller报错AssertionError: Failed to determine matplotlib‘s data directory!【解决方案】
307 0
|
iOS开发
Xcode运行报错Failed to prepare device for development.解决办法
Xcode运行报错Failed to prepare device for development.解决办法
681 0
|
机器学习/深度学习 数据可视化 TensorFlow
ImportError: TensorBoard logging requires TensorBoard with Python summary writer installed.
突然报如下错误,我以为是环境坏掉了,重装环境搞了半天,猜猜最后是什么原因?
291 0