How hybridrobotics/supermimic works
SuperMimic trains a humanoid motion-tracking policy through a differentiable learned world model, with generalized- and maximal-coordinate representations. The main workflow is task configuration and simulated data collection, followed by world-model and policy learning, checkpoint export, and playback. The graph preserves the documented training and playback capabilities, multi-task goals, simulation context, and representation-specific kinematics. Some implementation details are unsampled; edges are limited to relationships shown in excerpts, the source index, or the README.
Main entry points: supermimic_runner.py Training runner · representations.py State representations · world_model_env.py Simulation environment · play.py Playback CLI
Components 21
Training and playback
- Training CLI
src/supermimic/scripts/train.py - Playback CLI
src/supermimic/scripts/play.py - Training runner
src/supermimic/runners/supermimic_runner.py - Playback viewers
src/supermimic/scripts/viewers.py
Tasks and simulation
- Environment configs
src/supermimic/tasks/env_cfgs.py - Task specifications
src/supermimic/tasks/task_spec.py - Simulation context
src/supermimic/sim_context.py - mjlab simulator
- Simulation environment
src/supermimic/envs/world_model_env.py
World model and learning
- Replay buffer
src/supermimic/replay_buffer.py - Dynamics model
src/supermimic/models.py - World-model learner
src/supermimic/learners/wm_learner.py - Policy learner
src/supermimic/learners/policy_learner.py - Learning utilities
src/supermimic/learners/learner_utils.py
Motion representations
- State representations
src/supermimic/representations.py - Analytic inverse kinematics
src/supermimic/utils/analytic_ik.py - Coordinate helpers
src/supermimic/utils/maxcoord_helpers.py
Export and tools
- Model exporter
src/supermimic/runners/exporter.py - W&B artifacts
src/supermimic/utils/wandb_artifacts.py
Other components
- Engineer
- Weights & Biases
Connections 30
- Engineer → Training CLI: starts training
README.md - Training CLI → Training runner: launches
src/supermimic/scripts/train.py - Training runner → Environment configs: configures
src/supermimic/runners/supermimic_runner.py - Training runner → Task specifications: uses task specs
src/supermimic/runners/supermimic_runner.py - Environment configs → State representations: selects representation
src/supermimic/tasks/env_cfgs.py - Task specifications → State representations: defines goals for
src/supermimic/tasks/task_spec.py - Training runner → Simulation context: builds context
src/supermimic/runners/supermimic_runner.py - State representations → Simulation context: binds context
src/supermimic/representations.py - Training runner → mjlab simulator: collects rollouts
README.md - Training runner → Simulation environment: steps environment
src/supermimic/runners/supermimic_runner.py - Training runner → Replay buffer: stores transitions
src/supermimic/runners/supermimic_runner.py - Training runner → World-model learner: trains dynamics
src/supermimic/runners/supermimic_runner.py - World-model learner → Dynamics model: optimizes
src/supermimic/learners/wm_learner.py - World-model learner → Learning utilities: uses
src/supermimic/learners/wm_learner.py - Training runner → Policy learner: trains policy
src/supermimic/runners/supermimic_runner.py - Policy learner → Simulation environment: rolls out in
src/supermimic/learners/policy_learner.py - Policy learner → Learning utilities: uses
src/supermimic/learners/policy_learner.py - Simulation environment → Dynamics model: predicts with
src/supermimic/envs/world_model_env.py - Simulation environment → State representations: transforms state
src/supermimic/envs/world_model_env.py - Simulation environment → Replay buffer: samples batches
src/supermimic/envs/world_model_env.py - State representations → Analytic inverse kinematics: uses
src/supermimic/representations.py - State representations → Coordinate helpers: uses
src/supermimic/representations.py - Training runner → Model exporter: exports models
src/supermimic/runners/supermimic_runner.py - Training runner → W&B artifacts: logs checkpoints
src/supermimic/runners/supermimic_runner.py - W&B artifacts → Weights & Biases: uploads artifacts
src/supermimic/utils/wandb_artifacts.py - Engineer → Playback CLI: starts playback
README.md - Playback CLI → Training runner: loads run config
src/supermimic/scripts/play.py - Playback CLI → W&B artifacts: downloads checkpoint
src/supermimic/scripts/play.py - Playback CLI → Playback viewers: opens viewer
src/supermimic/scripts/play.py - Playback viewers → State representations: renders state
src/supermimic/scripts/viewers.py