From 8ab7c33eee10fc46e39b2c55bcdc2e0c7aaf1f32 Mon Sep 17 00:00:00 2001 From: MingzheYang Date: Tue, 27 Jan 2026 18:49:51 +0800 Subject: [PATCH] update2 --- example/run_all.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/example/run_all.py b/example/run_all.py index 7cf530a..e0d1ed6 100644 --- a/example/run_all.py +++ b/example/run_all.py @@ -39,10 +39,16 @@ def main(): cfg = json.load(f) # Resolve config path without duplicating base_dir on Windows when user passes example/config.json - if config_path.exists(): + if config_path.is_absolute(): config_path = resolve_path(config_path.parent, config_path) else: - config_path = resolve_path(base_dir, config_path) + candidate = base_dir / config_path + if candidate.exists(): + config_path = resolve_path(candidate.parent, candidate) + elif config_path.exists(): + config_path = resolve_path(config_path.parent, config_path) + else: + config_path = resolve_path(base_dir, config_path) timesteps = cfg.get("timesteps", 200) seq_len = cfg.get("sample_seq_len", cfg.get("seq_len", 64)) batch_size = cfg.get("sample_batch_size", cfg.get("batch_size", 2))