Reputation: 567
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
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