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

Slow runtime。use i5-14600kf,it take 1.5seconds for descriptor Extract。 #84

Open
schwert26 opened this issue Dec 2, 2024 · 2 comments

Comments

@schwert26
Copy link

start_time = time.time()
descriptors1 = xfeat.get_descriptor(image1, top_k=4096)
end_time = time.time()

def get_descriptor(self, img1, top_k = None, min_cossim = -1):

if top_k is None: top_k = self.top_k
img1 = self.parse_input(img1)
out1 = self.detectAndCompute(img1, top_k=top_k)[0]
return out1['descriptors'].cpu().numpy()

it takes 1.5s for 1 img

@alaa-i
Copy link

alaa-i commented Dec 2, 2024

I had same issue. I fixed it with pc format. It was caused by some dependencies but I couldnt know which.

@schwert26
Copy link
Author

Thank you for your comment .I still have the question。Could you elaborate on the specific operations of pc format?

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