'NoneType' object has no attribute 'create_execution_context'


Using NVIDIA’s pose library for the following

ENGINE_PATH = ‘/pose/generated/densenet121_baseline_att_trt.pth’
from pose import PosePre, PoseEngine, PosePost, PoseDraw
engine = PoseEngine(ENGINE_PATH)
cmap, paf = engine(tensor)

However, the error in the screenshot is thrown. Any ideas on how to fix? I’ve tried looking at similar posts.


check if the input file exists where you want.

Thanks for the response. However, I’ve already taken a look into that and seems to be the correct path. Any other suggestions?


Sorry for the late reply.
The error shown in the screenshot is caused by the different TensorRT software version.

Please noted that TensorRT doesn’t support portability.
You will need to use the same TensorRT version and GPU architecture to serialize and deserialize an engine.