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

confused about generate_topk in ImageFromList.py #6

Closed
cvbird opened this issue Feb 1, 2022 · 3 comments
Closed

confused about generate_topk in ImageFromList.py #6

cvbird opened this issue Feb 1, 2022 · 3 comments

Comments

@cvbird
Copy link

cvbird commented Feb 1, 2022

First of all, thank you for your code and paper. When reading your source cod, I encounter a problem:
in ImageFromList.py, generate_topk seems never been invoked in any place. However, in _getitem, it uses sim_indices which is only initialized in generate_topk function. I am not sure whether I miss something. Any suggestion or explanation are appreciated.
Thank you.

@MCC-WH
Copy link
Owner

MCC-WH commented Feb 1, 2022

Thank you for your interest in our paper. I apologize for the bugs in the code. It is true that ''generate_topk'' is not used in the code, I will fix the problem in the code today and I will keep you informed when I finish.

@MCC-WH
Copy link
Owner

MCC-WH commented Feb 1, 2022

In fact, I have refactored the code before uploading it to GitHub. Now, "topk_indices'' and "sim_indices'' are calculated in the initialization function, there are some bugs here.

@MCC-WH
Copy link
Owner

MCC-WH commented Feb 1, 2022

You can re-download the current code and try. If there are still any problems, please feel free to contact me.

@MCC-WH MCC-WH closed this as completed Feb 7, 2022
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