Skip to content

Your last layers in training are wrong #8

@kmonachopoulos

Description

@kmonachopoulos

The last layers should hold different names (or types) :

layer {
  name: "loss1/top-1" <== the name is loss
  type: "Accuracy" <== the type is accuracy
  bottom: "loss1/classifier"
  bottom: "label"
  top: "loss1/top-1"
  include {
    phase: TEST
  }
}
layer {
  name: "loss1/top-3" <== the name is loss
  type: "Accuracy" <== the type is accuracy
  bottom: "loss1/classifier"
  bottom: "label"
  top: "loss1/top-3"
  include {
    phase: TEST
  }
  accuracy_param {
    top_k: 3
  }

It should be like this :

layer {
  name: "acc/top-1"
  type: "Accuracy"
  bottom: "fc1"
  bottom: "label"
  top: "acc/top-1"
  include {
    phase: TEST
  }
}
layer {
  name: "acc/top-5"
  type: "Accuracy"
  bottom: "fc1"
  bottom: "label"
  top: "acc/top-5"
  include {
    phase: TEST
  }
  accuracy_param {
    top_k: 5
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions