Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6494 Discussions

openVino Object Detection Error: Expected 2 output blobs

Duggy
New Contributor I
1,903 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
1,879 Views

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

View solution in original post

0 Kudos
3 Replies
Vladimir_Dudnik
Employee
1,880 Views

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

0 Kudos
Munesh_Intel
Moderator
1,871 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

 

0 Kudos
Munesh_Intel
Moderator
1,781 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


0 Kudos
Reply