Repository navigation
Run Dexsuite and RL evaluations as Experiments - #1465
cvolkcvolk wants to merge 2 commits into
Conversation
policy_runner.py is being replaced by experiment_runner.py, and evaluation becomes YAML-only. The Dexsuite Lift pages still showed policy_runner.py commands for the zero-action check and for the RSL-RL checkpoint evaluation. Add one Experiment YAML for each command group: a zero-action Run and an RSL-RL Run that reads the checkpoint from the tutorial's download location. The PhysX, parallel, and locally trained checkpoint variants become runs.<name>.* overrides on the experiment_runner.py command line. The typed YAML only accepts the PhysicsBackend member names, so the pages write PHYSX and NEWTON instead of the lowercase CLI values. Signed-off-by: Clemens Volk <[email protected]>
policy_runner.py is being replaced by experiment_runner.py, and evaluation becomes YAML-only. The lift_object RL evaluation page still used policy_runner.py for single and parallel evaluation and an inline legacy JSON config for the batch evaluation. Add a one-Run Experiment YAML for the checkpoint evaluation; the parallel variant becomes runs.<name>.* overrides. Replace the JSON config with a checked-in YAML that has one Run per checkpoint and shares the environment, policy type, and rollout limit. Both files read the checkpoints of the pre-trained download, so they run as is; the page shows how to point them at a local training run. Signed-off-by: Clemens Volk <[email protected]>
[Medium impact] The PR appears safe to merge; no actionable defects were found. SummaryMoves Dexsuite Lift and reinforcement learning evaluation examples to
No actionable issues were found. Review checks were limited to source inspection; checkpoint evaluations were not run. Acknowledged follow-up: Reviews (1) · Last reviewed commit: "Use Experiment YAMLs in the RL evaluatio..." · Reviewed by Greptile |
🤖 Isaac Lab-Arena Review BotSummaryThis PR moves the Dexsuite Lift and RL evaluation pages from Findings🔵 Improvement: Test Coverage and CI Cost🔵 No test composes the four new YAMLs. A small test next to VerdictShip it |
Update the Franka Lift Object RL evaluation tutorial to run `experiment_runner.py` with two new Experiment YAMLs instead of `policy_runner.py` and an inline JSON config. Replaces the RL part of #1465; its Dexsuite part is obsolete since #1666 removed that workflow. ## Why this change? The page evaluated checkpoints with `policy_runner.py`, which is being deprecated. Its batch evaluation had readers write `eval_config.json` and pass it with `--eval_jobs_config`, and JSON Experiment loading is about to be removed. This is the last docs page that uses a JSON Experiment. ## What changes? - Add `lift_object_rsl_rl_experiment.yaml`, one Run for single and parallel evaluation. Parallel evaluation overrides `num_envs`, `env_spacing` and `num_episodes` on the command line. - Add `lift_object_rsl_rl_checkpoints_experiment.yaml`, one Run per checkpoint, to replace `eval_config.json`. - Both YAMLs read the pre-trained checkpoints from `$MODELS_DIR/lift_object_checkpoint/`, the folder the page downloads to. When `MODELS_DIR` is unset, they fall back to the page's default folder. Readers who trained their own policy override `checkpoint_path`. - The sample outputs show what the documented commands print for the pre-trained download. - The `RslRlActionPolicy` docstring shows a YAML Run instead of a JSON job. ## Validation Locally in the Arena container, with the checkpoints downloaded as the page describes: - Method 1, 20 episodes: success rate 1.0000. - Method 2, 64 envs and 1024 episodes: 1.0000. - Method 3, 1024 episodes per checkpoint: 0.9697 for `model_1000.pt`, 1.0000 for `model_1999.pt`. - Both YAMLs compose with `MODELS_DIR` set to another folder and with it unset, and the `checkpoint_path` override on the page replaces the default path. Method 1 also ran with `MODELS_DIR` set. - The docs build passes with `-W`. The runs were headless; `--viz kit` was not tried. --------- Signed-off-by: Clemens Volk <[email protected]>
Closed: superseded by #1701, which moves the Franka Lift Object RL evaluation tutorial to Experiment YAMLs. The Dexsuite Lift part is obsolete because #1666 removed that workflow.
Update the Dexsuite Lift and Franka Lift Object workflow docs to evaluate with
experiment_runner.pyand four new Experiment YAMLs instead ofpolicy_runner.py.Why this change?
We plan to deprecate
policy_runner.pyin favor ofexperiment_runner.py, which reads each evaluation from an Experiment YAML file. Thedexsuite_liftandreinforcement_learningexample workflow pages ran the zero-action check and the RSL-RL checkpoint evaluations withpolicy_runner.py. The batch evaluation had readers writeeval_config.jsonin the legacy JSON format and pass it with--eval_jobs_config.What changes?
New Experiments under
isaaclab_arena_environments/experiment_configs/reinforcement_learning/, shown withliteralinclude:dexsuite_lift_zero_action_experiment.yaml: the environment check indexsuite_lift/step_1_environment_setup.rst, for Newton and, with an override, PhysX.dexsuite_lift_rsl_rl_experiment.yaml: checkpoint evaluation indexsuite_lift/step_3_evaluation.rst.lift_object_rsl_rl_experiment.yaml: single and parallel checkpoint evaluation inreinforcement_learning/step_3_evaluation.rst.lift_object_rsl_rl_checkpoints_experiment.yaml: the batch evaluation of two checkpoints, which replaceseval_config.jsonwith one Run per checkpoint.environment_builder.presetsmust be writtenPHYSXorNEWTONin an Experiment, because OmegaConf looks up enum members by name; the--presetsflag ofpolicy_runner.pytakes the lower-case valuesphysxandnewton. The docs use the upper-case names. This mismatch is not fixed here.Validation
Locally in the Arena Docker container, at base
7050ecbc9b:load_arena_experiment_from_config_file.dexsuite_lift_zero_action_experiment.yamlran end to end on Newton and on PhysX with a 2-step limit.sphinx-build -b htmlfinishes without warnings, andpre-commitpasses.Follow-up: in
isaaclab_arena/policy/rsl_rl_action_policy.py, theRslRlActionPolicydocstring still shows a legacy JSON config, and the_RslRlInferenceEnvWrapperdocstring still mentionspolicy_runner.py.