How to convert opencv mat grayscale image to pytorch tensor?

前端 未结 0 1923
花落未央
花落未央 2020-12-28 14:49

I want to convert cv::Mat class into torch::Tensor class and put them into CNN module of libtorch for prediction. How should I convert Mat class to Tensor class? My CNN modu

相关标签:
回答
  • 消灭零回复
提交回复
热议问题