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:
|
||||
dir_time_str = args.reuse
|
||||
logger.info(f'Reusing experiements from {dir_time_str}')
|
||||
elif args.mode in ['eval', 'viz']:
|
||||
raise ValueError('You must specify -r or --reuse when running in eval '
|
||||
'or viz mode!')
|
||||
elif args.mode in ['eval', 'viz'] and not args.read_from_station:
|
||||
raise ValueError(
|
||||
'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
|
||||
cfg['work_dir'] = osp.join(cfg.work_dir, dir_time_str)
|
||||
|
Loading…
Reference in New Issue
Block a user