sdcb / mini-openvino-facedetection

A mini face detection demo using OpenVINO.NET
Apache License 2.0
12 stars 5 forks source link

TF2 object detection vino mode shows error message #1

Open terryll opened 7 months ago

terryll commented 7 months ago

Thanks for the nugget. I have been waiting for it for a long time. The sample worked. However, when I used my own vino model, it gives me an error message.

The model is a tf2 object detection model exported to vino. The error message is: Sdcb.OpenVINO.OpenVINOException: 'general error(-1) in file "C:\Users\ZhouJie\source\repos\OpenVINO.NET\src\Sdcb.OpenVINO\TensorIndexer.cs" member "Primary" at line 97 when calling "ov_infer_request_set_input_tensor(_req, (ov_tensor*)value.DangerousGetHandle())"'

Please let me know if this method will work with tf2 object detection models. Thanks in advance.

sdcb commented 6 months ago

try change Primary into [0]