openpi icon indicating copy to clipboard operation
openpi copied to clipboard

mobile-aloha dataset problem

Open FanZhang91 opened this issue 1 year ago • 9 comments

Thanks for great job. I want to train mobile-aloha dataset based on this project. But find mobile base information is missing. As shown in the figure below, the dimension corresponding to the “action” field in the picture is 14 instead of 16. What is the reason?

Image

FanZhang91 avatar May 08 '25 11:05 FanZhang91

I later found mobile base information is contained in "base_action" field of hdf5 files.

FanZhang91 avatar May 09 '25 06:05 FanZhang91

@FanZhang91 How does the model use the base velocities for post-training? I looked at the info.json file in the dataset you mentioned, but couldn't find the base velocity tags. Must they not be included in the info.json file for post-training?

mohdammari97 avatar Aug 20 '25 20:08 mohdammari97

@FanZhang91 How does the model use the base velocities for post-training? I looked at the info.json file in the dataset you mentioned, but couldn't find the base velocity tags. Must they not be included in the info.json file for post-training?

Hi, have you solved it? I have the same question, too. I want to know if i should modify the convert_aloha_data_to_lerobot.py file, add the linear and angular velocity into the "motors" list.

meijie-jesse avatar Sep 19 '25 08:09 meijie-jesse

@meijie-jesse So I read the Pi0 paper again and they used 'mobile Trossen' as a naming convention for the mobile aloha setup. I took a look into a dataset of 'mobile trossen' and it indeed contained the velocities in the info.json file. Take a look here: https://huggingface.co/datasets/mrrl-emcnei/trossen_ai_mobile_bimanualPnH/blob/main/meta/info.json

I am not sure if they used that exactly. But maybe they added the velocities through a conversion script to make it similar to the configuration shown in the link. It's the only conclusion that I came to which makes sense.

mohdammari97 avatar Sep 21 '25 12:09 mohdammari97

@meijie-jesse So I read the Pi0 paper again and they used 'mobile Trossen' as a naming convention for the mobile aloha setup. I took a look into a dataset of 'mobile trossen' and it indeed contained the velocities in the info.json file. Take a look here: https://huggingface.co/datasets/mrrl-emcnei/trossen_ai_mobile_bimanualPnH/blob/main/meta/info.json

I am not sure if they used that exactly. But maybe they added the velocities through a conversion script to make it similar to the configuration shown in the link. It's the only conclusion that I came to which makes sense.

@mohdammari97 Thx! I am fine-tuning using the dataset I collected myself on my own modified robot, which has 16 DOF arm and 2 DOF move base (velocities). I tried to use trossen and mobile_trossen for training, and neither of them reported any errors. I was able to successfully get the two kind of checkpoints. I will try to deploy inference later, and if there is any progress, I will update here.

meijie-jesse avatar Sep 21 '25 15:09 meijie-jesse

@meijie-jesse Nice! I'd appreciate it if you provide updates :) How did you record the velocities? Did you save the base velocities under qpos or qvel?

mohdammari97 avatar Sep 21 '25 16:09 mohdammari97

@meijie-jesse Nice! I'd appreciate it if you provide updates :) How did you record the velocities? Did you save the base velocities under qpos or qvel?

@mohdammari97 Yes, I have modified the data collection script of Mobile ALOHA to adapt to my own robot. When training the PI0 , I only modified the convert.py script and did not add a base action. I only added two ARM dimensions (because my robot is 14 DOF+2 gripper, while aloha is 12 DOF+2 gripper).

When I used Mobile_trossen Asset and was able to complete the training smoothly, I guess it was because the extra dimensions in my data happened to align with Mobile_trossen, so there were no errors reported.

But without changing any configuration, I only changed the Asset from Mobile_trossen to Trossen, and the training was successfully completed without any errors. This indicates that PI0 has internally addressed the issue of dimension alignment. Therefore, I need to test whether these two different checkpoints can run and find which one is better.

If you have any ideas, please feel free to share them with me~

meijie-jesse avatar Sep 21 '25 16:09 meijie-jesse

@meijie-jesse Ooh, so you did not use a mobile robot at all? From what I understood from your last comment, is that your robot is static, correct? Because if it is a mobile robot that you move during data collection, you have to include the base velocities.

mohdammari97 avatar Sep 23 '25 12:09 mohdammari97

@meijie-jesse Would it be possible to jump into a quick meeting to discuss this further? my E-Mail address is [email protected]

mohdammari97 avatar Sep 30 '25 12:09 mohdammari97