python - tensorboard --logdir=runs not working:中止陷阱:6
问题描述
我正在尝试运行 tensorboard: tensorboard --logdir=runs
。
我也试过:tensorboard --logdir=runs --host=127.0.0.1
。
我正在从包含runs
文件夹的目录中的终端运行命令。
我收到以下错误:
[libprotobuf FATAL external/com_google_protobuf/src/google/protobuf/descriptor.cc:1367]
CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size):
libc++abi.dylib: terminating with uncaught exception of type google::protobuf::FatalException:
CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size):
Abort trap: 6
我的 Python 代码包含以下几行:
tb_path = './runs/SimpleLSTM_MNIST'
if os.path.isdir(tb_path):
shutil.rmtree(tb_path)
writer = tb.SummaryWriter(log_dir=tb_path)
我runs
的文件夹包含文件夹SimpleLSTM_MNIST
,其中包含events.out.tfevents.1591953948.computername.local.29440.0
.
操作系统:MacOS Catalina
我该如何解决这个问题?
解决方案
看起来 protobuf 无法正常工作,请尝试安装最新版本
pip3 uninstall protobuf
pip3 install protobuf
推荐阅读
- arrays - leetcode 287 的时间复杂度
- javascript - 如何更改默认音频输入
- amazon-web-services - AWS Lambda 打印运行 lambda 函数的“当前用户 ID”(不是账户 ID)
- continuous-integration - 如何将退出代码从自定义测试框架传递到 CircleCI 以便在必要时使该步骤失败
- haskell - 如何使用 QuickCheck 调试发散测试
- ms-access - microsoft access 字段必须为空白或具有特定长度的值
- cassandra - 我们可以在单个查询中使用多个 cassandra CQL 集合( set、list、map )吗?
- ruby-on-rails - 在之前(:套件)中使用“file_fixture”?
- javascript - Kindle 实验性浏览器将网页中包含的所有 javascript 错误时间提前 7 小时 - 如何抵消?
- html - 如何定位特定的 html 元素以在 CSS 中进行编辑