Dear Zhou
Thanks a lot for getting back to my query. Now I know how to fine-tune a model. But, I am stuck at another problem. I do not know how to extract features using Caffe. While tried with this python feature extraction script (
http://nbviewer.ipython.org/github/BVLC/caffe/blob/master/examples/filter_visualization.ipynb), it shows the following error message.
>>>import caffe
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "../python/caffe/__init__.py", line 1, in <module>
from .pycaffe import Net, SGDSolver
File "../python/caffe/pycaffe.py", line 11, in <module>
import caffe.io
File "../python/caffe/io.py", line 6, in <module>
from caffe.proto import caffe_pb2
File "../python/caffe/proto/caffe_pb2.py", line 3, in <module>
from google.protobuf import descriptor
ImportError: No module named google.protobuf
I am using Anaconda on linux machine and have built google protobuf, but still having the same error. May be, I do not know exactly where to build google protobuf, or I am missing some paths somewhere.
1. Could you please advise me how I can solve this problem?
2. Also, is there any other way to extract features from a fine-tuned model using Caffe, any matlab code?
I would highly appreciate your kind response on the above issues.