How to load custom model in python?

How would I load a custom model in python?

I tried:

net = jetson.inference.detectNet(argv=“–model=/path/to/model.onnx”)

But that still loads the default model and says there are 91 classes even though mine was trained on just 5.