guojin-yan / OpenVINO-CSharp-API-Samples

Apache License 2.0
44 stars 8 forks source link

报错Attempt to get a name for a Tensor without names #2

Open chenshumeng opened 4 months ago

chenshumeng commented 4 months ago

使用yolov8_det_opencvsharp项目,修改 model_path 为用yolov8导出的自定义数据集训练的openvino模型,运行输出和报错如下: 运行输出:

[ INFO ] Inference device: AUTO
[ INFO ] Start yolov8 model inference.
[ INFO ] 1. Initialize OpenVINO Runtime Core success, time spend: 4.4524ms.
[ INFO ] 2. Read inference model success, time spend: 201.9943ms.
[ INFO ] Inference Model
[ INFO ]   Model name: Model0
[ INFO ]   Input:
[ INFO ]      name: x
[ INFO ]      type: float
[ INFO ]      shape: Shape : {1,3,640,640}
[ INFO ]   Output:

报如下错误:

Exception from src\core\src\descriptor\tensor.cpp:92:
Attempt to get a name for a Tensor without names**