Giter Club home page Giter Club logo

Comments (7)

xmba15 avatar xmba15 commented on May 19, 2024

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.

xmba15 avatar xmba15 commented on May 19, 2024

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.

xmba15 avatar xmba15 commented on May 19, 2024

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.

fatihkykc avatar fatihkykc commented on May 19, 2024

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.

fatihkykc avatar fatihkykc commented on May 19, 2024

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.

xmba15 avatar xmba15 commented on May 19, 2024

@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.

fatihkykc avatar fatihkykc commented on May 19, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.