Hello,
I try to create my own python loss layer.
But first, I wanted to test the implemented pyloss.py.
The file is still in folder caffe-masters/examples/pycaffe/layers.
I use this command to integrate the loss in my train_val.prototxt:
layer {
type: 'Python'
name: 'loss'
top: 'loss'
bottom: 'fc5_a'
bottom: 'label'
python_param {
# the module name -- usually the filename -- that needs to be in $PYTHONPATH
module: 'pyloss'
# the layer name -- the class name in the module
layer: 'EuclideanLossLayer'
}
# set loss weight so Caffe knows this is a loss layer.
# since PythonLayer inherits directly from Layer, this isn't automatically
# known to Caffe
loss_weight: 1
}
But when I start the training using caffe - I get the error:
caffe ImportError: No module named pylossI followed the instructions of:
http://chrischoy.github.io/research/caffe-python-layer/and build Caffe with
WITH_PYTHON_LAYER
option, but nothing works.
I still have the defect note.
Do somebody know what I have to do, to import my python loss correctly in caffe?