How to generate .engine?

I have Python code[use keras,yolov3]----https://github.com/qqwweee/keras-yolo3
How to generate .engine?

You can convert keras -> ONNX -> TRT, please refer to below link for more details:


Importing ONNX in TRT:
https://docs.nvidia.com/deeplearning/tensorrt/developer-guide/index.html#import_onnx_python
https://docs.nvidia.com/deeplearning/tensorrt/developer-guide/index.html#import_onnx_c

You can also user trtexec command to generate TRT file:

You can also refer to below sample for Yolo to TRT conversion:
https://docs.nvidia.com/deeplearning/tensorrt/sample-support-guide/index.html#yolov3_onnx

Thanks