[Sync] bump version 0.2.6+local (#1294)

This commit is contained in:
Fengzhe Zhou 2024-07-06 00:44:06 +08:00 committed by GitHub
parent 1d3a26c732
commit a62c613d3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View File

@ -1 +1 @@
__version__ = '0.2.5'
__version__ = '0.2.6'

View File

@ -4,7 +4,6 @@ import argparse
import getpass
import os
import os.path as osp
from copy import deepcopy
from datetime import datetime
from mmengine.config import Config, DictAction
@ -349,7 +348,7 @@ def main():
# For subjective summarizer
if summarizer_cfg.get('function', None):
main_summarizer_cfg = deepcopy(summarizer_cfg)
main_summarizer_cfg = copy.deepcopy(summarizer_cfg)
grouped_datasets = {}
for dataset in cfg.datasets:
prefix = dataset['abbr'].split('_')[0]
@ -361,7 +360,7 @@ def main():
all_grouped_lists.append(grouped_datasets[prefix])
dataset_score_container = []
for dataset in all_grouped_lists:
temp_cfg = deepcopy(cfg)
temp_cfg = copy.deepcopy(cfg)
temp_cfg.datasets = dataset
summarizer_cfg = dict(type=dataset[0]['summarizer']['type'], config=temp_cfg)
summarizer = build_from_cfg(summarizer_cfg)
@ -378,5 +377,7 @@ def main():
summarizer = build_from_cfg(summarizer_cfg)
summarizer.summarize(time_str=cfg_time_str)
if __name__ == '__main__':
main()

View File

@ -4,7 +4,6 @@ import os.path as osp
import re
from datasets import Dataset, DatasetDict
from torch.utils.data import DataLoader
from opencompass.registry import LOAD_DATASET