环境代码优化

This commit is contained in:
2026-02-04 20:20:13 +08:00
parent 03dee0205a
commit 95cc78d940
10 changed files with 296 additions and 174 deletions

View File

@@ -177,6 +177,9 @@ def _run_policy(args):
continue
print(f"Scenario loaded. Controlled agents: {len(obs_dict)}")
if len(obs_dict) == 0:
print(f"Scenario {i} has no controlled agents (all filtered out). Skipping.")
continue
step_count = 0
episode_reward = 0.0