From 31cbd1c79583d07996930528db1126331553d8b8 Mon Sep 17 00:00:00 2001 From: Myhs-phz Date: Thu, 6 Mar 2025 08:09:45 +0000 Subject: [PATCH] fix --- opencompass/cli/main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/opencompass/cli/main.py b/opencompass/cli/main.py index d3fbc98a..d99749a9 100644 --- a/opencompass/cli/main.py +++ b/opencompass/cli/main.py @@ -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)