Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert SuperPoint from onnx to engine #77

Closed
midskymid opened this issue Jun 4, 2024 · 1 comment
Closed

convert SuperPoint from onnx to engine #77

midskymid opened this issue Jun 4, 2024 · 1 comment

Comments

@midskymid
Copy link

i tried to convert SperPoint onnx model to tensorrt engine by FP16, and i met trouble:
i used SuperPoint_FP16.engine to extract features and LightGlue_FP16.engine to match them, but the results was bad and could not perform as well as onnx model both of them. did you meet the same problem? and how to solve it?
1717517141647

@fabio-sim
Copy link
Owner

Hi @midskymid, thank you for your interest in LightGlue-ONNX.

If I recall correctly, I do think I've encountered a similar problem during my own experimentation. Depending on how you convert it to half-precision, it can happen that the values go outside the tolerable floating point range, leading to a drastic fall in # of keypoints detected, or even none detected. I don't think there's an easy solution to this other than fine-tuning (?) the model to be 'half-precision-aware' (sort of like mixed-precision training).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants