mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
fix
This commit is contained in:
parent
2cd27813ef
commit
31cbd1c795
@ -265,9 +265,10 @@ def main():
|
|||||||
else:
|
else:
|
||||||
dir_time_str = args.reuse
|
dir_time_str = args.reuse
|
||||||
logger.info(f'Reusing experiements from {dir_time_str}')
|
logger.info(f'Reusing experiements from {dir_time_str}')
|
||||||
elif args.mode in ['eval', 'viz']:
|
elif args.mode in ['eval', 'viz'] and not args.read_from_station:
|
||||||
raise ValueError('You must specify -r or --reuse when running in eval '
|
raise ValueError(
|
||||||
'or viz mode!')
|
'You must specify -r or --reuse, or you have to specify --read-from-station and --station-path when running in eval '
|
||||||
|
'or viz mode!')
|
||||||
|
|
||||||
# update "actual" work_dir
|
# update "actual" work_dir
|
||||||
cfg['work_dir'] = osp.join(cfg.work_dir, dir_time_str)
|
cfg['work_dir'] = osp.join(cfg.work_dir, dir_time_str)
|
||||||
|
Loading…
Reference in New Issue
Block a user