使用Tensorboard的奇怪报错解决

(tf2-gpu) PS D:\11_Graduation_Project\04_code\Experiment01> tensorboard --logdir logs/fit
Traceback (most recent call last):
  File "C:\Anaconda\envs\tf2-gpu\Scripts\tensorboard-script.py", line 10, in <module>
    sys.exit(run_main())
  File "C:\Anaconda\envs\tf2-gpu\lib\site-packages\tensorboard\main.py", line 59, in run_main
    program.get_default_assets_zip_provider())
  File "C:\Anaconda\envs\tf2-gpu\lib\site-packages\tensorboard\program.py", line 144, in __init__
    self.plugin_loaders = [make_loader(p) for p in plugins]
  File "C:\Anaconda\envs\tf2-gpu\lib\site-packages\tensorboard\program.py", line 144, in <listcomp>
    self.plugin_loaders = [make_loader(p) for p in plugins]
  File "C:\Anaconda\envs\tf2-gpu\lib\site-packages\tensorboard\program.py", line 143, in make_loader
    raise ValueError("Not a TBLoader or TBPlugin subclass: %s" % plugin)
ValueError: Not a TBLoader or TBPlugin subclass: <class 'tensorboard_plugin_wit.wit_plugin_loader.WhatIfToolPluginLoader'>

最后的 ValueError: Not a TBLoader or TBPlugin subclass:
使用Tensorboard的奇怪报错解决_第1张图片
https://github.com/tensorflow/tensorboard/blob/master/tensorboard/backend/application.py
在tensorflow的backend中看到,引发这个错误是因为传入make_plugin_loader()函数的plugin_spec不是TBloader也不是TBplugin,不想往下找原因了,再找要到源码里了,毕竟只是个工具,我觉得重装一下就好了。

我使用 conda list 查看了一下安装包,发现tensorboard和tensorflow的安装channal不同,应该是我安装了多个版本的tensorboard,我觉得tensorborad-plugin-wit是元凶,所以我就使用 pip uninstall tensorboardpip uninstall tensorboard-plugin-wit 最后竟然work了!!!
使用Tensorboard的奇怪报错解决_第2张图片
使用Tensorboard的奇怪报错解决_第3张图片

你可能感兴趣的:(anaconda,tensorflow,深度学习)