self.trt_logger = trt.Logger(trt.Logger.WARNING)
with open(“./yolox_tiny.trt”, “rb”) as f:
runtime = trt.Runtime(self.trt_logger)
self.engine = runtime.deserialize_cuda_engine(f.read())
self.context = self.engine.create_execution_context()
In this code, self.engine becomes null, and an error occurs at self.context = self.engine.create_execution_context(). Why does it become null? The file does exist
Jetpack : 5.1.2-b104,
cuda : 11.4
cudnn : 8.6
TensorRT : 8.2.1.8