-
Notifications
You must be signed in to change notification settings - Fork 21
Update safe_eval config to gigaflow-matching evaluation settings #377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -228,36 +228,50 @@ human_replay_num_agents = 16 | |||||
| enabled = True | ||||||
| ; How often to run safe eval (in training epochs). Defaults to render_interval. | ||||||
| interval = 250 | ||||||
| ; Number of agents to run in the eval environment | ||||||
| num_agents = 64 | ||||||
| ; Number of agents to run in the eval environment (Na=50) | ||||||
| num_agents = 50 | ||||||
| ; Number of episodes to collect metrics over | ||||||
| num_episodes = 100 | ||||||
| ; episode length | ||||||
| episode_length = 1000 | ||||||
| ; Episode length: 9000 steps = 600s at dt=0.066 | ||||||
| episode_length = 9000 | ||||||
| ; Map directory and count for safe eval (independent of training maps) | ||||||
| map_dir = "resources/drive/binaries/carla_2D" | ||||||
| num_maps = 8 | ||||||
| min_goal_distance = 0.5 | ||||||
| max_goal_distance = 1000.0 | ||||||
| ; dt=0.066 so 9000 steps = 600s | ||||||
| dt = 0.066 | ||||||
| ; vgoal = 3 m/s | ||||||
|
||||||
| ; vgoal = 3 m/s | |
| ; permissible speed range: [-0.01, 3.0] m/s (v_max = 3 m/s) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,7 +42,18 @@ def generate_safe_eval_ini(safe_eval_config, base_ini_path="pufferlib/config/oce | |
| "reward_conditioning": 1, | ||
| "resample_frequency": 0, | ||
| } | ||
| for key in ["episode_length", "num_agents", "min_goal_distance", "max_goal_distance", "map_dir", "num_maps"]: | ||
| for key in [ | ||
| "episode_length", | ||
| "num_agents", | ||
| "min_goal_distance", | ||
| "max_goal_distance", | ||
| "map_dir", | ||
|
Comment on lines
+45
to
+50
|
||
| "num_maps", | ||
| "goal_radius", | ||
| "dt", | ||
| "min_goal_speed", | ||
| "max_goal_speed", | ||
| ]: | ||
| if key in safe_eval_config: | ||
| env_overrides[key] = safe_eval_config[key] | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment says “9000 steps = 600s at dt=0.066”, but 9000 * 0.066 = 594s. If the intent is a 600s episode, either adjust dt (e.g., 1/15) or episode_length, or update the comment to reflect the actual duration.