importCaffeNetwork by Matlab 2017a deep learning toolbox
2 views (last 30 days)
Show older comments
When I tried to use Matlab 2017a Deep Learning Toolbox to import caffe model, it showed errors.
Error using nnet.internal.cnn.caffe.mexcaffe Invalid MEX-file '/home/yunyang/Documents/MATLAB/SupportPackages/R2017a/toolbox/nnet/supportpackages/caffe_importer/+nnet/+internal/+cnn/+caffe/mexcaffe.mexa64': /home/yunyang/Documents/MATLAB/SupportPackages/R2017a/toolbox/nnet/supportpackages/caffe_importer/+nnet/+internal/+cnn/+caffe/mexcaffe.mexa64: undefined symbol: _ZNK6google8protobuf7Message11GetTypeNameEv. Error in nnet.internal.cnn.caffe.CaffeModelReader (line 122) int32(nnet.internal.cnn.caffe.CaffeLibraryFunctionType.EReadNetStructureFromTextFile), ... Error in importCaffeNetwork (line 80) readerObj = nnet.internal.cnn.caffe.CaffeModelReader(protofile, 'Datafile', ...
My machine configuration:
Matlab 2017a Ubuntu 16.04 64bit OS
0 Comments
Answers (1)
Pratik
on 10 Dec 2024
Hi Yunyang,
The issue with "importCaffeNetwork" could be due to incompatibility of the protobuf file.
If you export "LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libprotobuf.so.9", MATLAB does not work for deep learning. If you delete this, MATLAB will work correctly.
0 Comments
See Also
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!