Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
6 votes
1 answer
9k views

How to properly convert a cv::Mat into a torch::Tensor with perfect match of values?

I am trying to run inference on a jit traced model in C++ and currently the output I get in Python is different than the output I get in C++. Initially I thought this be caused by the jit model itself,...
Hossein's user avatar
  • 25.9k
1 vote
1 answer
913 views

How to Convert a torch::Tensor into a cv::InputArray?

I'm trying to use the cv::getAffineTransform(), and I'm stuck on how to convert the tensors into the corrosponding cv::InputArray. I have tried these to face access violation : torch::Tensor src = ...
Hossein's user avatar
  • 25.9k