CVCUDA/CV-CUDA

How to Transfer Data Efficiently?

Opened this issue · 1 comments

The data types of input image and the model inferencing input data are numpy.ndarray.
I have to perform many data type conversions when using cvcuda, which is very inefficient.
How can I solve this problem?
image

Hi @mizhitian-xiaomi,
Thanks for you interest in CV-CUDA!
Could you provide more information to your use-case?

Is the workflow to go from a torch tensor -> cvcuda tensor -> numpy array, and while having the cvcuda tensor, do data type conversions? Then repeat this process for multiple tensors?