Z,J Hu

Results 2 comments of Z,J Hu

I also encountered this problem on Ubuntu 20.04 of WSL2: FAILED TensorRT.sample_mnist [TensorRT v8403] # ./sample_mnist_debug

关于warpaffine的cuda实现,一开始测试,我以为warpaffine的实现resize bilinear lettor box没有对齐 关于warpaffine和resize总共两个问题 1.padding问题,查询了资料,该cuda的实现的变换矩阵采用了padding,因为使用了缩放和平移, 并且带越界处理问题 [[变换矩阵](https://blog.csdn.net/weixin_42398658/article/details/121019668)](https://blog.csdn.net/weixin_42398658/article/details/121019668)参考这个解释 就是使用带偏移和scale的矩阵,由于使用的是双线性插值https://zhuanlan.zhihu.com/p/89684929 [2] 需要的是dst img 到原图的srcimg的value映射关系,所以需要有dst 坐标 640 480 0 0--> 0 0 配合boarder opencv resize linear ``` for (int dx = 0;...