Spaces:
Runtime error
Runtime error
Aaron Mueller
commited on
Commit
·
50e52ac
1
Parent(s):
93233b6
yet more debugging
Browse files- src/leaderboard/read_evals.py +1 -0
- src/populate.py +2 -2
src/leaderboard/read_evals.py
CHANGED
@@ -158,6 +158,7 @@ def get_raw_eval_results(results_path: str, requests_path: str) -> list[EvalResu
|
|
158 |
model_result_filepaths.append(os.path.join(root, file))
|
159 |
|
160 |
eval_results = {}
|
|
|
161 |
for model_result_filepath in model_result_filepaths:
|
162 |
# Creation of result
|
163 |
eval_result = EvalResult.init_from_json_file(model_result_filepath)
|
|
|
158 |
model_result_filepaths.append(os.path.join(root, file))
|
159 |
|
160 |
eval_results = {}
|
161 |
+
print(model_result_filepaths, len(model_result_filepaths))
|
162 |
for model_result_filepath in model_result_filepaths:
|
163 |
# Creation of result
|
164 |
eval_result = EvalResult.init_from_json_file(model_result_filepath)
|
src/populate.py
CHANGED
@@ -14,9 +14,9 @@ def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchm
|
|
14 |
all_data_json = [v.to_dict() for v in raw_data]
|
15 |
all_data_json_filtered = []
|
16 |
for item in all_data_json:
|
17 |
-
if "VQA" in benchmark_cols and "
|
18 |
all_data_json_filtered.append(item)
|
19 |
-
if "VQA" not in benchmark_cols and "
|
20 |
all_data_json_filtered.append(item)
|
21 |
all_data_json = all_data_json_filtered
|
22 |
|
|
|
14 |
all_data_json = [v.to_dict() for v in raw_data]
|
15 |
all_data_json_filtered = []
|
16 |
for item in all_data_json:
|
17 |
+
if "VQA" in benchmark_cols and "vqa" in item:
|
18 |
all_data_json_filtered.append(item)
|
19 |
+
if "VQA" not in benchmark_cols and "vqa" not in item:
|
20 |
all_data_json_filtered.append(item)
|
21 |
all_data_json = all_data_json_filtered
|
22 |
|