![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
DL模型部署
文章平均质量分 68
冬仔11
今天天是真的好,2019的秋分
展开
-
torch::from_blob 从Mat转成Tensor的问题
这里写自定义目录标题torch::from_blob() 从Mat转成Tensor的问题问题来源torch::from_blob() 从Mat转成Tensor的问题就在上午,我准备使用libtorch的torch::from_blob(),将cv::Mat 转成Tensor时,运行始终不通过,不觉地对自己的智商产生了怀疑(常有的事…)。遂,记录一下。问题来源首先,贴上问题代码: //以灰度形式读取图片 cv::Mat img = cv::imread("/home/zdd/Document原创 2021-10-28 11:49:26 · 5051 阅读 · 1 评论 -
Tensorrt YOLOV3 踩坑记录
Tensorrt YOLOV3 踩坑记录Tensorrt YOLOV3 踩坑记录1.fatal error: NvInfer.h: No such file or directory2.opencv2/dnn/dnn.hpp can not find3.Assertion 'scale_1' failedTensorrt YOLOV3 踩坑记录本篇用于记录自己在测试tensorrt时踩过的一些坑,防止以后重复类似错误。ubuntu18.04tensorrt->7.0.0.11cuda->原创 2021-06-07 16:00:51 · 4093 阅读 · 4 评论