Integration — Imitation Learning
Train an imitation learning (IL) policy from demonstrations with
robomimic_* algorithms:
- Collect demonstrations with
srb agent collect, or use an existing dataset in the robomimic-compatible HDF5 format. - Train with
srb agent learn --datasetand arobomimic_*algorithm. See the learning reference. - To prefill an integrated reinforcement learning (RL) framework, export
canonical SRB JSONL with
srb dataset export.skrl_sac,skrl_ddpg,skrl_td3, and Dreamer can prefill replay from this format; integrated RL frameworks cannot load Robomimic HDF5 directly.
When to Use Imitation Learning
Use IL alongside RL when reward engineering is difficult, rewards are sparse (for example, assembly, sample collection, or docking), or expert trajectories are available from teleoperation, planners, or prior policies. Demonstrations can reduce exploration, but they do not establish a safe operating envelope; hardware deployment needs separate validation. IL rollouts can collect demonstrations or shape RL curricula, but RL checkpoints cannot warm-start from IL checkpoints because their formats differ.
Available Integrations
robomimic (PyTorch) provides BC (MLP/RNN/Transformer), BCQ, CQL, IQL, TD3-BC, GL, HBC, IRIS, and Diffusion Policy, using a standard HDF5 dataset format.
Data Format
Demonstrations use the robomimic-compatible HDF5 layout:
- Each episode group contains
obs/,next_obs/,actions,rewards,terminated,truncated, anddonesdatasets, plus a per-episodesuccessattribute. - Observation keys use
<group>/<leaf>paths for SRB observation groups, such asstate/<leaf>,proprio/<leaf>,command/<leaf>, andstate_privileged/<leaf>when those groups are present. - Per-episode success flags support collection-time
--success_onlyfiltering.
Datasets from srb agent collect load directly in srb agent learn.
See Also
srb agent learn— train an IL policy- Reinforcement Learning Integration — complementary paradigm