LSTR-lane-detect-onnxrun-cpp-py icon indicating copy to clipboard operation
LSTR-lane-detect-onnxrun-cpp-py copied to clipboard

使用ONNXRuntime部署LSTR基于Transformer的端到端实时车道线检测,包含C++和Python两个版本的程序

Results 1 LSTR-lane-detect-onnxrun-cpp-py issues
Sort by recently updated
recently updated
newest added

作者您好!我的ort版本和您的好像不一样,里面没有getinputname取而代之的是GetInputNameAllocated,因此我对代码做了如下更改: Ort::AllocatedStringPtr input_name_Ptr = ort_session->GetInputNameAllocated(i, allocator); input_names.push_back(input_name_Ptr.get()); 然后session的构造函数也发生了变化: const ORTCHAR_T* model_path = "/data/LSTR/lstr_360x640.onnx"; ort_session = new Session(env, model_path, sessionOptions); 以上问题我推测都是版本变化造成的,更改后编译能通过,但是执行可执行文件的时候报错: terminate called after throwing an instance of 'Ort::Exception' what(): Invalid...