Motion data¶
This guide shows how to obtain the LAFAN1 and BONES-SEED motions for the Unitree G1, convert them, and pack them into a reference bank that training reads. It is for users preparing data for the first time or adding a bank.
Before you start. Install the Pixi environments (setup).
Conversion needs the isaaclab environment and a local NVIDIA GPU; validation
and packing run in the default environment. Run all commands from the
repository root.
Keep source motions and generated banks outside Git. The repository distributes no motion data; it includes a manifest template.
Overview¶
Dataset |
Clips |
Access |
|---|---|---|
40 |
Public download |
|
129,785 |
Gated; separately licensed by Bones Studio |
Preparing a dataset takes three steps:
Convert the source motions to 50 Hz NPZ clips and a motion manifest with
imitationlab data prepare(LAFAN1, BONES-SEED).Pack the manifest into a packed reference bank, a directory of memory-mapped arrays, with
imitationlab data pack(validate and pack).Validate the bank with
imitationlab data validate, then pass it to the training commands as--data.
A motion manifest is a JSON file that lists the clips of a dataset. Training accepts either a manifest or a packed bank; standard training uses a bank.
License. Conversion replays motions in Isaac Sim, which requires accepting
the
NVIDIA Omniverse License Agreement.
Kit asks on first use in a terminal; for scripts and background jobs, set
OMNI_KIT_ACCEPT_EULA=YES after reading it.
LAFAN1 G1¶
The Unitree retargeting dataset provides 30 Hz G1 CSVs. Download and convert the motions to 50 Hz NPZs with:
pixi run --locked -e isaaclab imitationlab data prepare lafan1 \
--data-root data/lafan1 --batch-size 64
Each Isaac batch converts motions in parallel. Rerun with the same inputs and
options to continue an interrupted conversion. The manifest is written to
data/lafan1/manifests/g1_lafan1_manifest.json; set MANIFEST to it and
continue with validate and pack.
Option |
Effect |
|---|---|
|
Convert an existing CSV directory |
|
Use the already downloaded files under |
|
Override the default NPZ output, |
|
Override the default manifest, |
|
Trim an arms-up alignment pose before conversion |
|
Overwrite existing NPZ files |
Note. Changing frame rates, trims, or inputs requires a fresh output
directory or --overwrite-npz.
BONES-SEED G1 conversion¶
BONES-SEED is proprietary motion data from Bones Studio. Each user needs authorized access to the gated source dataset. Keep the archive, metadata, converted motions, and packed arrays in local or otherwise authorized storage outside Git. Review the license before sharing trained weights, demos, or other results.
Download¶
After obtaining access, download the archive and metadata directly:
RAW=data/bones_seed/raw
pixi run --locked hf download bones-studio/seed \
g1.tar.gz metadata/seed_metadata_v004.csv --repo-type dataset --local-dir "$RAW"
Convert¶
Convert them with the staged pipeline. The convert stage runs Isaac Sim and
needs the same license acceptance as LAFAN1:
WORK=data/bones_seed/converted
pixi run --locked -e isaaclab imitationlab data prepare bones_seed \
--metadata-csv "$RAW/metadata/seed_metadata_v004.csv" \
--archive "$RAW/g1.tar.gz" --work-root "$WORK" --device cuda:0 \
--normalize-workers 8 --anchor-workers 4 \
--max-envs 512 --cell-budget 500000
The training manifest is
$WORK/manifests/g1_bones_seed_sonic_full_manifest.json.
The pipeline applies the SONIC motion filter, records a selection hash, and
converts 120 Hz source motions to 50 Hz by default. You can pass an existing
selection JSON with --selection.
The stages are extract, normalize, convert, anchor, audit, and
manifest; they can run separately with --stages. Normalization and
anchoring use CPU worker processes. Isaac converts length-sorted batches on
the selected local GPU.
Resuming. Rerun with the same selection, rates, and work root to skip
completed stages or clips. Use a separate work root when testing with
--limit or changing source or rate settings.
Temporary files. Isaac writes temporary USD files under $TMPDIR (default
/tmp) during conversion. If /tmp is a small RAM-backed or quota-limited
filesystem, point TMPDIR at a directory on disk before running the pipeline.
Distribution¶
ImitationLab publishes this conversion pipeline, not converted BONES-SEED data. Run the pipeline from your own licensed copy.
The published results used the packed bank
bones_seed_sonic_full_129785@e714bbff (129,785 motions, 47,491,234
transitions). The bank’s reference_arrays_manifest.json records this
identity and the per-motion layout. Its SHA-256 also covers the absolute
source paths, so a bank rebuilt in another directory has a different manifest
hash. To check that two copies hold the same motions, compare their content
fingerprints (see validate and pack), which ignore paths
and persist IDs.
To share a converted bank only with users covered by the same license,
python -m imitationlab.data_tools.reference_arrays.publish push uploads it
to a Hugging Face dataset you control, and publish fetch downloads and
validates it. push uploads privately by default, refuses to change an
existing repo’s visibility, and refuses a public upload of a bank labeled
BONES-SEED.
Validate and pack¶
Validate a manifest¶
Check that a manifest resolves and its clips have usable frame rates, array shapes, and frame ranges:
pixi run --locked imitationlab data validate "$MANIFEST"
Pack a reference bank¶
For packed training, use an NPZ manifest with modern qpos, qvel, and named
bodies and joints. Bake any trims into the NPZ files before packing.
The persist ID is the bank’s identity; the example derives it from the manifest hash.
PERSIST_ID="g1@$(sha256sum "$MANIFEST" | cut -c1-12)"
ARRAYS="data/reference_arrays/${PERSIST_ID}"
pixi run --locked imitationlab data pack "$MANIFEST" \
--output-dir "$ARRAYS" --persist-id "$PERSIST_ID" \
--anchor-body pelvis --workers 4 --verify-load \
--body-names pelvis left_hip_roll_link left_knee_link left_ankle_roll_link \
right_hip_roll_link right_knee_link right_ankle_roll_link torso_link \
left_shoulder_roll_link left_elbow_link left_wrist_yaw_link \
right_shoulder_roll_link right_elbow_link right_wrist_yaw_link
For BONES-SEED, add --dataset-name bones_seed_sonic_full. Keep the persist
ID with the bank.
Validate a bank¶
Validate a completed bank’s identity, sidecar, trajectory spans, file sizes, and sampled values before using it:
pixi run --locked imitationlab data validate "$ARRAYS" --persist-id "$PERSIST_ID"
Option |
Effect |
|---|---|
|
Check the source manifest hash and compare sampled values against the NPZs |
|
Check all array values for non-finite entries |
|
Print a SHA-256 of the bank’s layout and array bytes that does not depend on where it was built or its persist ID |
|
Require a given fingerprint |
Note. The fingerprint matches only for byte-identical arrays; converting on different hardware or software versions can change floating-point values.
Next steps¶
Check the installation on the new bank with the smoke test, which runs one PPO iteration:
BANK="$ARRAYS" pixi run -e isaaclab smoke-g1
Use the validated manifest or bank with the training commands in the training guide. The data tools package documents the package’s Python API.