Instructions to use Low101/diffusion_bsp_parcel_b_40k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LeRobot
How to use Low101/diffusion_bsp_parcel_b_40k with LeRobot:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
|
Download README.md from Low101/diffusion_bsp_parcel_b_40k: direct link, hf CLI and curl.
- Browser
- Download file 3.44 kB
-
https://huggingface.co/Low101/diffusion_bsp_parcel_b_40k/resolve/main/README.md
- Command line
-
hf download hf://Low101/diffusion_bsp_parcel_b_40k/README.md
-
curl -L -o README.md https://huggingface.co/Low101/diffusion_bsp_parcel_b_40k/resolve/main/README.md
3.44 kB
| license: apache-2.0 | |
| library_name: lerobot | |
| pipeline_tag: robotics | |
| tags: | |
| - lerobot | |
| - robotics | |
| - so101 | |
| - imitation-learning | |
| - parcel-sorting | |
| - diffusion | |
| - b-spline-policy | |
| base_model: Low101/diffusion_parcel_b_80k | |
| # diffusion_bsp_parcel_b_40k | |
| Diffusion-BSP: Diffusion Policy that predicts B-spline curves, so the arm can run faster than the demos. | |
| This model is part of the project **Parcel sorting with a LeRobot | |
| SO-101 arm**. The code and the full results are in the | |
| [GitHub repository](https://github.com/TimeisGold5168/Parcel_task_VLA_s0_101_arm). The project page is | |
| [https://timeisgold5168.github.io/](https://timeisgold5168.github.io/). | |
| ## Task | |
| One SO-101 arm picks a parcel from a heap and places it in a flip zone. | |
| If the label is up, the arm flips the parcel. Then it pushes the parcel | |
| off the table, label down. One parcel is one episode. | |
| ## Training | |
| | Item | Value | | |
| |---|---| | |
| | Policy | Diffusion Policy with B-spline outputs (B-spline Policy, arXiv:2607.09648) | | |
| | Init | `diffusion_parcel_b_80k` | | |
| | Data | dataset B: 99 demos, 73,444 frames | | |
| | Training | 40k steps, batch 16, 5.1 h | | |
| | Inference | DDIM, 5 steps on the robot | | |
| | Checkpoint | step 40k | | |
| | LeRobot | commit `64b23178` | | |
| | GPU | one laptop GPU, 6 GB | | |
| ## Inputs and outputs | |
| - `observation.images.top`: 848×480, above the tray, 30 fps. | |
| - `observation.images.wrist`: 640×480, on the gripper, 30 fps. | |
| - `observation.images.side`: 640×480, beside the table, 30 fps. | |
| - `observation.state`: the 6 joint positions of the SO-101 follower. | |
| - Task text: "sort the parcel so the label faces down and push it off the table". | |
| - Output: joint targets of the 6 joints. | |
| This model predicts B-spline segments, not action chunks: 16 rows of a knot time and the control points of the 6 joints. It needs the B-spline executor of the repository (`parcel_vla/robot/run_bsp_parcel.py`); `lerobot-rollout` cannot run it. `bsp.json` holds the spline settings. The cameras have different sizes. Diffusion stacks the images before the resize, so the repository resizes each camera first (`patch_diffusion()` in `parcel_vla/training/train_mixed.py`). Plain `lerobot-rollout` does not do this. | |
| ## Results | |
| - 5-parcel heap at 1.5× speed: 5/5 parcels cleared in 86 s, 3 with no help (one run). | |
| - Plan time on the robot: 87 ms, and 18 ms with a TensorRT FP16 export of the repository. | |
| ## Use | |
| NOTE: This model learned one scene: my tray, my camera poses, my | |
| lighting and my self-made parcels. On another setup it will likely not | |
| work as it is. Use it to test the code, or as a start point to | |
| fine-tune on your own demos. | |
| 1. Install LeRobot at commit `64b23178` and the repository. See the | |
| [installation steps](https://github.com/TimeisGold5168/Parcel_task_VLA_s0_101_arm#installation). | |
| 2. Download the model into the checkpoint layout of the scripts: | |
| ```bash | |
| hf download Low101/diffusion_bsp_parcel_b_40k --local-dir outputs/train/diffusion_bsp_parcel_b_40k/checkpoints/last/pretrained_model | |
| ``` | |
| 3. Put the arm at the home pose, and build the heap. | |
| 4. Run the model (model name `diffusion_bsp_b` in the scripts): | |
| ```bash | |
| python -m parcel_vla.robot.run_bsp_parcel --model diffusion_bsp_b --level easy \ | |
| --speed 1.5 --ddim-steps 5 --blend 0.2 --max-step 6 | |
| ``` | |
| ## Limits | |
| - One scene, one operator and a small dataset. | |
| - Most robot tests have few trials and one heap for each model. They | |
| give an indication, not a controlled comparison. | |