-
Notifications
You must be signed in to change notification settings - Fork 389
Add ManiSkill to LeRobot dataset converter #1174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Converts .npz files to LeRobot format - Supports RGB observations, actions, joint states - Creates proper directory structure and metadata - Generates MP4 videos from RGB frames Closes haosulab#545
|
npz files? We don't have those kind? thanks for the PR though! Would be great to have this integration so people can use Lerobot built in algorithms on maniskill sim and data |
|
@StoneT2000 Thanks for the feedback! I initially converted HDF5 → NPZ for convenience during development, but I can update the converter to work directly with HDF5 files. I can update the PR accordingly though. The core conversion logic stays the same, just need to change the data loading part |
|
Yeah we would just need something for the default .h5 files generated by our RecordEpisode wrapper. Feel free to request a review from me once done. |
Hi @dancher00, Just checking in on this PR. This converter looks incredibly useful! Is the updated version that works directly with HDF5 (.h5) files available somewhere? I'm eager to try it out for my project. Thanks for the great contribution! |
|
@StoneT2000 Apologies for the long delay! I've updated the converter to work with HDF5 files as you requested. |
|
@sijitu666 Sorry for the delay! Thanks for checking in on this - really appreciate the interest. The HDF5 converter is ready now. I'm currently using it to train policies for the SO-101 arm and it's working well. Check the updated code and README in this PR for usage instructions. Let me know if you have any questions! |
|
Thank you @dancher00 A few requests: Can this code be moved to the same folder as our trajectory replay tool? https://github.com/haosulab/ManiSkill/tree/main/mani_skill/trajectory And delete the tools folder you made. Moreover, we should move the (excellent) readme to the docs folder. We should have a page on our docs discussing trajectory replay, just add a section for lerobot format exports and add your content there. Lastly it would be great if you could share a sample training command to test the lerobot format exports. |
|
Hi @StoneT2000 ! I've added docs to ManiSkill/docs/source/user_guide/datasets/replay.md Here is quick pipline for test 1. Download demo data2. Replay trajectory with RGB observations3. Convert to LeRobot formatYou will get this - ManiSkill Lerobot Dataset 4. Training Test |
|
@StoneT2000 Hi! Just a friendly ping on this PR when you have a moment. Thanks! |
|
Sorry, lot of stuff happening recently! Promise to review and test today, thanks again! |
Converts .npz files to LeRobot format
Closes #545