Git Product home page Git Product logo

Comments (4)

zehongs avatar zehongs commented on May 30, 2024 1

Yes, you can do that! The mask_c0 should have the same shape as that of feat_c0, which is 1/8 of the input image shape.
And may I ask why do you want to try this? I think inference without mask is more convenient, and they should have no difference😂

from loftr.

shlomi-amitai avatar shlomi-amitai commented on May 30, 2024

Thanks, I’ll try that.
There are cases where there is a small overlap between the two images or the images are cropped, in these cases I’ve noticed that it is harder for the NN to match the correct features or somethings it finds features outside of the cropped area, where there are zeros. So I try to make it consider only part of the images plane.

from loftr.

zehongs avatar zehongs commented on May 30, 2024

Oh, I see. I think you could also use the cropped CNN feature maps instead of using masks. That will save you a lot of GPU memory😃.

from loftr.

marisancans avatar marisancans commented on May 30, 2024

Thanks, I’ll try that.
There are cases where there is a small overlap between the two images or the images are cropped, in these cases I’ve noticed that it is harder for the NN to match the correct features or somethings it finds features outside of the cropped area, where there are zeros. So I try to make it consider only part of the images plane.

I can also confirm this. If anyone else has similar problem, where there is a small overlap between images (like 20% - 40%), create a mask of that overlap region, resize it 1/8 to the shape you pass to model. I sometimes get even 10x more control points

from loftr.

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.