记录问题的出现和解决过程。
[En]
Record the emergence and solving process of the problem.
报错命令及信息
笔者在终端调用 tensorboard 时:
tensorboard --logdir=runs/ --bind_all
报错:
raise ValueError('Duplicate plugins for name %s' % plugin.plugin_name)
ValueError: Duplicate plugins for name projector
初步尝试
从报错信息来看应该是有 “多个插件重复” 了。笔者首先试图自己查看 Python 环境中的相关插件:
pip list | grep tensorboard
输出:
tensorboard 2.4.0
tensorboard-data-server 0.6.1
tensorboard-plugin-wit 1.8.1
tensorboard 2.5.0
tensorboardX 2.1
确实有两个重复的 tensorboard,然后笔者一顿操作删了这个重装那个,删了那个又重装这个,还是没能解决问题。
问题解决
在网上搜索之后,发现 tensorflow 官方提供了 tensorboard 问题的诊断脚本:
https://raw.githubusercontent.com/tensorflow/tensorboard/master/tensorboard/tools/diagnose_tensorboard.py
运行该脚本,会诊断当前环境 tensorboard 无法运行的问题,并给出简洁可行的解决方案。具体操作:
wget https://raw.githubusercontent.com/tensorflow/tensorboard/master/tensorboard/tools/diagnose_tensorboard.py
python diagnose_tensorboard.py
将提供直接解决方案,类似于:
[En]
Will give a direct solution, similar to:
pip install tensorflow(or tensorflow-gpu) ...
每台机器的问题环境不同,就会有不同的解决方案,简而言之,就是根据其输出运行情况来解决问题。
[En]
The problem of each machine environment is different, there will be a different solution, in short, according to its output operation can solve the problem.
给 Google 官方点个赞,虽然各种版本不兼容问题一直饱受诟病,但仅就该 tensorboard 出现的问题而言,其提供的检测脚本还是比较高效可行的。
Ref:
https://blog.csdn.net/jinbeibei0606/article/details/100771997
Original: https://blog.csdn.net/weixin_44966641/article/details/123292034
Author: Adenialzz
Title: tensorboard报错:ValueError Duplicate plugins for name projector 问题的出现及解决过程
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/496749/
转载文章受原作者版权保护。转载请注明原作者出处!