e migrated our pytorch model to trt model. When running inference using newly generated model, we are getting below error
[TensorRT] ERROR: …/rtSafe/cuda/caskConvolutionRunner.cpp (373) - Cask Error in checkCaskExecError: 7 (Cask Convolution execution)
[TensorRT] ERROR: FAILED_EXECUTION: std::exception
Traceback (most recent call last):
File “pose_video.py”, line 555, in
paf_info, heatmap_info = get_paf_and_heatmap(model_pose, img_res, scale_param)
File “/documents/trt/trt_pose/tasks/human_pose/migration/pose_estimation.py”, line 175, in get_paf_and_heatmap
heatmap = nn.UpsamplingBilinear2d((img_raw.shape[0], img_raw.shape[1]))(output2)
File “/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py”, line 722, in _call_impl
result = self.forward(*input, **kwargs)
File “/usr/local/lib/python3.6/dist-packages/torch/nn/modules/upsampling.py”, line 141, in forward
return F.interpolate(input, self.size, self.scale_factor, self.mode, self.align_corners)
File “/usr/local/lib/python3.6/dist-packages/torch/nn/functional.py”, line 3163, in interpolate
return torch._C._nn.upsample_bilinear2d(input, output_size, align_corners, sfl[0], sfl[1])
RuntimeError: CUDA error: unspecified launch failure
It seems something to do with how we invoke trtmode on image. Can someone please share example code of invoking trt model on image for inference