Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when using caffe inside a Matlab mex file #2203

Closed
xn8812 opened this issue Mar 26, 2015 · 2 comments
Closed

Crash when using caffe inside a Matlab mex file #2203

xn8812 opened this issue Mar 26, 2015 · 2 comments

Comments

@xn8812
Copy link

xn8812 commented Mar 26, 2015

I want to extract features of images by Matlab. To save the features to a file, I wrote a mex file in which a matlab function 'feat()' is called. The matlab function 'feat()' can be any feature extractor such as Histogram of Gradient, or Caffe.

Here is the problem: when I use caffe command (such as caffe('is_initialized') and etc.) inside the matlab function 'feat()', my matlab freezes and there are two error messages shown in the terminal:

libprotobuf ERROR google/protobuf/descriptor_database.cc:57] File already exists in database: caffe/proto/caffe.proto
[libprotobuf FATAL google/protobuf/descriptor.cc:954] CHECK failed: generated_database_->Add(encoded_file_descriptor, size):

I am sure my mex file is ok with other kinds of feature extractors and my matcaffe runs normal in other .m files. So does anyone know what the problem is and how I can solve it? Please help! Thank you!

@xn8812
Copy link
Author

xn8812 commented Mar 27, 2015

any help is appreciated! Thanks!

@shelhamer
Copy link
Member

This is likely a duplicate of the protobuf linking issues discussed in #1917.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants