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

          How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

          155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

          Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?