label_400 = scipy.io.loadmat('{}/trainval/{}.mat'.format(self.context_dir, idx))['LabelMap'] label = np.zeros_like(label_400, dtype=np.uint8) for idx, l in enumerate(self.labels_21): idx_400 = self.labels_400.index(l) + 1 label[label_400 == idx_400] = idx label = label[np.newaxis, ...]
--
You received this message because you are subscribed to the Google Groups "Caffe Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to caffe-users+unsubscribe@googlegroups.com.
To post to this group, send email to caffe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/caffe-users/ac4028dc-3157-4545-a72f-c2b969930ed2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
If you compile in debug mode then Caffe will check the label range for you, or you can check it yourself. I seem to remember seeing this error reported when there are labels out of range of the net (like a label 100 for a 10 class net).
Evan Shelhamer
On Fri, Jan 20, 2017 at 3:00 AM, Ilya Zhenin <inf.s...@gmail.com> wrote:
In after few iterations I get at math_functions.cu:121 CUBLAS STATUS MAPPING ERROR 11 vs 0, last time I got at syncedmem.cpp:56 "4 vs 0 unspecidied launc failure".I checked dimension of data blob and label blob that I feeding into the network, the all the same and correct(but they are not the same in different iterations, it is fully convolutional network).As I said a few iterations runs fine. I don't know coincedence it is or not, but error is happining at the blob with biggest dimension than any in previous iterations(not a memory problem, there is still a lot of free memory).And if I replace Softmax loss with SigmoidCrossEntropy, there is no errors.Ah yeah, if it matters, it is binary problem, as label I use matrix with (1, 1, ROWS, 224), where ROWS from, [400, 1100] interval. And only values in this blob are 0s and 1s.
--
You received this message because you are subscribed to the Google Groups "Caffe Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to caffe-users...@googlegroups.com.