Check failed:The data and label should have the same number

240 views
Skip to first unread message

Anne

unread,
Jun 15, 2016, 3:18:18 AM6/15/16
to Caffe Users
   Hi all,

I have an error while running solver = caffe.get_solver('.../solver.prototxt'), with the loss layer:

loss_layer.cpp:19] Check failed: bottom[0]->num() == bottom[1]->num()) (256 vs. 1) The data and label should have the same number.

My loss layer is simply:
layer {
   name: "loss"
   type: "EuclideanLoss"
   bottom: "conv3"
   bottom: "label"
   top: "loss"
}
Any idea on how to solve this?
Thank you in advance!

Reply all
Reply to author
Forward
0 new messages