fix(actpred): 训练时 action stats 完整路径传给 val_ds,checkpoint 存裸文件名
normalize_actions 默认改为 True 后暴露的潜伏 bug:stats 保存到 checkpoint_dir 后,cfg 只留裸文件名,val_ds 按 cwd 解析导致 FileNotFoundError。现改为验证集用完整路径构建,checkpoint 配置 存裸文件名(推理端按 checkpoint 目录解析)。 同步修正 test_warn_init_from_mismatch 对默认值的隐式依赖。
This commit is contained in:
1 parent
af0ff56848
commit
7ec8c9d0e9
2 files changed
+9
-2
No files matched your search
@@ -666,6 +666,8 @@ class TestParseCheckpointConfig(unittest.TestCase):
|
||||
"""--init-from 兼容性警告:normalize 或 action_dim 不一致时提示"""
|
||||
from config import warn_init_from_mismatch
|
||||
cfg = Config()
|
||||
# 显式设定当前运行的 normalize 值,不依赖默认值(默认已改为 True)
|
||||
cfg.data.normalize_actions = False
|
||||
init_cfg = {
|
||||
"data": {"normalize_actions": True, "action_dim": 12},
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user