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

Matching mutiple pairs at the same time #48

Open
Kudo510 opened this issue Nov 3, 2024 · 1 comment
Open

Matching mutiple pairs at the same time #48

Kudo510 opened this issue Nov 3, 2024 · 1 comment

Comments

@Kudo510
Copy link

Kudo510 commented Nov 3, 2024

Hi,
it is shown in the demo how to find mathces between 2 single images. Is there a way that we can do it for batches e.g 4 images to 4 images or even to output matches of 16 pairs (each image of this batch to another image in the other batch)

@wyf2020
Copy link
Contributor

wyf2020 commented Nov 17, 2024

Great question! The current code supports '4 images to 4 images', you can change the hard code here to args.batch_size, and then change the batch_size in the test script to N. If your GPU utilization is not 100% when batch_size=1, increasing the batch_size to reach 100% utilization can significantly improve throughput. The current code does not support outputting '16 pairs', you can modify the current code to only compute backbone four times in batch manner, and perform the attention and subsequent operations 16 times in batch manner.

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