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

[mieb] Any2TextMultipleChoice Abstask&Evaluator & four tasks in CV-bench #1287

Merged
merged 9 commits into from
Oct 11, 2024

Conversation

gowitheflow-1998
Copy link
Contributor

Adding:

  1. Any2Text Multiple Choice Abstask and Evaluator
  2. four tasks from CV-bench that uses above (count, relation, depth, distance).

the logic is first grabbing unique candidate choices from the task (e.g., the 788 questions in the count task only has 17 unique candidates), encode them, store in a {candidate: embedding} dict. In scoring time, we query the dict and do similarity matching. This gets rid of the need to repetitive encoding, and makes it easier for queries with different number of candidates that can't be supported by AbsTaskImageTextPairClassification atm.

Checklist

  • Run tests locally to make sure nothing is broken using make test.
  • Run the formatter to format the code using make lint.

@gowitheflow-1998
Copy link
Contributor Author

also, this and Any2AnyRetrieval can be extended to audio and video for moeb at some point I think!

Copy link
Collaborator

@isaac-chung isaac-chung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work with the AbsTasks! Mostly small non-blocking comments.

@isaac-chung isaac-chung merged commit b0bc4e2 into mieb Oct 11, 2024
9 checks passed
@isaac-chung isaac-chung deleted the ImageTextPairCls branch October 11, 2024 07:38
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

Successfully merging this pull request may close these issues.

2 participants