File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
lmms_eval/tasks/camerabench_vqa Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 66SUFFIX_FOR_VQA = {"yes_no" : "Please answer Yes or No." , "multiple_choice" : "Please output the letter corresponding to the correct option." }
77
88
9-
109def get_scores (scores ):
1110 """
1211 Calculate various scores based on the given results.
@@ -148,11 +147,8 @@ def find_word_position(string, word):
148147
149148def cambench_doc_to_visual (doc ):
150149 try :
151- default_path = os .path .join (os .getenv ('HOME' ), '.cache/huggingface' )
152- load_path = os .path .expanduser (os .path .join (
153- os .getenv ("HF_HOME" , default_path ),
154- 'camerabench_vqa/datasets--chancharikm--camerabench_vqa_lmms_eval/snapshots'
155- ))
150+ default_path = os .path .join (os .getenv ("HOME" ), ".cache/huggingface" )
151+ load_path = os .path .expanduser (os .path .join (os .getenv ("HF_HOME" , default_path ), "camerabench_vqa/datasets--chancharikm--camerabench_vqa_lmms_eval/snapshots" ))
156152
157153 if not os .path .exists (load_path ):
158154 raise FileNotFoundError (f"Dataset path not found: { load_path } " )
You can’t perform that action at this time.
0 commit comments