Skip to content

Commit bb53463

Browse files
committed
lint
1 parent b889c97 commit bb53463

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lmms_eval/tasks/camerabench_vqa/utils.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
SUFFIX_FOR_VQA = {"yes_no": "Please answer Yes or No.", "multiple_choice": "Please output the letter corresponding to the correct option."}
77

88

9-
109
def get_scores(scores):
1110
"""
1211
Calculate various scores based on the given results.
@@ -148,11 +147,8 @@ def find_word_position(string, word):
148147

149148
def 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}")

0 commit comments

Comments
 (0)