Giter VIP home page Giter VIP logo

Comments (6)

Parskatt avatar Parskatt commented on May 30, 2024

I've never had this happen before. It should mean that the features from the encoder are extremely correlated. Is it a weird image pair?

from dkm.

wtishere avatar wtishere commented on May 30, 2024

Thanks for your reply. I have no idea whether it has a weird image. I used the megadepth dataset and followed your steps to form data structure. Do you have any idea to solve this problem?

from dkm.

Parskatt avatar Parskatt commented on May 30, 2024

This seems to happen during the benchmark. You should be able to see the names of the images being sent in. If so I can check if Im able to reproduce the issue.

Otherwise Im not sure how to help.

from dkm.

MantangGuo avatar MantangGuo commented on May 30, 2024

I have encountered the same Error, also used megadepth for training.
But I got something new: the loss value became 0 at some step, and then the Error raised.
I think the loss value leads to the Error. But I do not know why loss value became zero suddenly.
The most wired thing is that: I run the code twice. At the first run , it goes without any error. But at the second run (the exactly same code and devices), the loss became 0 and there raised an Error: torch._C._LinAlgError: torch.linalg.inv: (Batch element 0): The diagonal element 1 is zero, the inversion could not be completed because the input matrix is singular.

from dkm.

Parskatt avatar Parskatt commented on May 30, 2024

If its the megadepth training set we don't use seeds so it might be different image pairs etc. You might reduce the risk of this happening by increasing the diagonal term that we add here

sigma_noise = self.sigma_noise * torch.eye(h2 * w2, device=x.device)[None, :, :]

from dkm.

MantangGuo avatar MantangGuo commented on May 30, 2024

from dkm.

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.