0

I was going through this Object Detection Using OpenCv post. While going through I came across readNetFromCaffe function. I am not able to fully understand how this function is working. Please can someone shed some light on what is prototxt file ?

Sreekiran A R
  • 3,123
  • 2
  • 20
  • 41
heapster
  • 459
  • 1
  • 5
  • 7

1 Answers1

1

You define model architecture in prototxt file.

A sample prototxt file looks like

layer {
  name: "LayerName"
  type: "Python"
  top: "TopBlobName"
  bottom: "BottomBlobName"
  python_param {
    module: "My_Custom_Layer_File"
    layer: "My_Custom_Layer_Class"
    param_str: '{"param1": 1,"param2":True, "param3":"some string"}'
  }
  include{
        phase: TRAIN
  }
}

You can more about prototxt here and here, the difference between .proto and .prototxt

Deepak
  • 126
  • 8