Groups
Sign in
Groups
Caffe Users
Conversations
Labels
About
Send feedback
Help
How to add a custom python loss layer?
26 views
custom
loss
python
Skip to first unread message
ABHISHEK SETHI
unread,
Jun 22, 2018, 5:25:02 AM
6/22/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Caffe Users
I added a custom loss layer and made changes in the prototxt file as folows but I am getting the following error.
## modified loss layer
layers {
type: PYTHON
name: 'loss'
bottom: "ip2"
bottom: "label"
top: "loss"
python_param {
module: 'loss_layers'
layer: 'EuclideanLossLayer'
}
loss_weight: 1
}
ERROR:
Error parsing text-format caffe.NetParameter: 294:3: Unknown enumeration value of "PYTHON" for field "type"
Przemek D
unread,
Aug 22, 2018, 3:23:02 AM
8/22/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Caffe Users
It looks like you're using old syntax. Modern prototxt should look like this instead:
layer
{
type
:
"Python"
name
:
"loss"
...
}
Note the singular "layer" and "Python" in double quotes with only first letter capitalized.
Reply all
Reply to author
Forward
0 new messages