Comments (6)
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.
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.
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.
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.
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
Line 355 in d1cba4b
from dkm.
from dkm.
Related Issues (20)
- 3d point projection, best way to fetch matches HOT 6
- `numpy.random.choice` to pytorch? HOT 6
- run on batch data HOT 5
- the structure and information of 'warp' HOT 5
- what does low_res_certainty do in dkm.py? HOT 3
- e_R reaches 180° HOT 15
- About the pretrained model HOT 3
- Questions about global matcher HOT 3
- About the pretrained model with resnet18 HOT 1
- When using multi-GPU training, there is additional memory occupancy on GPU 0 HOT 1
- About testing results HOT 2
- DKMv3 and DKMv2 HOT 4
- Pretrained weights licensing HOT 2
- Questions about the key points on Megadepth test images HOT 2
- About previous sota pdc-net+ HOT 5
- synthetic dataset
- How to use GC-RANSAC for pose estimation? HOT 1
- question about loading the training images HOT 2
- if it's possible to use DKMv3 for training when there is no depth information in my own dataset? HOT 3
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 dkm.