Comments (4)
Hi,
utmQ
and utmDb
are simply N*2 numpy arrays where each row contains the x
& y
coordinates of a query / reference place. The posDistThr
scalar is the ground truth tolerance (typically in meters). See
Patch-NetVLAD/patchnetvlad/tools/datasets.py
Lines 64 to 65 in 4edee2f
Patch-NetVLAD/patchnetvlad/tools/datasets.py
Lines 93 to 102 in 4edee2f
Patch-NetVLAD/patchnetvlad/tools/datasets.py
Lines 120 to 124 in 4edee2f
Patch-NetVLAD/feature_match.py
Lines 153 to 160 in 259874b
for relevant code snippets.
from patch-netvlad.
But my ground truth file, the poses of the images come in the format of a 7 feature vector (t_x, t_y, t_z, q_x, q_y, q_z, q_w), with t corresponding to the translation vector and q to the rotation expressed in form of a quaternion.
such as
[ 4.45019497e+00 8.69529027e+00 4.75170998e-01 6.67300280e-01 -2.33674360e-01 2.27086490e-01 6.69730062e-01]
[... ... ]
...
pose matrix of shape = (n, 7)
from patch-netvlad.
Hi,
Simply modify the get_positives()
method above to define your desired ground truth tolerance. In our case, it's simply the Euclidean distance in the plane; if you want to use this simply disregard everything except for t_x
and t_y
(sth like utmQ = utmQ[:, :2]
and the same for utmDb
)
Alternatively, you could adapt get_positives
to separately have some tolerance for position (based on t
) and orientation (based on q
). You should be able to use some code from e.g. kapture to do this. utmQ
and utmDb
will be a bit confusing naming of the variables, as they will contain a matrix of size N*7, but otherwise everything else should work the same.
from patch-netvlad.
Feel free to re-open if you have more questions.
from patch-netvlad.
Related Issues (20)
- cannot find the datasets... HOT 3
- How to arrange the mapillary dataset when training the code HOT 6
- How to get the value of Extended CMU Seasons? HOT 5
- Small issue on feature_match HOT 1
- Loss function HOT 1
- problem on training HOT 6
- Remove the WPCA layer before train HOT 4
- Support MPS
- How about the training time-consuming of hard samples mining module? HOT 3
- how to make a custom dataset? HOT 1
- Qustion about the function get_integral_feature(feat_in) HOT 2
- Cross-match between patches HOT 2
- questions about grouth.npz HOT 2
- How recalls on MSLS, Robotcar seasons, and CMU seasons are produced? HOT 6
- Ambiguity in the reported results
- patchnetvlad recall HOT 1
- pittsburgh_WPCA4096 HOT 1
- Tokyo24/7 HOT 1
- Large time taken for feature matching between query and database images for pitts30k HOT 5
- Unable to download pretrained models HOT 1
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 patch-netvlad.