Closed MuffinTopSJY closed 7 months ago
https://github.com/PINTO0309/spo4onnx
python export.py \
--img_size 512 512 \
--lightglue_path weights/sjy_fused_static.onnx \
--end2end
pip install -U spo4onnx==1.0.4 onnx2tf==1.20.0 onnxsim==0.4.30
cd weights
spo4onnx -if sjy_fused_static.onnx -of sjy_fused_static_spo.onnx
onnx2tf -i sjy_fused_static_spo.onnx
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.