mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
[Fix] Fix Subjective summarizer order error (#1767)
* fix pip version * fix pip version * fix order error
This commit is contained in:
parent
d593bfeac8
commit
38dba9919b
@ -4,6 +4,7 @@ import functools
|
||||
import getpass
|
||||
import math
|
||||
import os.path as osp
|
||||
from collections import OrderedDict
|
||||
from datetime import datetime
|
||||
from typing import Any, Dict, List, Optional
|
||||
|
||||
@ -110,6 +111,7 @@ class DefaultSubjectiveSummarizer:
|
||||
if not osp.exists(filepath):
|
||||
continue
|
||||
result = mmengine.load(filepath)
|
||||
result = OrderedDict(sorted(result.items()))
|
||||
result.pop('details', None)
|
||||
if idx == 0:
|
||||
raw_results[model_abbr][dataset_abbr] = result
|
||||
|
Loading…
Reference in New Issue
Block a user