Parsing Weights from Caffe Model


You may also refer to:

Comments for errors in the first link
1. ImportError: No module named Image:
Replace “import Image” with “from PIL import Image”
2. matplotlib does not show any image
import matplotlib.pyplot as plt
plt.imshow(im) #doesn’t show any image # Add this in the last line.


Dig into C++:
Prerequisites: Google Protobuf.
Key function to read weights from caffemodel file
Key related class implementation in Caffe
class NetParameter : public ::google::protobuf::Message {