zju3dv / EfficientLoFTR

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Export to ONNX

williamhoole opened this issue · comments

Hi,

Is it possible to export the model to ONNX ?

Hi,

I believe it is possible to export the model to ONNX since our model doesn't involve any necessary dynamic control flow, and all the PyTorch functions we used are common. However, we currently do not have plans to offer an ONNX version because we lack experience with ONNX optimization. We would very much welcome any attempts to try this out.

Hi thank you very much for your reply! I have found a repository that converts the original LOFTR to ONNX. This should also work for EfficientLoFTR. I will try adjust the code for this repository. Here is the link: loftr2onnx

commented

@williamhoole did you manage to adapt the exporter to eloftr? I managed to get an .onnx after some minor tweaks in the forward, but the onnx inference fails bc of size mismatches. Thanks!