Testing output labels of sample images

12 views
Skip to first unread message

bilgi...@gmail.com

unread,
Jan 8, 2017, 12:16:58 PM1/8/17
to Caffe Users
Hi everyone,

I train the network and i would like to test output labels of testing images. In training, caffe show the accuracy not output labels. I search on the net and try to get predicted labels with sample python code:


but because of this line  

output_prob = output['prob'][0]  # the output probability vector for the first image in the batch

print 'predicted class is:', output_prob.argmax()

I gave Key Error 'prob', output_prob is not include prob attribute 



Reply all
Reply to author
Forward
0 new messages