-
Notifications
You must be signed in to change notification settings - Fork 445
easier code for multiple images #879
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
Open
Kyunnilee
wants to merge
16
commits into
EvolvingLMMs-Lab:main
Choose a base branch
from
tsunghan-wu:image_ordering
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
1f15a45
add coco captioning chair
tsunghan-wu 48eb7de
add chair recall
tsunghan-wu 2f9c614
bootstrapping
Kyunnilee be9b001
Merge branch 'EvolvingLMMs-Lab:main' into main
Kyunnilee a958de2
add amber_g
Kyunnilee 8b10992
amber-works
Kyunnilee a30ccf5
Add an easy flag to control image ordering (incomplete code)
tsunghan-wu 1a99b51
we nned to do interleaved at the end of the day...
tsunghan-wu 4a61754
fix typo
tsunghan-wu 3bbf771
update evaluator to prevent chair customized
tsunghan-wu 55fb8b9
mmbench two
Kyunnilee 0124da0
clean code
Kyunnilee 7611727
file upload bug fix
Kyunnilee 4e5fe57
enable double img mmmu
Kyunnilee 8e22040
hallusion_bench
Kyunnilee a818ab8
bootstrap for amber
Kyunnilee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| # AMBER-G (Generative Task) Evaluation Configuration | ||
| # Based on: https://github.com/junyangwang0410/AMBER | ||
| # Dataset includes: images, questions, and complete ground truth annotations | ||
|
|
||
| dataset_path: Kyunnilee/amber_g # use this dataset | ||
| dataset_kwargs: | ||
| trust_remote_code: true | ||
| task: "amber_g" | ||
| output_type: generate_until | ||
|
|
||
| doc_to_visual: !function utils.amber_g_doc_to_visual | ||
| doc_to_text: !function utils.amber_g_doc_to_text | ||
| doc_to_target: "truth" | ||
| test_split: train | ||
|
|
||
| generation_kwargs: | ||
| max_new_tokens: 2048 | ||
| temperature: 0 | ||
| top_p: 1.0 | ||
| num_beams: 1 | ||
| do_sample: false | ||
| until: [] # really important!!! the default would be ["\n\n"] and that will cause truncation | ||
|
|
||
| process_results: !function utils.amber_g_process_result | ||
|
|
||
| # AMBER-G Metrics: | ||
| metric_list: | ||
| - metric: amber_chair | ||
| aggregation: !function utils.amber_g_aggregate_chair | ||
| higher_is_better: false | ||
| - metric: amber_cover | ||
| aggregation: !function utils.amber_g_aggregate_cover | ||
| higher_is_better: true | ||
| - metric: amber_hal | ||
| aggregation: !function utils.amber_g_aggregate_hal | ||
| higher_is_better: false | ||
| - metric: amber_cog | ||
| aggregation: !function utils.amber_g_aggregate_cog | ||
| higher_is_better: true | ||
|
|
||
| metadata: | ||
| - version: 0.0 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This extra line should be removed