CVHub520/rtdetr-onnxruntime-deploy

模型加载失败

Zsk747 opened this issue · 2 comments

onnxruntime.capi.onnxruntime_pybind11_state.Fail: [ONNXRuntimeError] : 1 : FAIL : Load model from E:/software/github_prj/new_RT-DERT/rtdetr-onnxruntime-deploy/weights/rtdetr_r50vd_6x_coco_cvhub.onnx failed:D:\a_work\1\s\onnxruntime\core\graph\model.cc:130 onnxruntime::Model::Model ModelProto does not have a graph.
什么原因呢

我创建了weights,并把模型放进去了

onnxruntime.capi.onnxruntime_pybind11_state.Fail: [ONNXRuntimeError] : 1 : FAIL : Load model from E:/software/github_prj/new_RT-DERT/rtdetr-onnxruntime-deploy/weights/rtdetr_r50vd_6x_coco_cvhub.onnx failed:D:\a_work\1\s\onnxruntime\core\graph\model.cc:130 onnxruntime::Model::Model ModelProto does not have a graph. 什么原因呢

您好,请先检查下您的模型路径是否设置正确,代码里面使用的是相对路径,可以先把模型路径打印出来看看,然后检查下当前weight有没有下载完全。