How to integrate a pytorch model with dnn module.
I have a pytorch model. I want to integrate it with dnn module in opencv. I want to add it with other predefined models in dnn module. It is necessary to convert it in ONNX.
A simple guide would be helpful.
Thanks in advance.
read wiki
onnx export might be your best bet here. can you try, and tell us the outcome ?
(there seems to be no way to export a tf graph from a pytorch model, so that's probably the only way to get something working witjh opencv's dnn)