Feature/add multitask diffusion transformer policy implementation #2545
+2,082
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this does
This PR adds support for an implementation of Multitask Diffusion Transformer Policy, which was shown in a demo of Boston Dynamics' Atlas robot performing whole-body manipulation tasks
I wanted to dive into the research of this method, and build an open-source implementation for the community to leverage and build from.
I will simultaneously be releasing a blog post that includes the details of this work as this gets merged in! (Note: the current blog post link is broken until being released)
How it was tested
test_multi_task_dit_policy.pyto validate any install and import errorsHow to checkout & try? (for the reviewer)
Run the test script:
Train a policy:
lerobot-train \ --policy.type=multi_task_dit \ --dataset.repo_id={{your_dataset_name}} \ --dataset.root={{your/dataset/path}} \ --output_dir=outputs/train/multi_task_dit \ --job_name=multi_task_dit_training_test \ --policy.device=cuda \ --batch_size=16 \ --steps=10000 \ --save_freq=1000 \ --wandb.enable=true \ --policy.repo_id=YOUR_HF_USERNAME/multi_task_dit_policy_test