Harley-ml commited on
Commit
791cfd2
·
verified ·
1 Parent(s): 8b5297d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +71 -1
README.md CHANGED
@@ -25,4 +25,74 @@ Mr. Balance is a plate, and his only goal is to balance whatever object is place
25
  width="35%">
26
  </video>
27
 
28
- Mr. Balance hates when objects fall, so he tries to keep them balanced.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  width="35%">
26
  </video>
27
 
28
+ Mr. Balance hates when objects fall, so he tries to keep them balanced.
29
+
30
+ ## Model Architecture
31
+
32
+ * Base Architecture: `MrBalanceMLPForRL`
33
+ * Observation Size: `64`
34
+ * Hidden Size: `128` (first, second and third layer)
35
+ * Bottleneck Size: `64` (last layer)
36
+ * Layers: `4`
37
+ * Action Space: `2`
38
+
39
+ Mr. Balance uses a shared Actor-Critic MLP designed for continuous-control reinforcement learning. The 64-dimensional observation vector is passed through the four layers with widths of 128 for the first 3 layers and 64 for the last one, using SiLU activations between each of them. The resulting 64-dimensional bottleneck representation is shared by both the actor and critic. The actor produces two control outputs corresponding to the plate's roll and pitch axes, using a Gaussian policy with learned action standard deviations and Tanh squashing to constrain actions to [-1, 1]. The critic uses the same representation to estimate the scalar state value V(s). This shared architecture keeps the policy net small while allowing it to combine object position, velocity, orientation, plate state, and object-property stuff into a combined control representation.
40
+
41
+ ## Training Configuration
42
+
43
+ * Number of Environments: `8`
44
+ * Rollout Steps: `512`
45
+ * PPO Epochs: `6`
46
+ * Minibatch Size: `2048`
47
+ * Gamma: `0.99`
48
+ * GAE Lambda: `0.95`
49
+ * Clip Coefficient: `0.20`
50
+ * Value Coefficient: `0.50`
51
+ * Entropy Coefficient: `0.005`
52
+ * Maximum Gradient Norm: `0.50`
53
+ * Learning Rate: `3e-4`
54
+ * Adam Epsilon: `1e-5`
55
+ * Anneal Learning Rate: `true`
56
+ * Number of Episodes: `12756`
57
+ * Maximum Episode Steps: `10000`
58
+
59
+ ## Training Objects
60
+
61
+ - Sphere
62
+ - Egg
63
+ - Heavy Ball
64
+
65
+ ## Training Results
66
+
67
+ | Object | Reward Mean | Len Mean | Survival % | Tracking Err |
68
+ | ---------- | ----------: | -------: | ---------: | -----------: |
69
+ | sphere | 24,398.48 | 10,000.0 | 100.0% | 0.0205m |
70
+ | egg | 23,240.42 | 10,000.0 | 100.0% | 0.0458m |
71
+ | heavy_ball | 24,310.68 | 10,000.0 | 100.0% | 0.0401m |
72
+
73
+ Mr. Balance excels at balancing all the objects he was trained on, but does he generalize to other objects?
74
+
75
+ | Object | Reward Mean | Len Mean | Survival % | Tracking Err |
76
+ | --------------- | ----------: | -------: | ---------: | -----------: |
77
+ | sphere | 24,398.48 | 10,000.0 | 100.0% | 0.0205m |
78
+ | disk | 21,191.56 | 10,000.0 | 100.0% | 0.1362m |
79
+ | egg | 23,240.42 | 10,000.0 | 100.0% | 0.0458m |
80
+ | cup | 21,702.17 | 10,000.0 | 100.0% | 0.1242m |
81
+ | coin | 20,973.76 | 10,000.0 | 100.0% | 0.1428m |
82
+ | stick | 13,601.42 | 8,477.4 | 80.0% | 0.3399m |
83
+ | tall | 22,265.77 | 10,000.0 | 100.0% | 0.1077m |
84
+ | triangle | 18,794.99 | 10,000.0 | 100.0% | 0.2181m |
85
+ | block | 21,489.38 | 10,000.0 | 100.0% | 0.1316m |
86
+ | puck | 21,265.33 | 10,000.0 | 100.0% | 0.1361m |
87
+ | cone | 18,327.38 | 10,000.0 | 100.0% | 0.2316m |
88
+ | capsule | 22,302.92 | 10,000.0 | 100.0% | 0.1097m |
89
+ | wedge | 18,921.33 | 10,000.0 | 100.0% | 0.2148m |
90
+ | tetra | 18,838.96 | 10,000.0 | 100.0% | 0.2165m |
91
+ | flat_bar | 20,550.93 | 10,000.0 | 100.0% | 0.1526m |
92
+ | cross | 21,394.63 | 10,000.0 | 100.0% | 0.1435m |
93
+ | L_shape | 21,221.41 | 10,000.0 | 100.0% | 0.1389m |
94
+ | wide_block | 20,857.84 | 10,000.0 | 100.0% | 0.1611m |
95
+ | heavy_ball | 24,310.68 | 10,000.0 | 100.0% | 0.0401m |
96
+ | offcenter_block | 21,408.22 | 10,000.0 | 100.0% | 0.1395m |
97
+
98
+ The answer is yes; Mr. Balance excels at balancing a wide range of objects, not just the three he was trained on.