启动TensorBoard时出错

时间:2018-07-25 10:21:52

标签: tensorboard

我已经安装了TensorBoard。在启动之前,我还已经在我的神经网络训练文件中编写了代码。

sess = tf.Session()  
writer = tf.summary.FileWriter("demo")
writer.add_graph(sess.graph)

当我尝试从终端启动TensorBoard时,请使用以下命令tensorboard --logdir=logs/ 我收到此错误。

Traceback (most recent call last):
  File "/usr/local/bin/tensorboard", line 7, in <module>
    from tensorboard.main import run_main
  File "/usr/local/lib/python3.4/dist-packages/tensorboard/main.py", line 40, in <module>
    from tensorboard import default
  File "/usr/local/lib/python3.4/dist-packages/tensorboard/default.py", line 37, in <module>
    from tensorboard.plugins.audio import audio_plugin
  File "/usr/local/lib/python3.4/dist-packages/tensorboard/plugins/audio/audio_plugin.py", line 30, in <module>
    from tensorboard.plugins.audio import metadata
  File "/usr/local/lib/python3.4/dist-packages/tensorboard/plugins/audio/metadata.py", line 22, in <module>
    from tensorboard.plugins.audio import plugin_data_pb2
  File "/usr/local/lib/python3.4/dist-packages/tensorboard/plugins/audio/plugin_data_pb2.py", line 22, in <module>
    serialized_pb=_b('\n+tensorboard/plugins/audio/plugin_data.proto\x12\x0btensorboard\"}\n\x0f\x41udioPluginData\x12\x0f\n\x07version\x18\x01 \x01(\x05\x12\x37\n\x08\x65ncoding\x18\x02 \x01(\x0e\x32%.tensorboard.AudioPluginData.Encoding\" \n\x08\x45ncoding\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03WAV\x10\x0b\x62\x06proto3')
TypeError: __new__() got an unexpected keyword argument 'serialized_options'

我的音频插件或安装是否存在问题?我正在使用Ubuntu 14.04。我是一个初学者,请原谅我忽略了任何基本知识。

1 个答案:

答案 0 :(得分:0)

这是我在Windows上发生的。我删除了protobuf和libprotobuf,然后重新安装了tensorboard,它成功了!

不知道为什么,但是在尝试找到像您这样的解决方案时,protobuf似乎在其他库中引起了此类问题,所以我尝试了