Models face-detection-0205 and face-detection-0206 showing errors
See original GitHub issueHey 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:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@campos537 those two a new models, introduced in OpenVINO 2021.2. It might be OpenCV DNN was not updated yet to support them.
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.