Intel® Distribution of OpenVINO™ Toolkit
Community support and discussions about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all things computer vision-related on Intel® platforms.
5602 Discussions

openVino Object Detection Error: Expected 2 output blobs

Duggy
Novice
436 Views

Hi,

 

I am trying to test the bog standard Object Detection Python* Demo (https://docs.openvinotoolkit.org/latest/omz_demos_object_detection_demo_python.html) with the parameters:

python object_detection_demo.py -d CPU -i MyVid.mp4 -m Intel OpenVino\Object_detection_demo\python\models\intel\face-detection-0200\FP16\face-detection-0200.xml -at ultra_lightweight_face_detection 

and am getting the error:

[ INFO ] Initializing Inference Engine...
[ INFO ] Loading network...
[ INFO ] Reading network from IR...
Traceback (most recent call last):
File "object_detection_demo.py", line 350, in <module>
sys.exit(main() or 0)
File "object_detection_demo.py", line 237, in main
model = get_model(ie, args)
File "object_detection_demo.py", line 183, in get_model
return models.UltraLightweightFaceDetection(*common_args, threshold=args.prob_threshold)
File "C:\Program Files (x86)\Intel\openvino_2021.4.582\deployment_tools\open_model_zoo\demos\common\python\models\ultra_lightweight_face_detection.py", line 29, in __init__
assert len(self.net.outputs) == 2, "Expected 2 output blobs"
AssertionError: Expected 2 output blobs

 

Even when trying faceboxes:

python object_detection_demo.py -d CPU -i MyVid.mp4 -m Intel OpenVino\Object_detection_demo\python\models\intel\face-detection-0200\FP16\face-detection-0200.xml -at faceboxes

Getting the same error:

[ INFO ] Initializing Inference Engine...
[ INFO ] Loading network...
[ INFO ] Reading network from IR...
Traceback (most recent call last):
File "object_detection_demo.py", line 350, in <module>
sys.exit(main() or 0)
File "object_detection_demo.py", line 237, in main
model = get_model(ie, args)
File "object_detection_demo.py", line 177, in get_model
return models.FaceBoxes(*common_args, threshold=args.prob_threshold)
File "C:\Program Files (x86)\Intel\openvino_2021.4.582\deployment_tools\open_model_zoo\demos\common\python\models\faceboxes.py", line 32, in __init__
assert len(self.net.outputs) == 2, "Expected 2 output blobs"
AssertionError: Expected 2 output blobs

 

Any help would be appreciated.

Thanks

 

 

 

Labels (2)
0 Kudos
1 Solution
Vladimir_Dudnik
Employee
412 Views

@Duggy  according to demo description you have to use -at ssd for face-detection-0200 model

View solution in original post

3 Replies
Vladimir_Dudnik
Employee
413 Views

@Duggy  according to demo description you have to use -at ssd for face-detection-0200 model

View solution in original post

Munesh_Intel
Moderator
404 Views

Hi Dug,

Thanks for reaching out to us.

I’ve validated the demo with the following command, and it’s working fine.

python object_detection_demo.py -m <path_to_model>\face-detection-0200.xml -at ssd -i <path_to_input>\video.mp4

 

 

Regards,

Munesh

 

Munesh_Intel
Moderator
314 Views

Hi Dug,

This thread will no longer be monitored since we have provided a solution. If you need any additional information from Intel, please submit a new question.



Regards,

Munesh


Reply