"Conversion from FP16 to U8 is unsupported" on MyriadX when all I am using is FP16 precision #18198
-
Using OpenVINO 2022.2 with OpenCV 4.7.0 (both built from source) and Python 3.9.16 on Ubuntu 22.04. I have a Movidius MyriadX VPU and an IP camera and want to run the inference on a live stream using MyriadX for object detection. I have downloaded and converted the model ssd_mobilenet_v1_coco with
and
Then trying to run code attached openvino_error.zip (zip includes model files too; in code some info is redacted, like the IP camera stream URL). It includes the following relevant lines:
Calling the program as
but facing the error:
Here is a reference on backend/target compatibility: https://docs.opencv.org/4.x/db/d30/classcv_1_1dnn_1_1Net.html#a9dddbefbc7f3defbe3eeb5dc3d3483f4 Any pointers appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
I have converted the same model to FP32 (just switched |
Beta Was this translation helpful? Give feedback.
-
Using a different model (ssdlite_mobilenet_v2) in FP16 did not solve the error either. I will ask the same question to OpenCV community too, see if anyone there is familiar. |
Beta Was this translation helpful? Give feedback.
-
Myriad X VPU is recognized:
and when running
output is
Additionally, the error is sometimes referring to |
Beta Was this translation helpful? Give feedback.
-
Re-wrote my code following this reference to create a model object using the New code here: opencv_error_20230628.zip Still don't know what was wrong with |
Beta Was this translation helpful? Give feedback.
Re-wrote my code following this reference to create a model object using the
openvino.runtime.Core()
's read_model function instead ofcv2.dnn
’s readNetFromModelOptimizer and now I am not getting any errors!New code here: opencv_error_20230628.zip
Still don't know what was wrong with
cv2.dnn.readNetFromModelOptimizer
, but I'll accept this as an answer for now.