Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terminate called after throwing an instance of 'cv::Exception' #241

Open
He-Yingchao opened this issue Aug 4, 2024 · 4 comments
Open

terminate called after throwing an instance of 'cv::Exception' #241

He-Yingchao opened this issue Aug 4, 2024 · 4 comments

Comments

@He-Yingchao
Copy link

When I was following you to deploy the yolov8-seg model to Jetson Orin Nano, I got this error when I ran ./yolov8-seg yolov8s-seg.engine data/bus.jpg:
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.5.4) /home/ubuntu/build_opencv/opencv/modules/core/src/matrix_expressions.cpp:24: error: (-5:Bad argument) Matrix operand is an empty matrix. in function 'checkOperandsExist'. How can I fix the problem? Thank you

@triple-Mu
Copy link
Owner

When I was following you to deploy the yolov8-seg model to Jetson Orin Nano, I got this error when I ran ./yolov8-seg yolov8s-seg.engine data/bus.jpg: terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(4.5.4) /home/ubuntu/build_opencv/opencv/modules/core/src/matrix_expressions.cpp:24: error: (-5:Bad argument) Matrix operand is an empty matrix. in function 'checkOperandsExist'. How can I fix the problem? Thank you

How do you export onnx and tensorrt engine?

@McVean23
Copy link

I'm having the same issue. pt2onnx by yolo export,onnx2engine by trtexec.

@McVean23
Copy link

When I was following you to deploy the yolov8-seg model to Jetson Orin Nano, I got this error when I ran ./yolov8-seg yolov8s-seg.engine data/bus.jpg: terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(4.5.4) /home/ubuntu/build_opencv/opencv/modules/core/src/matrix_expressions.cpp:24: error: (-5:Bad argument) Matrix operand is an empty matrix. in function 'checkOperandsExist'. How can I fix the problem? Thank you

Hello ! Do you have a solution?

@triple-Mu
Copy link
Owner

When I was following you to deploy the yolov8-seg model to Jetson Orin Nano, I got this error when I ran ./yolov8-seg yolov8s-seg.engine data/bus.jpg: terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(4.5.4) /home/ubuntu/build_opencv/opencv/modules/core/src/matrix_expressions.cpp:24: error: (-5:Bad argument) Matrix operand is an empty matrix. in function 'checkOperandsExist'. How can I fix the problem? Thank you

Could you please using onnx->tensorrt route?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants