Low101 commited on
Commit
7574f4a
·
verified ·
1 Parent(s): 42707e0

Add the model card

Browse files
Files changed (1) hide show
  1. README.md +84 -0
README.md ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: lerobot
4
+ pipeline_tag: robotics
5
+ tags:
6
+ - lerobot
7
+ - robotics
8
+ - so101
9
+ - imitation-learning
10
+ - parcel-sorting
11
+ - diffusion
12
+ ---
13
+
14
+ # diffusion_parcel_b_80k
15
+
16
+ Diffusion Policy, trained from scratch on 99 pick-and-place demos (dataset B).
17
+
18
+ This model is part of the project **Parcel sorting with a LeRobot
19
+ SO-101 arm**. The code and the full results are in the
20
+ [GitHub repository](https://github.com/TimeisGold5168/Parcel_task_VLA_s0_101_arm). The project page is
21
+ [https://timeisgold5168.github.io/](https://timeisgold5168.github.io/).
22
+
23
+ ## Task
24
+
25
+ One SO-101 arm picks a parcel from a heap and places it in a flip zone.
26
+ If the label is up, the arm flips the parcel. Then it pushes the parcel
27
+ off the table, label down. One parcel is one episode.
28
+
29
+ ## Training
30
+
31
+ | Item | Value |
32
+ |---|---|
33
+ | Policy | Diffusion Policy, 1D U-Net (256, 512, 1024), 89M parameters |
34
+ | Init | from scratch |
35
+ | Data | dataset B: 99 demos, 73,444 frames |
36
+ | Training | 80k steps, batch 16, AMP, 9.4 h |
37
+ | Inference | DDIM, 10 steps |
38
+ | Checkpoint | step 80k |
39
+ | LeRobot | commit `64b23178` |
40
+ | GPU | one laptop GPU, 6 GB |
41
+
42
+ ## Inputs and outputs
43
+
44
+ - `observation.images.top`: 848×480, above the tray, 30 fps.
45
+ - `observation.images.wrist`: 640×480, on the gripper, 30 fps.
46
+ - `observation.images.side`: 640×480, beside the table, 30 fps.
47
+ - `observation.state`: the 6 joint positions of the SO-101 follower.
48
+ - Task text: "sort the parcel so the label faces down and push it off the table".
49
+ - Output: joint targets of the 6 joints.
50
+
51
+ 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.
52
+
53
+ ## Results
54
+
55
+ - Offline action error on training episodes (5 arm joints, next 1 s): 2.02°.
56
+ - Its B-spline version, `diffusion_bsp_parcel_b_40k`, gave the best robot runs.
57
+
58
+ ## Use
59
+
60
+ NOTE: This model learned one scene: my tray, my camera poses, my
61
+ lighting and my self-made parcels. On another setup it will likely not
62
+ work as it is. Use it to test the code, or as a start point to
63
+ fine-tune on your own demos.
64
+
65
+ 1. Install LeRobot at commit `64b23178` and the repository. See the
66
+ [installation steps](https://github.com/TimeisGold5168/Parcel_task_VLA_s0_101_arm#installation).
67
+ 2. Download the model into the checkpoint layout of the scripts:
68
+
69
+ ```bash
70
+ hf download Low101/diffusion_parcel_b_80k --local-dir outputs/train/diffusion_parcel_b_80k/checkpoints/last/pretrained_model
71
+ ```
72
+
73
+ 3. Put the arm at the home pose, and build the heap.
74
+ 4. Run the model (model name `diffusion_b` in the scripts):
75
+
76
+ ```bash
77
+ bash parcel_vla/robot/run_parcel.sh diffusion_b
78
+ ```
79
+
80
+ ## Limits
81
+
82
+ - One scene, one operator and a small dataset.
83
+ - Most robot tests have few trials and one heap for each model. They
84
+ give an indication, not a controlled comparison.