Dear Caffe Users, this is my first post on here so please bear with me.
I've been trying to train a simple DNN with a Python Layer using the latest master version of Caffe, but have been encountering errors. The Caffe trainer returns:
[libprotobuf ERROR google/protobuf/text_format.cc:245] Error parsing text-format caffe.NetParameter: 27:9: Unknown enumeration value of "PYTHON" for field "type".
This is the prototext I use:
layers {
name: "python_multiplier"
type: PYTHON
bottom: "data"
top: "python_multiplier"
python_param {
module: "python/caffe/test/test_python_layer.py"
layer: "SimpleLayer"
}
}
It thinks the problem is with the "type" field. I have also tried: Python, "Python" and PYTHON_LAYER, but to no avail.
I have been looking in the source code. I looked at the layer factory, uncommented the
LOG(INFO) << "Registering layer type: " << type;
line so that I could see if it was being registered, and it was:
I0818 11:23:56.855293 3744 layer_factory.hpp:107] Registering layer type: Python
I have also uncommented the line:
within makefile.config and re-compiled the whole package.
Does anyone know how to get the Python Layer to work in Caffe?
What are we supposed to put within the "module" field within python_param? Is this the path to the .py file containing the python layer?