当我 运行 我自己的图像在 caffe 上时,它停止在 Iteration 0, Testing net (#0)
When I run my own images on caffe , it stop at Iteration 0, Testing net (#0)
我 运行 caffe 得到了这个输出:
谁能告诉我这是什么问题?
非常感谢!!
您的一个(或多个)标签值似乎无效,请参阅 this PR 了解信息:
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.
确保您的预测向量长度与您尝试预测的标签数量相匹配。
根据您的评论,您的标签似乎在 , but on the other hand, your classification layer, 范围内,仅预测 1000 类 的概率。因此,"SoftmaxWithLoss"
层尝试计算预测标签 l
>1000 的损失,并访问概率数组之外的内存,导致分段错误。
我 运行 caffe 得到了这个输出:
谁能告诉我这是什么问题?
非常感谢!!
您的一个(或多个)标签值似乎无效,请参阅 this PR 了解信息:
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.
确保您的预测向量长度与您尝试预测的标签数量相匹配。
根据您的评论,您的标签似乎在 "SoftmaxWithLoss"
层尝试计算预测标签 l
>1000 的损失,并访问概率数组之外的内存,导致分段错误。