kennymckormick
commited on
Commit
•
7b3b94d
1
Parent(s):
7f008cb
update gen_table
Browse files- gen_table.py +4 -1
gen_table.py
CHANGED
@@ -75,13 +75,16 @@ def BUILD_L1_DF(results, fields):
|
|
75 |
res[k].append(meta[k])
|
76 |
scores, ranks = [], []
|
77 |
for d in fields:
|
78 |
-
res[d].append(item[d]['Overall'])
|
79 |
if d == 'MME':
|
|
|
80 |
scores.append(item[d]['Overall'] / 28)
|
81 |
elif d == 'OCRBench':
|
|
|
82 |
scores.append(item[d]['Final Score'] / 10)
|
83 |
else:
|
|
|
84 |
scores.append(item[d]['Overall'])
|
|
|
85 |
ranks.append(nth_large(item[d]['Overall'], [x[d]['Overall'] for x in results.values()]))
|
86 |
res['Avg Score'].append(round(np.mean(scores), 1))
|
87 |
res['Avg Rank'].append(round(np.mean(ranks), 2))
|
|
|
75 |
res[k].append(meta[k])
|
76 |
scores, ranks = [], []
|
77 |
for d in fields:
|
|
|
78 |
if d == 'MME':
|
79 |
+
res[d].append(item[d]['Overall'])
|
80 |
scores.append(item[d]['Overall'] / 28)
|
81 |
elif d == 'OCRBench':
|
82 |
+
res[d].append(item[d]['Final Score'])
|
83 |
scores.append(item[d]['Final Score'] / 10)
|
84 |
else:
|
85 |
+
res[d].append(item[d]['Overall'])
|
86 |
scores.append(item[d]['Overall'])
|
87 |
+
|
88 |
ranks.append(nth_large(item[d]['Overall'], [x[d]['Overall'] for x in results.values()]))
|
89 |
res['Avg Score'].append(round(np.mean(scores), 1))
|
90 |
res['Avg Rank'].append(round(np.mean(ranks), 2))
|