Comments (9)
and what is EPI_ERR_THR in default.py ?
from loftr.
1 & 2. Training of the coarse-level LoFTR should converge pretty fast, so I guess there are bugs in the re-implementation, such as incorrect setup of gt coarse matches or loss calculation. Maybe Try overfitting one training sample before moving on.
3. We clip gradients with a norm above 0.5, but I think this should be irrelevant to the problem you met.
4. EPI_ERR_THR
is the correctness threshold for a match w.r.t. the squared symmetric epipolar error.
from loftr.
Thank you for your quick response!
I have visualize the gt coarse matches and they are all right.
I am confused about "pad coarse-level matches by randomly sampling from ground-truth matches", is this sampling on the coarse matching? or sample when calculating loss?
from loftr.
1 & 2. Training of the coarse-level LoFTR should converge pretty fast, so I guess there are bugs in the re-implementation, such as incorrect setup of gt coarse matches or loss calculation. Maybe Try overfitting one training sample before moving on.
3. We clip gradients with a norm above 0.5, but I think this should be irrelevant to the problem you met.
4.EPI_ERR_THR
is the correctness threshold for a match w.r.t. the squared symmetric epipolar error.
I pad coarse-level matches by randomly sampling from ground-truth matches after coarse mathcing, and as times go, there still is 0 match from coarse mathcing layer. All coarse matches are from gt matches. The coarse loss couldn't convergence. Could you give me more details about training code?
from loftr.
1 & 2. Training of the coarse-level LoFTR should converge pretty fast, so I guess there are bugs in the re-implementation, such as incorrect setup of gt coarse matches or loss calculation. Maybe Try overfitting one training sample before moving on.
3. We clip gradients with a norm above 0.5, but I think this should be irrelevant to the problem you met.
4.EPI_ERR_THR
is the correctness threshold for a match w.r.t. the squared symmetric epipolar error.
I found that code 'mconf = conf_matrix[b_ids. i_ids, j_ids]', mconf don't have grad (mconf.requires_grad is False), conf_matrix.requires_grad is True.
from loftr.
The line mconf = conf_matrix[b_ids, i_ids, j_ids]
extracts coarse-level matching confidences from the dense confidence matrix. We calculate the coarse loss based on the dense coarse-level matrix instead of the indexing results.
from loftr.
The line
mconf = conf_matrix[b_ids, i_ids, j_ids]
extracts coarse-level matching confidences from the dense confidence matrix. We calculate the coarse loss based on the dense coarse-level matrix instead of the indexing results.
Thank you very much! I find the line '@torch.no_grad()' which causes the bugs!
And one more question, should I set the 'var.detach()' ?
from loftr.
Sorry, I don't quite get your question. If you are referring to whether to detach the indices for extraction of fine-level patches, then yes. However, in our case, it should already be decorated with torch.no_grad()
.
from loftr.
Sorry, I don't quite get your question. If you are referring to whether to detach the indices for extraction of fine-level patches, then yes. However, in our case, it should already be decorated with
torch.no_grad()
.
Thank you.
from loftr.
Related Issues (20)
- Code about Visual Localization
- training of smaller model
- Tensorboard visualization - are the indices correct?
- About train with fp16
- About the dataset indices of Megadepth HOT 2
- How to train the model for HPatches
- train model for image matching
- training on custom dataset HOT 4
- Can the model be limited to detecting key points in a region of interest?
- h5py can't read data
- meet an error when training loftr: EOFError: Ran out of input HOT 3
- image size
- Bug found in supervision process
- main_cfg problem
- How to train LoFTR on custom dataset?
- megadepth_indices下载不下来 HOT 1
- How to get image feature maps from the pretrained model?
- My dataset is only RGB, can I use it for training?
- ScanNet Training Pairs
- File "h5py\h5f.pyx", line 96, in h5py.h5f.open OSError: Unable to open file
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 loftr.