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

How to transform Ort::Value (int64) into cv::Mat (or cv::cuda::Mat) in C++ cuda? #19029

Closed
Koruvika opened this issue Jan 6, 2024 · 2 comments
Labels
ep:CUDA issues related to the CUDA execution provider platform:windows issues related to the Windows platform

Comments

@Koruvika
Copy link

Koruvika commented Jan 6, 2024

Describe the issue

I need to use my ONNX model in C++, but its output has type int64 so I can't transform it to cv::Mat because OpenCV does not support Mat with type int64.

To reproduce

as above

Urgency

No response

Platform

Windows

OS Version

Window 10

ONNX Runtime Installation

Built from Source

ONNX Runtime Version or Commit ID

1.11.0

ONNX Runtime API

C++

Architecture

X64

Execution Provider

CUDA

Execution Provider Library Version

CUDA 11.6

Tasks

Preview Give feedback
No tasks being tracked yet.
@github-actions github-actions bot added ep:CUDA issues related to the CUDA execution provider platform:windows issues related to the Windows platform labels Jan 6, 2024
@Koruvika Koruvika changed the title How to transform Ort::Value (int64) into cv::Mat (or cv::cuda::Mat) in C++? How to transform Ort::Value (int64) into cv::Mat (or cv::cuda::Mat) in C++ cuda? Jan 6, 2024
@xadupre
Copy link
Member

xadupre commented Jan 18, 2024

I would probably add a node to your onnx model to cast your output into the type you need. You can use onnx package for that.

@hariharans29
Copy link
Member

Could you please move this into the discussions forum as there isn't a ORT issue to discuss here ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ep:CUDA issues related to the CUDA execution provider platform:windows issues related to the Windows platform
Projects
None yet
Development

No branches or pull requests

3 participants