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

ITM threshold #46

Open
chaochen99 opened this issue Apr 18, 2022 · 3 comments
Open

ITM threshold #46

chaochen99 opened this issue Apr 18, 2022 · 3 comments

Comments

@chaochen99
Copy link

HI, I am very fortunate to read your paper BLIP. It's very exciting.

I wonder how to set the ITM threshold when filtering?

Thanks!
Looking forward to your reply.

@LiJunnan1992
Copy link
Contributor

We simply set it as 0.5, thanks.

@chaochen99
Copy link
Author

In train_retrieval.py, the score of ITM did not go through softmax. Did you consider using softmax at that time?
When filtering, is the score of 0.5 used without softmax?

Thanks!

@LiJunnan1992
Copy link
Contributor

When filtering, the score of 0.5 uses softmax?

During inference of retrieval, softmax does not affect the ranking of ITM predictions, but it does affect the relative scale w.r.t the ITC similarity. If softmax is used for ITM scores, some additional scaling on the ITC score is also needed.

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