Closed Pale-Blue-Dot-97 closed 1 year ago
Doing some reading on this, turns out that pytorch
does not officially support loading onnx
models despite the ability to export them. It was a long running feature request before being recently rejected. However, there are third-party implementations such as onnx2torch which I'm going to look into using.
Issue
Support for saving models to
ONNX
format has been added tominerva
but no support is currently provided for loadingONNX
format models.Solution
Trainer
to load a model directly fromONNX
format given a path to the file. ~- [ ] Add support toTrainer.make_model
to load model weights fromONNX
format and graft them onto the model object.~