caffe-ssd 训练出现错误:There are many duplicates of label: 3

这个是因为你的标签映射文件有错误。

看报错信息的最后一个数字:3。那么你的标签文件出错的位置在3号标签。

比如你的文件labelmap_hand.prototxt写的是:

item {
  name: "none_of_the_above"
  label: 0
  display_name: "background"
}
item {
  name: "up"
  label: 1
  display_name: "up"
}
item {
  name: "down"
  label: 2
  display_name: "down"
}
item {
  name: "left"
  label: 3
  display_name: "left"
}
item {
  name: "right"
  label: 3
  display_name: "right"
}

可以看到,原本层数应该写4right 标签由于复制粘贴的缘故没有改过来还是3

所以把3改成4就行了。

item {
  name: "none_of_the_above"
  label: 0
  display_name: "background"
}
item {
  name: "up"
  label: 1
  display_name: "up"
}
item {
  name: "down"
  label: 2
  display_name: "down"
}
item {
  name: "left"
  label: 3
  display_name: "left"
}
item {
  name: "right"
  label: 4
  display_name: "right"
}

你可能感兴趣的:(caffe-ssd 训练出现错误:There are many duplicates of label: 3)