【问题标题】:OpenCv with DNN带有 DNN 的 OpenCv
【发布时间】:2020-07-16 14:22:21
【问题描述】:

我正在浏览这个Object Detection Using OpenCv 帖子。在进行过程中,我遇到了 readNetFromCaffe 函数。我无法完全理解此功能的工作原理。请问有人能解释一下什么是prototxt文件吗?

【问题讨论】:

    标签: python opencv deep-learning computer-vision


    【解决方案1】:

    您在 prototxt 文件中定义模型架构。

    一个示例 prototxt 文件看起来像

    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
      }
    }
    

    你可以更多关于prototxthereherethe difference between .proto and .prototxt

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-02-19
      • 1970-01-01
      • 2021-10-14
      • 2019-04-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多