question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Models face-detection-0205 and face-detection-0206 showing errors

See original GitHub issue

Hey guys! I’m trying to run the face-detection-0205 and the face-detection-0206 but i wasn’t able to get the proper output result, instead of that i got:

terminate called after throwing an instance of 'InferenceEngine::details::InferenceEngineException'
  what():  [PARAMETER_MISMATCH] Failed to set output Blob. Dimensions mismatch.
Aborted (core dumped)

I’m using OpenCV 4.5.1 with OpenVINO 2021.2 with the following code:

cv::dnn::Net detect = cv::dnn::readNet(
      path + "/face-detection-0206/deploy.xml", path + "/face-detection-0206/model.bin", "DLDT");
  detect.setPreferableBackend(2);

  cv::VideoCapture cap(argv[2]);  // cap(0);

  cv::Mat frame;
  int total_frames = 0;
  float total_time = 0;
  while (true) {
    cap >> frame;

    if (frame.empty()) {
      std::cerr << "End of stream" << std::endl;
      exit(0);
    }
    detect.setInput(cv::dnn::blobFromImage(frame, 1.0, cv::Size(640, 640),
                                           cv::Scalar(), false, false, CV_32F),
                    "image");

    cv::Mat a;
    detect.forward("labels");

Also i get the same problem with cv::dnn::DetectionModel

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
vladimir-dudnikcommented, Feb 5, 2021

@campos537 those two a new models, introduced in OpenVINO 2021.2. It might be OpenCV DNN was not updated yet to support them.

0reactions
campos537commented, Feb 5, 2021

Thanks for the explanation @vladimir-dudnik! I tested the two output layers “labels” and “boxes” but for some reason didn’t worked with C++ OpenCV dnn don’t know why.

Read more comments on GitHub >

github_iconTop Results From Across the Web

face-detection-0206 — OpenVINO™ documentation
Face detector based on ResNet152 as a backbone with a ATSS head for indoor and outdoor scenes shot by a front-facing camera.
Read more >
Face detection not showing in correct position - Stack Overflow
my face Detection app doesnt work correctly even though I have added the correct math. The borders are shown in different areas.
Read more >
US20040151381A1 - Face detection - Google Patents
Video face detection apparatus in which a test image from a video sequence is compared with an image property model derived from image...
Read more >
Intel Patent | Methods and Apparatus for Real-Time Interactive ...
A display is to present, at the display surface, the scene based on the ... The example face detection model trainer 332 determines...
Read more >
get-face-detection — AWS CLI 1.27.24 Command Reference
If the job fails, StatusMessage provides a descriptive error message. VideoMetadata -> (structure). Information about a video that Amazon Rekognition Video ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found