You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following https://github.com/PINTO0309/LightGlue-ONNX, I tried converting Lightglue to Onnx model by python export.py --img_size 512 512 --lightglue_path weights/sjy_fused_static.onnx --end2end, and the Onnx model worked in my test.
When converting by onnx2tf -i sjy_fused_static.onnx or onnx2tf -i sjy_fused_static.onnx -ois image0:1,1,512,512 image1:1,1,512,512, (in superpoint.py, I set top_num = 300) I got this error:
The structure diagram of sjy_fused_static.onnx related to onnx_op_name: /lightglue/posenc/Expand might be like this:
Besides, I have doubts about these results, the output.shape of tf doesn't match the output of onnx. In tf_op_type: Concat, it seems that input1 and input2 concat on axis=1, I don't know what it is supposed to be or if it matters, for example:
Issue Type
Others
OS
Linux
onnx2tf version number
1.19.5
onnx version number
1.15.0
onnxruntime version number
1.16.3
onnxsim (onnx_simplifier) version number
0.4.33
tensorflow version number
2.15.0
Download URL for ONNX
Parameter Replacement JSON
-
Description
Hi, sorry to bother you again.
Following https://github.com/PINTO0309/LightGlue-ONNX, I tried converting Lightglue to Onnx model by
python export.py --img_size 512 512 --lightglue_path weights/sjy_fused_static.onnx --end2end
, and the Onnx model worked in my test.When converting by
onnx2tf -i sjy_fused_static.onnx
oronnx2tf -i sjy_fused_static.onnx -ois image0:1,1,512,512 image1:1,1,512,512
, (insuperpoint.py
, I settop_num = 300
) I got this error:The structure diagram of
sjy_fused_static.onnx
related toonnx_op_name: /lightglue/posenc/Expand
might be like this:Besides, I have doubts about these results, the output.shape of tf doesn't match the output of onnx. In
tf_op_type: Concat
, it seems that input1 and input2 concat onaxis=1
, I don't know what it is supposed to be or if it matters, for example:I tried to figure it out but I'm sooo stupid. T_T
Sincerely thank you for your time again.
The text was updated successfully, but these errors were encountered: