Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using pretrained model on images of arbitrary size #5

Open
Mona-ShZeinoddin opened this issue Jan 7, 2025 · 1 comment
Open

Using pretrained model on images of arbitrary size #5

Mona-ShZeinoddin opened this issue Jan 7, 2025 · 1 comment

Comments

@Mona-ShZeinoddin
Copy link

Hello,

Congratulations on the amazing work!,

I have images of size 320x256, I would like to use Reloc3r to perform relative pose estimation between pairs of images. Given both the width and height of my images are divisible by the patch size, my understanding is that I should be able to use the pre-trained models, could you please confirm this? if so, which one of the Reloc3r-512 or Reloc3r-224 do you recommend? Would be very grateful for your insight.

@siyandong
Copy link
Collaborator

Hi, thank you for your interest!

You can try both, just check out the demo code wild_relpose.py. Your images will be cropped and resized to either 224 or 512 pixels. Remember to set the same resolution for both the model, checkpoint, and images.

In general, 512 is better than 224. Given that your resolution is <512, perhaps 224 would be better to avoid blurry from image upscaling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants