hanzy88 / ckpt2ncnn

22 stars 9 forks source link

wrong convert from .pb to .param and .bin #6

Closed PPParticle closed 11 months ago

PPParticle commented 11 months ago

./tensorflow2ncnn mobilenet_v1_1.0_224_frozen.pb mobilenet_v1_1.0_224.param mobilenet_v1_1.0_224.bin ./tensorflow2ncnn: error while loading shared libraries: libprotobuf.so.19: cannot open shared object file: No such file or directory

PPParticle commented 11 months ago

It's similar to issues4. git clone https://github.com/protocolbuffers/protobuf.git cd protobuf git checkout v3.8.0 ./autogen.sh ./configure make sudo make install After compiling, it is necessary to set LD_LIBRARY_PATH to the protobuf lib (which is usually at /usr/local/lib, if --prefix doesn't set at configuration). sudo ldconfig And then it completes.