方法很简单,直接在定义网络的prototxt里面最后加一层就可以了。
这一层定义如下

layer {
  name: "accuracy_5"
  type: "Accuracy"
  bottom: "fc8_sum"
  bottom: "label"
  top: "accuracy_5"
  accuracy_param
  {
    top_k:5
  }
  include {
    phase: TEST
  }
}

相关文章:

  • 2021-11-17
  • 2021-07-24
  • 2022-12-23
猜你喜欢
  • 2021-12-18
  • 2021-09-15
  • 2021-09-27
  • 2021-05-18
  • 2022-12-23
  • 2021-11-29
  • 2021-04-02
相关资源
相似解决方案