Skip to content

Commit

Permalink
Add separated pope tasks by category
Browse files Browse the repository at this point in the history
  • Loading branch information
kcz358 committed May 23, 2024
1 parent d1eefb1 commit 22520a9
Show file tree
Hide file tree
Showing 4 changed files with 110 additions and 0 deletions.
35 changes: 35 additions & 0 deletions lmms_eval/tasks/pope/pope_adv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
dataset_path: lmms-lab/POPE
dataset_name: Full
dataset_kwargs:
token: True
task: "pope_adv"
test_split: adversarial
output_type: generate_until
doc_to_visual: !function utils.pope_doc_to_visual
doc_to_text: !function utils.pope_doc_to_text
doc_to_target: "answer"
generation_kwargs:
max_new_tokens: 128
temperature: 0
top_p: 0
num_beams: 1
do_sample: false
process_results: !function utils.pope_process_results
metric_list:
- metric: pope_accuracy
aggregation: !function utils.pope_aggregate_accuracy
higher_is_better: true
- metric: pope_precision
aggregation: !function utils.pope_aggregate_precision
higher_is_better: true
- metric: pope_recall
aggregation: !function utils.pope_aggregate_recall
higher_is_better: true
- metric: pope_f1_score
aggregation: !function utils.pope_aggregate_f1_score
higher_is_better: true
- metric: pope_yes_ratio
aggregation: !function utils.pope_aggregate_yes_ratio
higher_is_better: true
metadata:
- version: 0.0
5 changes: 5 additions & 0 deletions lmms_eval/tasks/pope/pope_full.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
group : pope_full
task:
- pope_adv
- pope_pop
- pop_random
35 changes: 35 additions & 0 deletions lmms_eval/tasks/pope/pope_pop.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
dataset_path: lmms-lab/POPE
dataset_name: Full
dataset_kwargs:
token: True
task: "pope_pop"
test_split: popular
output_type: generate_until
doc_to_visual: !function utils.pope_doc_to_visual
doc_to_text: !function utils.pope_doc_to_text
doc_to_target: "answer"
generation_kwargs:
max_new_tokens: 128
temperature: 0
top_p: 0
num_beams: 1
do_sample: false
process_results: !function utils.pope_process_results
metric_list:
- metric: pope_accuracy
aggregation: !function utils.pope_aggregate_accuracy
higher_is_better: true
- metric: pope_precision
aggregation: !function utils.pope_aggregate_precision
higher_is_better: true
- metric: pope_recall
aggregation: !function utils.pope_aggregate_recall
higher_is_better: true
- metric: pope_f1_score
aggregation: !function utils.pope_aggregate_f1_score
higher_is_better: true
- metric: pope_yes_ratio
aggregation: !function utils.pope_aggregate_yes_ratio
higher_is_better: true
metadata:
- version: 0.0
35 changes: 35 additions & 0 deletions lmms_eval/tasks/pope/pope_random.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
dataset_path: lmms-lab/POPE
dataset_name: Full
dataset_kwargs:
token: True
task: "pope_random"
test_split: random
output_type: generate_until
doc_to_visual: !function utils.pope_doc_to_visual
doc_to_text: !function utils.pope_doc_to_text
doc_to_target: "answer"
generation_kwargs:
max_new_tokens: 128
temperature: 0
top_p: 0
num_beams: 1
do_sample: false
process_results: !function utils.pope_process_results
metric_list:
- metric: pope_accuracy
aggregation: !function utils.pope_aggregate_accuracy
higher_is_better: true
- metric: pope_precision
aggregation: !function utils.pope_aggregate_precision
higher_is_better: true
- metric: pope_recall
aggregation: !function utils.pope_aggregate_recall
higher_is_better: true
- metric: pope_f1_score
aggregation: !function utils.pope_aggregate_f1_score
higher_is_better: true
- metric: pope_yes_ratio
aggregation: !function utils.pope_aggregate_yes_ratio
higher_is_better: true
metadata:
- version: 0.0

0 comments on commit 22520a9

Please sign in to comment.