ENTOTSU44

IT系のことを中心に更新してます。

Tensorboardがエラーで動かない時の対処法

問題点

Tensorboardが下のエラーが出て動かない。

[libprotobuf ERROR external/com_google_protobuf/src/google/protobuf/descriptor_database.cc:393] Invalid file descriptor data passed to EncodedDescriptorDatabase::Add().
[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):
[1]    14914 abort      tensorboard

解決策

tensorflowとprotobufのバージョンを落とす。

conda uninstall tensorflow protobuf
conda install tensorflow=1.15.0 protobuf=3.8.0