computer-vision-in-action icon indicating copy to clipboard operation
computer-vision-in-action copied to clipboard

[功能修复] 第三方库 ``L0CV`` 开发问题

Open Charmve opened this issue 2 years ago • 0 comments

问题描述:本地测试时,通过 python3 可直接加载,完成使用,但在 /code 中 测试python3 L0CV_test.py,出现一下bug信息。

[libprotobuf FATAL google/protobuf/stubs/common.cc:87] This program was compiled against version 3.9.2 of the Protocol Buffer runtime library, which is not compatible with the installed version (3.17.1).  Contact the program author for an update.  If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library.  (Version verification failed in "bazel-out/k8-opt/bin/tensorflow/core/framework/tensor_shape.pb.cc".)
terminate called after throwing an instance of 'google::protobuf::FatalException'
  what():  This program was compiled against version 3.9.2 of the Protocol Buffer runtime library, which is not compatible with the installed version (3.17.1).  Contact the program author for an update.  If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library.  (Version verification failed in "bazel-out/k8-opt/bin/tensorflow/core/framework/tensor_shape.pb.cc".)
Aborted (core dumped)

代码结构:

code
├── L0CV
|   ├── __init__.py
|   ├── tensorflow.py
|   ├── torch.py
|   └── utils.py
├── ...
├── L0CV_test.py
└── setup.py

源代码 https://github.com/Charmve/computer-vision-in-action/tree/main/code/

理想输出:

L0CV

Charmve avatar Jul 23 '21 04:07 Charmve