heapster
heapster

Reputation: 567

OpenCv with DNN

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 ?

Upvotes: 0

Views: 153

Answers (1)

Deepak
Deepak

Reputation: 126

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

Upvotes: 1

Related Questions