UFF and Caffe Parser have been deprecated from TensorRT 7 onwards, hence request you to try ONNX parser. Please convert your model to ONNX and then try to build a TRT engine.
We recommend you to please convert keras(h5) model to ONNX. Using,
Then please convert ONNX model to TensorRT engine.
Looks like you’re using TensorRT 5.Which is very older version. We recommend you to please upgrade TensorRT version to the latest version for better performance.