在遗失中我需要忽略多个标签。忽略标签1和2我有以下内容:
层{ 名称:“loss1” 类型:“SoftmaxWithLoss” 底部:“fc_19” 底部:“标签” 顶部:“损失1” …
方式 ignore_label 定义于 caffe.proto 是
ignore_label
caffe.proto
// If specified, ignore instances with the given label. optional int32 ignore_label = 1;
前缀 optional 表明caffe proto只支持a 的 单 强> 忽略标签(否则为a repeated 将使用前缀)。
optional
repeated
如果您希望更改它,则必须更改损失图层的代码以忽略所有“忽略标签”。
顺便说一句,如果这个问题源于你的 前一个 ,您不需要多个“忽略标签”。