-
Notifications
You must be signed in to change notification settings - Fork 412
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
Enhance Clip_Score
to calculate similarities between same modalities
#2875
base: master
Are you sure you want to change the base?
Conversation
for more information, see https://pre-commit.ci
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2875 +/- ##
========================================
- Coverage 69% 32% -37%
========================================
Files 346 332 -14
Lines 19142 18995 -147
========================================
- Hits 13230 6056 -7174
- Misses 5912 12939 +7027 |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
@Borda I am planning to add some tests for new feature (calculate clip score in same modality). I am trying to understand how the reference metric should be. |
This reverts commit 81b4405.
Clip_Score
to calculate similarities between same modalities [WIP]Clip_Score
to calculate similarities between same modalities
|
||
txt_features = model.get_text_features( | ||
processed_input["input_ids"].to(device), processed_input["attention_mask"].to(device) | ||
device = torch.device("cpu") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Borda I changed this device assigning part a little bit. Can you please check it once..
What does this PR do?
Fixes #2865
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃
📚 Documentation preview 📚: https://torchmetrics--2875.org.readthedocs.build/en/2875/