When I run my own images on caffe , it stop at Iteration 0, Testing net (#0)

半世苍凉 提交于 2019-12-12 03:36:35

问题


I ran caffe and got this output:

who can tell me what is the problem?
I will really appreciate!!


回答1:


It seems like one (or more) of your label values are invalid, see this PR for information:

If you have an invalid ground truth label, "SoftmaxWithLoss" will silently access invalid memory [...] The old check only worked in DEBUG mode and also only worked for CPU.

Make sure your prediction vector length matches the number of labels you try to predict.

From your comments, it seems like you have labels in the range 0..10575, but on the other hand, your classification layer, "fc7" only predicts probabilities for 1000 classes. Thus, "SoftmaxWithLoss" layer tries to compute the loss for predicting label l>1000, and access memory outside the probability array, resulting with a segmentation fault.



来源:https://stackoverflow.com/questions/36173686/when-i-run-my-own-images-on-caffe-it-stop-at-iteration-0-testing-net-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!