Step 3: Generate the Dataset#

With annotated source demonstrations in hand, DexMimicGen can synthesize new ones. For each attempt, the scene is randomized, a source segment is selected per arm for each subtask, and each arm’s end-effector trajectory is transformed to the new object poses and replayed. By default both arms reuse the source demonstration chosen by the first arm, keeping their motions mutually consistent.

GR-1 parallel data generation

The GR-1 pick-and-place task data generation.#

G1 pick-and-place task data generation

The G1 parallel data generation.#

The commands below use the pre-annotated source dataset that ships with the repository. If you ran Steps 1–2, point --input_file at your own dataset_gr1_annotated.hdf5 / dataset_g1_annotated.hdf5 instead.

Small-Scale Generation#

Start with a small run in a Kit window (--viz kit) to sanity-check the setup:

python scripts/generate_dataset.py \
   --env_name Isaac-PickPlace-GR1T2-Abs-v0 \
   --viz kit \
   --device cpu \
   --num_envs 5 \
   --alg dexmimicgen \
   --generation_num_trials 10 \
   --task_descriptor autodata_examples/tasks/gr1_pick_place.yaml \
   --embodiment autodata_examples/embodiments/gr1_ik_abs.yaml \
   --input_file ./datasets/annotated_datasets/dataset_gr1_annotated.hdf5 \
   --output_file ./datasets/generated_dataset_dexmimicgen_gr1_small.hdf5

You will see the humanoid repeatedly attempt the task under new object placements. Failed attempts are normal and are not exported.

While it runs, the console reports the number of source episodes loaded into the pool and a running tally after every attempt to generate a new demonstration:

Loaded 5 source episodes into the datagen pool

**************************************************
5/10 (50.0%) successful demos generated
**************************************************

The script shuts down automatically after 10 successful demonstrations are generated.

Full-Scale Generation#

For dataset-scale generation, run headless (--viz none) with parallel environments:

python scripts/generate_dataset.py \
   --env_name Isaac-PickPlace-GR1T2-Abs-v0 \
   --viz none \
   --device cpu \
   --num_envs 50 \
   --alg dexmimicgen \
   --generation_num_trials 1000 \
   --task_descriptor autodata_examples/tasks/gr1_pick_place.yaml \
   --embodiment autodata_examples/embodiments/gr1_ik_abs.yaml \
   --input_file ./datasets/annotated_datasets/dataset_gr1_annotated.hdf5 \
   --output_file ./datasets/generated_dataset_dexmimicgen_gr1.hdf5

Progress is printed after every attempt (successful demonstrations, attempts, and the running success rate).

Note

Expected data generation success rate and time

  • Data generation success rate: ~70%

  • Data generation time: ~40 minutes

Numbers are based on using an RTX PRO 6000 Blackwell GPU with the provided command.

Key Parameters#

Parameter

Description

--alg

Generation algorithm: mimicgen, dexmimicgen, or skillgen. Use dexmimicgen for these two-arm humanoids.

--env_name

Env id; if omitted, read from the source dataset’s metadata.

--generation_num_trials

Overrides the task descriptor’s generation_policy.num_trials.

--num_envs

Number of parallel environments, each generating independently.

--viz

Visualization mode (kit opens a Kit window; none runs headless).

The descriptor’s generation_policy.select_src_per_arm (false by default) controls whether each arm may draw from a different source demonstration; keeping it false keeps the arms coordinated without subtask timing constraints. See Task Descriptors for the full set of per-arm generation knobs.

Continue to Step 4: Validate the Generated Dataset.