Generating Data with MimicGen#
Given a modest number of source demonstrations, we offer the ability to syntehsize new trajectories with MimicGen.
Installation#
Clone and setup MimicGen under the
experimental/robocasabranch:git clone https://github.com/NVlabs/mimicgen -b experimental/robocasa cd mimicgen pip install -e .
Setup the robomimic dependency:
cd .. git clone https://github.com/ARISE-Initiative/robomimic -b robocasa cd robomimic pip install -e .
Generate data for existing tasks#
We have set up MimicGen for 64/65 existing atomic tasks. Generating demonstration datasets for these tasks is a 3 step process, which we illustrate for the PickPlaceCounterToSink task:
Extract subtask meta data:
python mimicgen/scripts/prepare_src_dataset.py --dataset <hdf5-ds-path>
Generate demonstartions:
python mimicgen/scripts/generate_dataset_multicore.py --source <hdf5-ds-path> --config mimicgen/exps/templates/robocasa/single_stage/kitchen_pick_place/PickPlaceCounterToSink.json
Extract image observations. You can then extract image datasets following the dataset extraction tutorial on this guide.
Set up MimicGen for new tasks#
Please follow the official MimicGen documentation tutorial page.