I’m sorry if I was not clear enough but I meant I don’t want to use DetectNet model. The problem is that only DetectNet implementation is available for detection model.
I made my own model written in keras with tensorflow backend, made an uff file from this network and now I would like to create an engine from the uff file.
Sorry about the misunderstanding. I think you are looking for examples creating TRT engine from UFF using C++?
Please take a look at ~/samples/sampleUffMNIST/sampleUffMNIST.cpp (comes with your TRT installation).
For a more general sample of inference with TensorRT C++ API, see this (some parts are outdated, but still serves as good reference): http://github.com/dusty-nv/jetson-inference