问题描述:之前用的好好的,训练的时候打开tensorboard报错tensorboard ValueError: Duplicate plugins for name projector,完整错误如下:
Traceback (most recent call last):
File "/home/.conda/envs/ultralytics_yolov3/bin/tensorboard", line 8, in
sys.exit(run_main())
File "/home/.conda/envs/ultralytics_yolov3/lib/python3.7/site-packages/tensorboard/main.py", line 46, in run_main
app.run(tensorboard.main, flags_parser=tensorboard.configure)
File "/home/.conda/envs/ultralytics_yolov3/lib/python3.7/site-packages/absl/app.py", line 300, in run
_run_main(main, args)
File "/home/.conda/envs/ultralytics_yolov3/lib/python3.7/site-packages/absl/app.py", line 251, in _run_main
sys.exit(main(argv))
File "/home/.conda/envs/ultralytics_yolov3/lib/python3.7/site-packages/tensorboard/program.py", line 276, in main
return runner(self.flags) or 0
File "/home/.conda/envs/ultralytics_yolov3/lib/python3.7/site-packages/tensorboard/program.py", line 292, in _run_serve_subcommand
server = self._make_server()
File "/home/.conda/envs/ultralytics_yolov3/lib/python3.7/site-packages/tensorboard/program.py", line 481, in _make_server
deprecated_multiplexer,
File "/home/.conda/envs/ultralytics_yolov3/lib/python3.7/site-packages/tensorboard/backend/application.py", line 145, in TensorBoardWSGIApp
experimental_middlewares,
File "/home/.conda/envs/ultralytics_yolov3/lib/python3.7/site-packages/tensorboard/backend/application.py", line 253, in __init__
"Duplicate plugins for name %s" % plugin.plugin_name
ValueError: Duplicate plugins for name projector
分析:查阅资料说是安装了多个版本的tensorboard,需要删除一个tensorboard--2.0.0dist-info ,但在ubuntu环境下无法直接打开文件夹去找这个文件夹,于是只能查看环境安装列表,然后尝试删除。
(1)执行conda list,发现果然该环境中安装了两个tensorboard,如下图所示:
尝试卸载一个,使用pip或者conda分别尝试卸载2.3.0和2.5.0版本的tensorboard,留下其中一个都没用 ,但是介于tensorflow是pip安装的,因此使用conda卸载2.3.0的tensorboard,留下2.5.0的。
(2)pip卸载tensorboard 2.5.0重新安装,安装了2.7.0,仍然报同样的错误。
(3)pip uninstall tb-nightly,卸载tb-nightly,执行tensorboard --logdir=logs/logs_1,报错:
bash: /home/.conda/envs/ultralytics_yolov3/bin/tensorboard: 没有那个文件或目录
(4)使用pip卸载tensorboard,重新安装。问题解决!
参考:tensorboard ValueError: Duplicate plugins for name projector_Avada_533的博客-CSDN博客
[报错] [TensorBoard] [TensorFlow] ValueError: Duplicate plugins for name projector_Xovee-CSDN博客