Python layer in Caffe can speed up development process Issue1703
Compile WITH_PYTHON_LAYER option
First, you have to build Caffe with WITH_PYTHON_LAYER option 1. Run make clean to delete all the compiled binaries. Then,
If you skip this, caffe will complain that layer factory function can’t find Python layer.
Python Layer
A gist from Evan Shelhamer summarizes the basics of the python layer.
You have to define a python layer that is defined in your $PYTHONPATH. In the prototxt, the module is pyloss, which means that the file that contains the EuclideanLossLayer should be named pyloss.py.
Leave a Comment