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

A little bug of the function text2image_recall_at_k in evaluator.py #4

Open
XuanxuanGao opened this issue Oct 22, 2020 · 1 comment

Comments

@XuanxuanGao
Copy link

Hi, I'm working on text-image retrieval and I appreciate your tensorflow version of vesepp model.

During the code review, I'm confused about the implementation of the function text2image_recall_at_k in evaluator.py. The original code is shown as below:

for index in range(num_captions):

While I think that line 117 should be like this, since the embedded_captions cannot be sliced 5 fold:

for index in range(num_captions//5):

Interestingly, this change does not change the final evaluation result.

@gorjanradevski
Copy link
Owner

Hey @XuanxuanGao, thanks for the interest. I will have a look these days and let you know if indeed there is a bug. In the meantime, have a look at: https://github.com/fartashf/vsepp/blob/master/evaluation.py#L258

This is the original implementation, and the method you are looking at is just a modified version.

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