hpc203 / yolact-opencv-dnn-cpp-python

使用opencv部署yolact实例分割,包含C++和Python两种版本的程序
85 stars 31 forks source link

onnx模型导出 #1

Open gaooooke opened 3 years ago

gaooooke commented 3 years ago

请问时如何导出onnx模型的?我导出的模型在推理时报如下错误: error: (-2:Unspecified error) in function 'void cv::dnn::dnn4_v20200908::ONNXImporter::populateNet(cv::dnn::dnn4_v20200908::Net)'

(expected: 'shapes.depth() == CV_32S'), where 'shapes.depth()' is 5 (CV_32FC1) must be equal to 'CV_32S' is 4 (CV_32SC1)

Aborted (core dumped)