Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to extract image features using caffe matlab wrapper?

Does anyone use the matlab wrapper for the caffe framework? Is there a way how to extract an 4096 dimensional feature vector from an image? I was already following

https://github.com/BVLC/caffe/issues/432

and also tried to remove the last lines in imagenet_deploy.prototxt to remove layers as suggested in another forum on github.

But still when I run "matcaffe_demo(im, 1)" I only get a 1000 dim vector of scores (for the image net classes). Any help would be appreciated Kind regards

like image 592
mcExchange Avatar asked Jun 28 '26 03:06

mcExchange


1 Answers

It seems that you might not be calling the correct prototxt file. If the last layer defined in the prototxt has the top blob of 4096 dimension, there is no way for the output to be 1000 dimension.

To be sure, try creating a bug in the prototxt file and see whether the program crashes. If it doesn't then the program indeed is reading some other prototxt file.

like image 157
Anoop K. Prabhu Avatar answered Jun 30 '26 12:06

Anoop K. Prabhu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!