LibtorchSegmentation
LibtorchSegmentation copied to clipboard
How to convert pt-model to ONNX-model
How to convert pt-model to ONNX-model? I need to load and run an ONNX-model using opencv. Thanks!
Define a onnx model with the exact same structure as libtorch model and copy the weight like convolution to the onnx model.
Is it possible to convert a torch::nn::Module to a torch::jit::Module?
Yes. That's what I answered before.
Thanks for your reply. If there is a simpler way, I will share it here.