Comments (7)
Hi. Here is my quick guess:
You need to convert bool type somewhere to int, somehow like this:
xmba15/LoFTR@6cdf544
from onnx_runtime_cpp.
Still WIP but if you intend to use new onnxruntime version. You might need to take a look at this.
567a7b9
from onnx_runtime_cpp.
If it is possible, I am more than happy if you can create a PR to integrate your work on ASpanFormer into this repo.
from onnx_runtime_cpp.
Hi @xmba15, sorry for the late reply, it is possible for me to integrate the work for ASpanFormer into this repo after resolving the problems.
Modifying the type like in the commit you provided resolved the problem, but another error occured on inference,
error:
RuntimeException: [ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION : Non-zero status code returned while running Add node. Name:'/fine_matching/Add_2' Status Message: [D:\a\_work\1\s\onnxruntime\core/providers/cpu/math/element_wise_ops.h:560](file:///D:/a/_work/1/s/onnxruntime/core/providers/cpu/math/element_wise_ops.h:560) onnxruntime::BroadcastIterator::Append axis == 1 || axis == largest was false. Attempting to broadcast an axis by a dimension other than 1. 4 by 9
I believe it is caused by this line, which occurs in the loftr code too:
mkpts1_f = data['mkpts1_c'] + (coords_normed * (W // 2) * scale1)[:len(data['mconf'])]
in fine_matching.py, function get_fine_match(). I will look into it now, if you guys have any advice or experience considering this error, help would be great, if not, i will comment after resolving it
PS: I am trying to use the outdoor version of aspanformer, since in my experience the indoor model doesn't perform as good as the outdoor and is preferable in my use case.
from onnx_runtime_cpp.
worked around the error by removing the slicing part [:len(data['mconf'])]
not tested enough to know if it effects performance or if the tensor shape mismatches in some cases. I can export the outdoor loftr model too, using the same modification.
from onnx_runtime_cpp.
@fatihkykc I could export the (new) outdoor loftr model too, but the performance was bad. Some other issues in loftr repo also reported the same thing with the (new) outdoor loftr model. If you can test and still get a good result, it would be great. I am curious to see the result.
from onnx_runtime_cpp.
@xmba15 Hi, can you provide some sample results, or at least a link to some sample images that outdoor loftr version doesnt work well, it may be a good start for comparing the results
from onnx_runtime_cpp.
Related Issues (20)
- The link of PaddleSeg's bisenetv2 is missing HOT 3
- 运行superglue 中的convert_to_onnx.py 报错如下,不懂怎么解决,求助 HOT 1
- 您好,能否发一下SuperGlue的ONNX模型测试一下,转模型那个脚本没成功
- hello,when i run C++ onnxruntime for superglue ,have some erro 。
- pipline for superpoint HOT 2
- how to build? HOT 3
- You can consider supporting LISRD and LoFTR, I personally think SuperGlue and SuperPoint are not very robust HOT 18
- if the superpoint and superglue use cuda when inference? i can't find the cuda information in the code? could you please explain it , thanks ! HOT 2
- ONNX Runtime inefence time
- ONNX Runtime inefence time HOT 1
- About the loftr result HOT 22
- About loftr.onnx HOT 1
- build error HOT 5
- Hello, I need to get a fixed-size input-output model. When converting the loftr.onnx file, it can be converted successfully, but it is a verification model, and this error occurs.
- Question about TensorRT environment
- Does exist any Windows compatible c++ CLI.exe that can run ONNX face restoration models?
- docker build -f ./dockerfiles/ubuntu2004.dockerfile -t onnx_runtime . FAIL HOT 3
- C++多输入多输出的例子
- Does MobileSAM instance splitting support?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onnx_runtime_cpp.