Skip to content

Comments

Update training graphs to 2x2 layout with speed tracking tile#72

Merged
kuds merged 2 commits intomainfrom
claude/add-speed-tracking-graph-Z1JD5
Feb 22, 2026
Merged

Update training graphs to 2x2 layout with speed tracking tile#72
kuds merged 2 commits intomainfrom
claude/add-speed-tracking-graph-Z1JD5

Conversation

@kuds
Copy link
Owner

@kuds kuds commented Feb 22, 2026

This pull request updates the notebooks/brachiosaurus_training.ipynb notebook to improve reproducibility and streamline the process for recording videos and plotting training curves during curriculum training. The changes ensure that vector normalization files are consistently passed when recording stage videos and that training curves are automatically updated and saved after each stage.

Enhancements to video recording and training curve plotting:

  • Updated all record_stage_video calls to include the vecnorm_path parameter, ensuring correct normalization is used for each stage. [1] [2] [3] [4]
  • After recording each stage video, the notebook now appends the completed stage to completed_stages and calls plot_training_curves to save updated training curves, improving workflow automation. [1] [2] [3]
  • Replaced the manual plotting code and the plot_training_curve function with a single call to plot_training_curves, simplifying the code and ensuring consistency.

These changes make the notebook easier to use and maintain, reducing manual steps and potential errors when visualizing training progress.

Change plot_training_curves from 1x3 to 2x2 grid across all three
species notebooks. The new layout shows Eval Reward, Episode Length,
a species-specific diagnostic (Tilt Angle for velociraptor, Pelvis
Height for T-Rex and brachiosaurus), and Forward Velocity (Speed).

For T-Rex and brachiosaurus, add diagnostics.npz persistence to
DiagnosticsCallback (log_dir parameter, _save_diagnostics method,
per-rollout history tracking) so forward_vel and other INFO_KEYS
are available for plotting. Also add completed_stages accumulator
and incremental plot_training_curves calls after each stage.

https://claude.ai/code/session_01XsJBwgKtKLsS36FBw9ZP4o
Bring both notebooks to full parity with velociraptor's logging and
diagnostics infrastructure:

- DiagnosticsCallback: add termination reason tracking (Counter),
  correct species-specific REWARD_KEYS and INFO_KEYS to match what
  each environment actually emits
- train_stage: replace evaluate_policy with evaluate_with_forward_vel,
  add curriculum gating (reward + episode length + forward velocity
  thresholds), add write_stage_summary per-stage text output, enrich
  stage_results dict with episode length, forward vel, sim_dt, gate info
- make_env / create_vec_env: add log_dir parameter for Monitor file output
- record_stage_video: add vecnorm_path for normalized obs during recording
- plot_training_curves: add curriculum threshold dashed lines, switch
  bottom-left panel from Pelvis Height to Tilt Angle (now tracked)
- write_training_summary / save_results_json: include episode length,
  forward velocity, and sim time in output
- Stage cells: pass vecnorm_path to record_stage_video
- Section 10 video loop: pass vecnorm_path per stage

https://claude.ai/code/session_01XsJBwgKtKLsS36FBw9ZP4o
@kuds kuds merged commit 7b74755 into main Feb 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants