Open laishenghui opened 10 months ago
Same
A solution form #1240 : _SOLO needs to change the export_postprocess_mask = True in configs/mmdet/base/base_instance-segstatic.py manually. It magically solved my solov2 onnx_runtime inference problem as yours.
I switched to using YOLOv6, and due to company regulations, I am unable to upload my project
I switched to using YOLOv6, and due to company regulations, I am unable to upload my project
Thank you, I have just solved this problem via @raintowing solution and using detecor.cxx. I found object_detection.cpp would not be able to work as well as detecor.cxx and object_detection.py.
A bug I may find is that the location of boxes is incorrect. All of the coordinates of the boxes is zero.
Checklist
Describe the bug
i trained a solov2 model, and then i convert this model to onnx. then i use this onnx to infer in c++(on windows system).an error occured。i should say this c++ solution is work correct, because i have use this c++ solution infer some other onnx model,it works well. trainlog:20231228_100516.log 20231228_100516.log convertlog:log.txt log.txt c++ infer error msg: [2024-01-24 09:44:05.870] [mmdeploy] [info] [model.cpp:35] [DirectoryModel] Load model: "D:\OpenMMLab\MMDeploy\ONNXRuntimeDemo_gpu\bin\Release\AIEdge_onnxruntime_dynamic" [2024-01-24 09:44:39.426] [mmdeploy] [error] [instance_segmentation.cpp:78] OpenCV(4.8.0) C:\GHA-OCV-1_work\ci-gha-workflow\ci-gha-workflow\opencv\modules\core\src\matrix.cpp:767: error: (-215:Assertion failed) 0 <= _rowRange.start && _rowRange.start <= _rowRange.end && _rowRange.end <= m.rows in function 'cv::Mat::Mat'
OpenCV: terminate handler is called! The last OpenCV error is: OpenCV(4.8.0) Error: Assertion failed (0 <= _rowRange.start && _rowRange.start <= _rowRange.end && _rowRange.end <= m.rows) in cv::Mat::Mat, file C:\GHA-OCV-1_work\ci-gha-workflow\ci-gha-workflow\opencv\modules\core\src\matrix.cpp, line 767
Reproduction
i never change the code
Environment
Error traceback