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

The retrieval speed #9

Open
henry32144 opened this issue Oct 26, 2020 · 0 comments
Open

The retrieval speed #9

henry32144 opened this issue Oct 26, 2020 · 0 comments

Comments

@henry32144
Copy link

Hi, Thanks for your awesome implementation. This repository really helps me a lot

I am trying to make an image retrieval system with 53 images in my database for testing. I found that in the PQ search step, the system runs fast. However, the system getting slower in the geometric verification step (about 5 secs for one search). Currently, I apply a limit to the get_ransac_result function as the snippet below. And I am wondering if there are other ways to speed up the image retrieval system without losing too much precision?

def get_ransac_result(query_img2imgFreq, top_freq=10):
    query_inlier_rank = {}

    # MODIFY: pick only top similar images to get faster speed
    top_freq = 10

    # explore each image's frequency-based ranked image indices
    for query_i in tqdm(range(len(query_img2imgFreq))):

        # MODIFY: apply the limit here
        ranked_list = query_img2imgFreq[query_i]['index'][:top_freq]
        ...

Thank you very much.

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

1 participant