forked from EvolvingLMMs-Lab/lmms-eval
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Dataset] Add SEED-Bench, TextCaps, NoCaps (EvolvingLMMs-Lab#12)
* Change coco from print to logger * Add llava loglikelihood * Add Nocaps support * Fix pass through function * Add textcaps support * Fix textcaps eval image_id * Add seedbench support * Add seedbench ppl evaluation * black lint
- Loading branch information
Showing
27 changed files
with
680 additions
and
48 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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,3 @@ | ||
group : nocaps | ||
task: | ||
- nocaps_caption |
This file contains 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,26 @@ | ||
dataset_path: HuggingFaceM4/NoCaps | ||
dataset_kwargs: | ||
token: True | ||
task : "nocaps_test" | ||
group : "nocaps_caption" | ||
test_split: test | ||
output_type: generate_until | ||
doc_to_visual: !function utils.nocaps_doc_to_visual | ||
doc_to_text: !function utils.nocaps_doc_to_text | ||
doc_to_target: "annotations_captions" | ||
generation_kwargs: | ||
until: | ||
- "ASSISTANT:" | ||
max_new_tokens: 1024 | ||
temperature: 0 | ||
top_p: 0 | ||
num_beams: 1 | ||
do_sample: false | ||
process_results: !function utils.nocaps_test_process_result | ||
# Note that the metric name can be either a registed metric function (such as the case for GQA) or a key name returned by process_results | ||
metric_list: | ||
- metric: nocaps_passthrough | ||
aggregation : !function utils.nocaps_test_aggregation_result | ||
higher_is_better : true | ||
metadata: | ||
- version: 0.0 |
This file contains 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,47 @@ | ||
dataset_path: HuggingFaceM4/NoCaps | ||
dataset_kwargs: | ||
token: True | ||
task: "nocaps_val" | ||
group : "nocaps_caption" | ||
test_split: validation | ||
output_type: generate_until | ||
doc_to_visual: !function utils.nocaps_doc_to_visual | ||
doc_to_text: !function utils.nocaps_doc_to_text | ||
doc_to_target: "annotations_captions" | ||
generation_kwargs: | ||
until: | ||
- "ASSISTANT:" | ||
max_new_tokens: 1024 | ||
temperature: 0 | ||
top_p: 0 | ||
num_beams: 1 | ||
do_sample: false | ||
process_results: !function utils.nocaps_process_result | ||
# Note that the metric name can be either a registed metric function (such as the case for GQA) or a key name returned by process_results | ||
metric_list: | ||
- metric: nocaps_Bleu_4 | ||
aggregation : !function utils.nocaps_bleu4 | ||
higher_is_better : true | ||
- metric: nocaps_Bleu_3 | ||
aggregation : !function utils.nocaps_bleu3 | ||
higher_is_better : true | ||
- metric: nocaps_Bleu_2 | ||
aggregation : !function utils.nocaps_bleu2 | ||
higher_is_better : true | ||
- metric: nocaps_Bleu_1 | ||
aggregation : !function utils.nocaps_bleu1 | ||
higher_is_better : true | ||
- metric: nocaps_METEOR | ||
aggregation : !function utils.nocaps_meteor | ||
higher_is_better : true | ||
- metric: nocaps_ROUGE_L | ||
aggregation : !function utils.nocaps_rougel | ||
higher_is_better : true | ||
- metric: nocaps_CIDEr | ||
aggregation : !function utils.nocaps_cider | ||
higher_is_better : true | ||
#- metric: nocaps_SPICE | ||
# aggregation : !function utils.nocaps_spice | ||
# higher_is_better : true | ||
metadata: | ||
- version: 0.0 |
Oops, something went wrong.