Skip to content

Commit

Permalink
Merge pull request #240 from EvolvingLMMs-Lab/replace-default-config-…
Browse files Browse the repository at this point in the history
…to-non-yaml-format-to-avoid-loading-warning

Update LMMS evaluation tasks for various subjects
  • Loading branch information
Luodian authored Sep 10, 2024
2 parents 1618dc7 + b06e77e commit 9515cb4
Show file tree
Hide file tree
Showing 33 changed files with 31 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ dataset_kwargs:
config: arabic
token: True
task: "llava_in_the_wild_arabic"
include: _default_template.yaml
include: _default_template_yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ dataset_kwargs:
config: bengali
token: True
task: "llava_in_the_wild_bengali"
include: _default_template.yaml
include: _default_template_yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ dataset_kwargs:
config: chinese
token: True
task: "llava_in_the_wild_chinese"
include: _default_template.yaml
include: _default_template_yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ dataset_kwargs:
config: french
token: True
task: "llava_in_the_wild_french"
include: _default_template.yaml
include: _default_template_yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ dataset_kwargs:
config: hindi
token: True
task: "llava_in_the_wild_hindi"
include: _default_template.yaml
include: _default_template_yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ dataset_kwargs:
config: japanese
token: True
task: "llava_in_the_wild_japanese"
include: _default_template.yaml
include: _default_template_yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ dataset_kwargs:
config: russian
token: True
task: "llava_in_the_wild_russian"
include: _default_template.yaml
include: _default_template_yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ dataset_kwargs:
config: spanish
token: True
task: "llava_in_the_wild_spanish"
include: _default_template.yaml
include: _default_template_yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ dataset_kwargs:
config: urdu
token: True
task: "llava_in_the_wild_urdu"
include: _default_template.yaml
include: _default_template_yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

rule_dict = json.load(open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "rule.json"), "r"))

with open(Path(__file__).parent / "_default_template.yaml", "r") as f:
with open(Path(__file__).parent / "_default_template_yaml", "r") as f:
raw_data = f.readlines()
safe_data = []
for i, line in enumerate(raw_data):
Expand Down
2 changes: 1 addition & 1 deletion lmms_eval/tasks/mvbench/mvbench_action_antonym.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: _default_template.yaml
include: _default_template_yaml
task: mvbench_action_antonym
dataset_name: action_antonym
test_split: train
Expand Down
2 changes: 1 addition & 1 deletion lmms_eval/tasks/mvbench/mvbench_action_count.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: _default_template.yaml
include: _default_template_yaml
task: mvbench_action_count
dataset_name: action_count
test_split: train
Expand Down
2 changes: 1 addition & 1 deletion lmms_eval/tasks/mvbench/mvbench_action_localization.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: _default_template.yaml
include: _default_template_yaml
task: mvbench_action_localization
dataset_name: action_localization
test_split: train
Expand Down
2 changes: 1 addition & 1 deletion lmms_eval/tasks/mvbench/mvbench_action_prediction.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: _default_template.yaml
include: _default_template_yaml
task: mvbench_action_prediction
dataset_name: action_prediction
test_split: train
Expand Down
2 changes: 1 addition & 1 deletion lmms_eval/tasks/mvbench/mvbench_action_sequence.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: _default_template.yaml
include: _default_template_yaml
task: mvbench_action_sequence
dataset_name: action_sequence
test_split: train
Expand Down
2 changes: 1 addition & 1 deletion lmms_eval/tasks/mvbench/mvbench_character_order.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: _default_template.yaml
include: _default_template_yaml
task: mvbench_character_order
dataset_name: character_order
test_split: train
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: _default_template.yaml
include: _default_template_yaml
task: mvbench_counterfactual_inference
dataset_name: counterfactual_inference
test_split: train
Expand Down
2 changes: 1 addition & 1 deletion lmms_eval/tasks/mvbench/mvbench_egocentric_navigation.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: _default_template.yaml
include: _default_template_yaml
task: mvbench_egocentric_navigation
dataset_name: egocentric_navigation
test_split: train
Expand Down
2 changes: 1 addition & 1 deletion lmms_eval/tasks/mvbench/mvbench_episodic_reasoning.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: _default_template.yaml
include: _default_template_yaml
task: mvbench_episodic_reasoning
dataset_name: episodic_reasoning
test_split: train
Expand Down
2 changes: 1 addition & 1 deletion lmms_eval/tasks/mvbench/mvbench_fine_grained_action.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: _default_template.yaml
include: _default_template_yaml
task: mvbench_fine_grained_action
dataset_name: fine_grained_action
test_split: train
Expand Down
2 changes: 1 addition & 1 deletion lmms_eval/tasks/mvbench/mvbench_fine_grained_pose.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: _default_template.yaml
include: _default_template_yaml
task: mvbench_fine_grained_pose
dataset_name: fine_grained_pose
test_split: train
Expand Down
2 changes: 1 addition & 1 deletion lmms_eval/tasks/mvbench/mvbench_moving_attribute.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: _default_template.yaml
include: _default_template_yaml
task: mvbench_moving_attribute
dataset_name: moving_attribute
test_split: train
Expand Down
2 changes: 1 addition & 1 deletion lmms_eval/tasks/mvbench/mvbench_moving_count.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: _default_template.yaml
include: _default_template_yaml
task: mvbench_moving_count
dataset_name: moving_count
test_split: train
Expand Down
2 changes: 1 addition & 1 deletion lmms_eval/tasks/mvbench/mvbench_moving_direction.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: _default_template.yaml
include: _default_template_yaml
task: mvbench_moving_direction
dataset_name: moving_direction
test_split: train
Expand Down
2 changes: 1 addition & 1 deletion lmms_eval/tasks/mvbench/mvbench_object_existence.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: _default_template.yaml
include: _default_template_yaml
task: mvbench_object_existence
dataset_name: object_existence
test_split: train
Expand Down
2 changes: 1 addition & 1 deletion lmms_eval/tasks/mvbench/mvbench_object_interaction.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: _default_template.yaml
include: _default_template_yaml
task: mvbench_object_interaction
dataset_name: object_interaction
test_split: train
Expand Down
2 changes: 1 addition & 1 deletion lmms_eval/tasks/mvbench/mvbench_object_shuffle.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: _default_template.yaml
include: _default_template_yaml
task: mvbench_object_shuffle
dataset_name: object_shuffle
test_split: train
Expand Down
2 changes: 1 addition & 1 deletion lmms_eval/tasks/mvbench/mvbench_scene_transition.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: _default_template.yaml
include: _default_template_yaml
task: mvbench_scene_transition
dataset_name: scene_transition
test_split: train
Expand Down
2 changes: 1 addition & 1 deletion lmms_eval/tasks/mvbench/mvbench_state_change.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: _default_template.yaml
include: _default_template_yaml
task: mvbench_state_change
dataset_name: state_change
test_split: train
Expand Down
2 changes: 1 addition & 1 deletion lmms_eval/tasks/mvbench/mvbench_unexpected_action.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: _default_template.yaml
include: _default_template_yaml
task: mvbench_unexpected_action
dataset_name: unexpected_action
test_split: train
Expand Down
2 changes: 1 addition & 1 deletion lmms_eval/tasks/mvbench/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
hf_home = os.getenv("HF_HOME", "./~/.cache/huggingface")
base_cache_dir = os.path.expanduser(hf_home)

with open(Path(__file__).parent / "_default_template.yaml", "r") as f:
with open(Path(__file__).parent / "_default_template_yaml", "r") as f:
raw_data = f.readlines()
safe_data = []
for i, line in enumerate(raw_data):
Expand Down

0 comments on commit 9515cb4

Please sign in to comment.