ais-lab / d2s

[RAL 2024] D2S: Representing sparse descriptors and 3D coordinates for camera relocalization
https://thpjp.github.io/d2s/
Apache License 2.0
65 stars 5 forks source link

Localizing single image to pre-trained dataset #11

Closed matbee-eth closed 4 months ago

matbee-eth commented 4 months ago

Is it possible to manually relocalize an image without further training?

thuanaislab commented 4 months ago

Hi, thank you for your interest. Do you mean relocalizing in the same environment (pre-trained scene)? If so, yes, you don't need further training. But with a different environment, you need to re-train the model.

matbee-eth commented 4 months ago

Same environment, but an image not in the dataset

Would you be able to guide me on which functions to look at to achieve it?

thuanaislab commented 4 months ago

I assume that you already downloaded the 7scenes dataset. Please use the following command to run a simple demo, and then you will see how it relocalizes on a given image:

git pull  # Make sure you pull the latest update of demo
cd demo
python demo.py

Then the results should show like this: image

matbee-eth commented 4 months ago

Excellent! I appreciate it! I'll have time shortly to run this :)