The OpenCV DNN face detection module can not work with Caffe C++ libraryImage Processing: Algorithm Improvement for 'Coca-Cola Can' RecognitionFace detection using Cascade Classifier in opencv pythonCaffe error: no field named “net”OpenCV 3 C++ : library not foundgoogle::protobuf used in android ndk developopencv 3.1 dnn (caffe) module model import failOpenCV python layer is not working with caffe/digits frameworkHow to run “ssd_object_detection.cpp”?How to load a Keras model build with tensorflow backend in OpenCVWhich protobuf version to use with caffe?

How do you harvest carrots in creative mode?

Lost property on Portuguese trains

Nothing like a good ol' game of ModTen

Wrong arrangement of boxes in raster of tcolorbox

Why in most German places is the church the tallest building?

How do you interpolate outside the range of data?

How to determine car loan length as a function of how long I plan to keep a car

Tex Quotes(UVa 272)

Two questions about typesetting a Roman missal

Could George I (of Great Britain) speak English?

How do I get toddlers to stop asking for food every hour?

Handling Disruptive Student on the Autistic Spectrum

“T” in subscript in formulas

Why do banks “park” their money at the European Central Bank?

How do we calculate energy of food?

Algorithms vs LP or MIP

How many US airports have 4 or more parallel runways?

Did anyone try to find the little box that held Professor Moriarty and his wife after the crash?

Prove your innocence

Sql server sleeping state is increasing using ADO.NET?

I don't have the theoretical background in my PhD topic. I can't justify getting the degree

Why is 1. d4 Nf6 2. c4 e6 3. Bg5 almost never played?

How can I unambiguously ask for a new user's "Display Name"?

How do the Etherealness and Banishment spells interact?



The OpenCV DNN face detection module can not work with Caffe C++ library


Image Processing: Algorithm Improvement for 'Coca-Cola Can' RecognitionFace detection using Cascade Classifier in opencv pythonCaffe error: no field named “net”OpenCV 3 C++ : library not foundgoogle::protobuf used in android ndk developopencv 3.1 dnn (caffe) module model import failOpenCV python layer is not working with caffe/digits frameworkHow to run “ssd_object_detection.cpp”?How to load a Keras model build with tensorflow backend in OpenCVWhich protobuf version to use with caffe?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I download the caffe source code from Github and compile it as C++ static library, and I test the OpenCV face detection Caffe model with the static library, but the lib report below error:



[libprotobuf ERROR D:ThirdPartyLibraryprotobufsrcgoogleprotobuftext_format.cc:296] Error parsing text-format caffe.NetParameter: 984:14: Message type "caffe.LayerParameter" has no field named "norm_param".
F0328 02:08:05.225075 24332 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: D:/DATA/PreTrainedModel/cv_facedet/deploy.prototxt


is it means that norm_param field is implement only by OpenCV, not a standard Caffe field?










share|improve this question
































    1















    I download the caffe source code from Github and compile it as C++ static library, and I test the OpenCV face detection Caffe model with the static library, but the lib report below error:



    [libprotobuf ERROR D:ThirdPartyLibraryprotobufsrcgoogleprotobuftext_format.cc:296] Error parsing text-format caffe.NetParameter: 984:14: Message type "caffe.LayerParameter" has no field named "norm_param".
    F0328 02:08:05.225075 24332 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: D:/DATA/PreTrainedModel/cv_facedet/deploy.prototxt


    is it means that norm_param field is implement only by OpenCV, not a standard Caffe field?










    share|improve this question




























      1












      1








      1








      I download the caffe source code from Github and compile it as C++ static library, and I test the OpenCV face detection Caffe model with the static library, but the lib report below error:



      [libprotobuf ERROR D:ThirdPartyLibraryprotobufsrcgoogleprotobuftext_format.cc:296] Error parsing text-format caffe.NetParameter: 984:14: Message type "caffe.LayerParameter" has no field named "norm_param".
      F0328 02:08:05.225075 24332 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: D:/DATA/PreTrainedModel/cv_facedet/deploy.prototxt


      is it means that norm_param field is implement only by OpenCV, not a standard Caffe field?










      share|improve this question
















      I download the caffe source code from Github and compile it as C++ static library, and I test the OpenCV face detection Caffe model with the static library, but the lib report below error:



      [libprotobuf ERROR D:ThirdPartyLibraryprotobufsrcgoogleprotobuftext_format.cc:296] Error parsing text-format caffe.NetParameter: 984:14: Message type "caffe.LayerParameter" has no field named "norm_param".
      F0328 02:08:05.225075 24332 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: D:/DATA/PreTrainedModel/cv_facedet/deploy.prototxt


      is it means that norm_param field is implement only by OpenCV, not a standard Caffe field?







      opencv caffe face






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 28 at 11:04









      Dmytro Prylipko

      2,4761 gold badge12 silver badges27 bronze badges




      2,4761 gold badge12 silver badges27 bronze badges










      asked Mar 27 at 18:18









      pangopango

      185 bronze badges




      185 bronze badges

























          2 Answers
          2






          active

          oldest

          votes


















          0















          Probably, it has different name in Caffe: normalize_bbox_param. See this discussion.






          share|improve this answer

























          • Hi,Dmytro: Thanks your reply, I replace the "norm_param" to "normalize_bbox_param",but caffe lib report "normalize_bbox_param" is unknown too

            – pango
            Mar 28 at 13:57


















          0















          norm_param is an argument of Normalization layer from SSD Caffe framework: https://github.com/weiliu89/caffe/blob/8a65ae316b34e7c8fdefa6e18bf08a23b78caa0e/src/caffe/proto/caffe.proto#L523



          Origin repo: https://github.com/weiliu89/caffe/tree/ssd



          There is no SSD object detection networks in the origin Caffe.






          share|improve this answer

























          • OK,so can I run the OpenCV face detection network on the SSD Caffe framework?

            – pango
            Apr 6 at 18:26











          • Caffe is not well supported library these days. You may face compilation issues. May I ask you why you wanted to run this model through Caffe but not through OpenCV?

            – Dmitry Kurtaev
            Apr 7 at 5:05












          • Because caffe can be accelerated by nvidia cuda,but opencv's dnn module could not be,it only be accelerated by intel's GPU through OpenVINO SDK,but Intel GPU's power is less than nv gpu,so I prefer Caffe;

            – pango
            Apr 7 at 14:05











          • Got it. So try this fork. The model has been trained there. Read more in github.com/opencv/opencv/blob/master/samples/dnn/face_detector/….

            – Dmitry Kurtaev
            Apr 7 at 16:37













          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55384058%2fthe-opencv-dnn-face-detection-module-can-not-work-with-caffe-c-library%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0















          Probably, it has different name in Caffe: normalize_bbox_param. See this discussion.






          share|improve this answer

























          • Hi,Dmytro: Thanks your reply, I replace the "norm_param" to "normalize_bbox_param",but caffe lib report "normalize_bbox_param" is unknown too

            – pango
            Mar 28 at 13:57















          0















          Probably, it has different name in Caffe: normalize_bbox_param. See this discussion.






          share|improve this answer

























          • Hi,Dmytro: Thanks your reply, I replace the "norm_param" to "normalize_bbox_param",but caffe lib report "normalize_bbox_param" is unknown too

            – pango
            Mar 28 at 13:57













          0














          0










          0









          Probably, it has different name in Caffe: normalize_bbox_param. See this discussion.






          share|improve this answer













          Probably, it has different name in Caffe: normalize_bbox_param. See this discussion.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 28 at 11:06









          Dmytro PrylipkoDmytro Prylipko

          2,4761 gold badge12 silver badges27 bronze badges




          2,4761 gold badge12 silver badges27 bronze badges















          • Hi,Dmytro: Thanks your reply, I replace the "norm_param" to "normalize_bbox_param",but caffe lib report "normalize_bbox_param" is unknown too

            – pango
            Mar 28 at 13:57

















          • Hi,Dmytro: Thanks your reply, I replace the "norm_param" to "normalize_bbox_param",but caffe lib report "normalize_bbox_param" is unknown too

            – pango
            Mar 28 at 13:57
















          Hi,Dmytro: Thanks your reply, I replace the "norm_param" to "normalize_bbox_param",but caffe lib report "normalize_bbox_param" is unknown too

          – pango
          Mar 28 at 13:57





          Hi,Dmytro: Thanks your reply, I replace the "norm_param" to "normalize_bbox_param",but caffe lib report "normalize_bbox_param" is unknown too

          – pango
          Mar 28 at 13:57













          0















          norm_param is an argument of Normalization layer from SSD Caffe framework: https://github.com/weiliu89/caffe/blob/8a65ae316b34e7c8fdefa6e18bf08a23b78caa0e/src/caffe/proto/caffe.proto#L523



          Origin repo: https://github.com/weiliu89/caffe/tree/ssd



          There is no SSD object detection networks in the origin Caffe.






          share|improve this answer

























          • OK,so can I run the OpenCV face detection network on the SSD Caffe framework?

            – pango
            Apr 6 at 18:26











          • Caffe is not well supported library these days. You may face compilation issues. May I ask you why you wanted to run this model through Caffe but not through OpenCV?

            – Dmitry Kurtaev
            Apr 7 at 5:05












          • Because caffe can be accelerated by nvidia cuda,but opencv's dnn module could not be,it only be accelerated by intel's GPU through OpenVINO SDK,but Intel GPU's power is less than nv gpu,so I prefer Caffe;

            – pango
            Apr 7 at 14:05











          • Got it. So try this fork. The model has been trained there. Read more in github.com/opencv/opencv/blob/master/samples/dnn/face_detector/….

            – Dmitry Kurtaev
            Apr 7 at 16:37















          0















          norm_param is an argument of Normalization layer from SSD Caffe framework: https://github.com/weiliu89/caffe/blob/8a65ae316b34e7c8fdefa6e18bf08a23b78caa0e/src/caffe/proto/caffe.proto#L523



          Origin repo: https://github.com/weiliu89/caffe/tree/ssd



          There is no SSD object detection networks in the origin Caffe.






          share|improve this answer

























          • OK,so can I run the OpenCV face detection network on the SSD Caffe framework?

            – pango
            Apr 6 at 18:26











          • Caffe is not well supported library these days. You may face compilation issues. May I ask you why you wanted to run this model through Caffe but not through OpenCV?

            – Dmitry Kurtaev
            Apr 7 at 5:05












          • Because caffe can be accelerated by nvidia cuda,but opencv's dnn module could not be,it only be accelerated by intel's GPU through OpenVINO SDK,but Intel GPU's power is less than nv gpu,so I prefer Caffe;

            – pango
            Apr 7 at 14:05











          • Got it. So try this fork. The model has been trained there. Read more in github.com/opencv/opencv/blob/master/samples/dnn/face_detector/….

            – Dmitry Kurtaev
            Apr 7 at 16:37













          0














          0










          0









          norm_param is an argument of Normalization layer from SSD Caffe framework: https://github.com/weiliu89/caffe/blob/8a65ae316b34e7c8fdefa6e18bf08a23b78caa0e/src/caffe/proto/caffe.proto#L523



          Origin repo: https://github.com/weiliu89/caffe/tree/ssd



          There is no SSD object detection networks in the origin Caffe.






          share|improve this answer













          norm_param is an argument of Normalization layer from SSD Caffe framework: https://github.com/weiliu89/caffe/blob/8a65ae316b34e7c8fdefa6e18bf08a23b78caa0e/src/caffe/proto/caffe.proto#L523



          Origin repo: https://github.com/weiliu89/caffe/tree/ssd



          There is no SSD object detection networks in the origin Caffe.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 6 at 6:58









          Dmitry KurtaevDmitry Kurtaev

          4733 silver badges12 bronze badges




          4733 silver badges12 bronze badges















          • OK,so can I run the OpenCV face detection network on the SSD Caffe framework?

            – pango
            Apr 6 at 18:26











          • Caffe is not well supported library these days. You may face compilation issues. May I ask you why you wanted to run this model through Caffe but not through OpenCV?

            – Dmitry Kurtaev
            Apr 7 at 5:05












          • Because caffe can be accelerated by nvidia cuda,but opencv's dnn module could not be,it only be accelerated by intel's GPU through OpenVINO SDK,but Intel GPU's power is less than nv gpu,so I prefer Caffe;

            – pango
            Apr 7 at 14:05











          • Got it. So try this fork. The model has been trained there. Read more in github.com/opencv/opencv/blob/master/samples/dnn/face_detector/….

            – Dmitry Kurtaev
            Apr 7 at 16:37

















          • OK,so can I run the OpenCV face detection network on the SSD Caffe framework?

            – pango
            Apr 6 at 18:26











          • Caffe is not well supported library these days. You may face compilation issues. May I ask you why you wanted to run this model through Caffe but not through OpenCV?

            – Dmitry Kurtaev
            Apr 7 at 5:05












          • Because caffe can be accelerated by nvidia cuda,but opencv's dnn module could not be,it only be accelerated by intel's GPU through OpenVINO SDK,but Intel GPU's power is less than nv gpu,so I prefer Caffe;

            – pango
            Apr 7 at 14:05











          • Got it. So try this fork. The model has been trained there. Read more in github.com/opencv/opencv/blob/master/samples/dnn/face_detector/….

            – Dmitry Kurtaev
            Apr 7 at 16:37
















          OK,so can I run the OpenCV face detection network on the SSD Caffe framework?

          – pango
          Apr 6 at 18:26





          OK,so can I run the OpenCV face detection network on the SSD Caffe framework?

          – pango
          Apr 6 at 18:26













          Caffe is not well supported library these days. You may face compilation issues. May I ask you why you wanted to run this model through Caffe but not through OpenCV?

          – Dmitry Kurtaev
          Apr 7 at 5:05






          Caffe is not well supported library these days. You may face compilation issues. May I ask you why you wanted to run this model through Caffe but not through OpenCV?

          – Dmitry Kurtaev
          Apr 7 at 5:05














          Because caffe can be accelerated by nvidia cuda,but opencv's dnn module could not be,it only be accelerated by intel's GPU through OpenVINO SDK,but Intel GPU's power is less than nv gpu,so I prefer Caffe;

          – pango
          Apr 7 at 14:05





          Because caffe can be accelerated by nvidia cuda,but opencv's dnn module could not be,it only be accelerated by intel's GPU through OpenVINO SDK,but Intel GPU's power is less than nv gpu,so I prefer Caffe;

          – pango
          Apr 7 at 14:05













          Got it. So try this fork. The model has been trained there. Read more in github.com/opencv/opencv/blob/master/samples/dnn/face_detector/….

          – Dmitry Kurtaev
          Apr 7 at 16:37





          Got it. So try this fork. The model has been trained there. Read more in github.com/opencv/opencv/blob/master/samples/dnn/face_detector/….

          – Dmitry Kurtaev
          Apr 7 at 16:37

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55384058%2fthe-opencv-dnn-face-detection-module-can-not-work-with-caffe-c-library%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript