FlappyHimself commited on
Commit
7b10bf3
·
verified ·
1 Parent(s): 942f7cd

Add Astra trajectory augmentation guide

Browse files
README.md CHANGED
@@ -3,6 +3,7 @@ pretty_name: Sharpa Artifacts
3
  tags:
4
  - robotics
5
  - dexterous-manipulation
 
6
  - retargeting
7
  - hdf5
8
  - mano
@@ -10,47 +11,92 @@ tags:
10
 
11
  # Sharpa Artifacts
12
 
13
- Public, versioned machine artifacts for the Sharpa functional-reorientation pipeline.
14
- Source code and download validators live in
15
  [`ai4ce/dex_retarget`](https://github.com/ai4ce/dex_retarget).
16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  ## Layout
18
 
19
  Artifacts are organized by object and immutable release:
20
 
21
  ```text
22
  objects/<object>/releases/<release-id>/
 
23
  ```
24
 
25
- The current Stage3-compatible release is
26
- `objects/phone/releases/phone20-stage12-v2`. It contains 20 accepted Stage1
27
- NPZ files, 20 final Sharpa `retargeted_moving28_60fps.h5` trajectories, and the
28
- human/canonical H5, QA video, manifests, GoalContracts, and handoffs required by
29
- the current strict Stage3 provenance contract.
30
 
31
- `release_manifest.json` and `checksums.sha256` define every released byte.
32
- Consumers should pin an exact repository revision and verify the release
33
- manifest before use.
34
 
35
- ## Releases
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
 
37
- - `phone20-stage12-v2`: current Stage3-compatible layout; preserves each
38
- handoff's original `inputs/`, `stage2/`, `contracts/`, and `qa/` paths.
39
- - `phone20-stage12-v1`: historical first upload; usable for direct artifact
40
- inspection but superseded for Stage3 because it renamed `inputs/` to `stage1/`
41
- and omitted the handoff-bound QA video.
 
 
 
 
 
 
 
 
 
 
42
 
43
  ## Data boundary
44
 
45
- This repository contains derived research artifacts. It does not contain raw
46
- Vicon/MANUS capture, checkpoints, teacher rollouts, behavior-cloning datasets,
47
- or training logs. Public access does not grant rights to unrelated third-party
48
- assets; users remain responsible for their applicable licenses.
 
 
 
49
 
50
- ## Current Stage3-compatible identity
 
 
 
51
 
52
- - Release: `phone20-stage12-v2`
53
- - Artifact commit: `7c3a60460e2c953c929fbfffdc1ab5a9a8607851`
54
- - Release manifest SHA256: `84bd39b42ba3cdd0f9985fb4d6e1c002654d051dd7666b9fe9350b049b9b4149`
55
- - Source producer commit: `22d7dd4ae9dd782625464788e5741a0565311c77`
56
- - Source state: clean; all 20 handoffs record `STAGE2_HANDOFF_ACCEPTED`
 
3
  tags:
4
  - robotics
5
  - dexterous-manipulation
6
+ - reinforcement-learning
7
  - retargeting
8
  - hdf5
9
  - mano
 
11
 
12
  # Sharpa Artifacts
13
 
14
+ Public, versioned machine artifacts for the Sharpa functional-reorientation
15
+ pipeline. Source code and download validators live in
16
  [`ai4ce/dex_retarget`](https://github.com/ai4ce/dex_retarget).
17
 
18
+ ## Start here: Astra trajectory augmentation
19
+
20
+ The repository now includes eight Sharpa Stage3 AutoDR residual-teacher
21
+ checkpoint **candidates** for generating physics-executed recovery trajectories.
22
+ Give an Astra agent the following guide as its execution handoff:
23
+
24
+ - [Astra guide: use the Phone8 teachers for trajectory augmentation](https://huggingface.co/datasets/FlappyHimself/sharpa-artifacts/blob/main/guides/phone8-stage3-autodr-candidates-v1/ASTRA_GUIDE.md)
25
+ - [Immutable Phone8 checkpoint release](https://huggingface.co/datasets/FlappyHimself/sharpa-artifacts/tree/942f7cd025ae050823a817c9aff6cb7cb810d009/objects/phone/releases/phone8-stage3-autodr-candidates-v1)
26
+
27
+ The intended loop is:
28
+
29
+ ```text
30
+ matching Stage2 reference
31
+ -> bounded hand/object tweak
32
+ -> residual-teacher recovery in Isaac/PhysX
33
+ -> functional-pose evaluation
34
+ -> immutable rollout + action chain + diagnostics + 2x3 video
35
+ -> optional accepted child tweak
36
+ ```
37
+
38
+ This release contains the teachers and collection contract. It does **not**
39
+ claim that the proposed augmented rollout dataset has already been collected.
40
+
41
  ## Layout
42
 
43
  Artifacts are organized by object and immutable release:
44
 
45
  ```text
46
  objects/<object>/releases/<release-id>/
47
+ guides/<release-id>/
48
  ```
49
 
50
+ ## Releases
 
 
 
 
51
 
52
+ ### `phone8-stage3-autodr-candidates-v1`
 
 
53
 
54
+ - Eight per-phone Stage3 residual-teacher checkpoint candidates: `phone_02`,
55
+ `phone_03`, `phone_05`, `phone_07`, `phone_10`, `phone_14`, `phone_17`, and
56
+ `phone_18`.
57
+ - Each episode includes its checkpoint, Training Card, checkpoint receipt and
58
+ evaluation summary.
59
+ - The release also includes a Data Card, collection specification, manifest and
60
+ SHA256 inventory.
61
+ - Status: `CHECKPOINT_RELEASE_READY_CANDIDATES_NOT_PROMOTED`.
62
+
63
+ ### `phone20-stage12-v2`
64
+
65
+ - Current Stage3-compatible Stage1/Stage2 release.
66
+ - Contains 20 accepted Stage1 NPZ files, 20 final Sharpa
67
+ `retargeted_moving28_60fps.h5` trajectories, human/canonical H5 files,
68
+ GoalContracts, QA videos, manifests and handoffs.
69
+
70
+ ### `phone20-stage12-v1`
71
 
72
+ - Historical first upload.
73
+ - Superseded for Stage3 because it renamed `inputs/` to `stage1/` and omitted
74
+ the handoff-bound QA video.
75
+
76
+ ## Consumer contract
77
+
78
+ Pin an exact Hugging Face revision and verify `release_manifest.json` plus
79
+ `checksums.sha256` before use. A checkpoint must be paired with the matching
80
+ episode's Stage2 H5, GoalContract, Training Card and runtime identity; similar
81
+ filenames are not interchangeable provenance.
82
+
83
+ Checkpoint availability is not policy promotion. These candidates have not
84
+ completed the full P2 robustness bank, automatic drop detection and human video
85
+ review required for a robust-teacher claim. See the per-episode evaluation
86
+ summary before selecting a source.
87
 
88
  ## Data boundary
89
 
90
+ This repository contains derived research artifacts and selected checkpoint
91
+ candidates. It does not contain raw Vicon/MANUS capture, the proposed new
92
+ augmentation rollout bytes, full training logs, a self-contained Isaac image,
93
+ or unrelated third-party assets. Public access does not grant rights to
94
+ third-party assets; consumers remain responsible for applicable licenses.
95
+
96
+ ## Pinned identities
97
 
98
+ | Release | Artifact revision | Manifest SHA256 | Status |
99
+ |---|---|---|---|
100
+ | `phone8-stage3-autodr-candidates-v1` | `942f7cd025ae050823a817c9aff6cb7cb810d009` | `d8b0c52ebb5155eef17b033167b600114efd7bca22278e966e0136c80036b277` | checkpoint candidates published; rollouts not materialized |
101
+ | `phone20-stage12-v2` | `7c3a60460e2c953c929fbfffdc1ab5a9a8607851` | `84bd39b42ba3cdd0f9985fb4d6e1c002654d051dd7666b9fe9350b049b9b4149` | Stage3-compatible Stage1/Stage2 release |
102
 
 
 
 
 
 
catalog.json CHANGED
@@ -1,7 +1,20 @@
1
  {
2
  "canonical_release": "phone20-stage12-v2",
 
3
  "public": true,
4
  "releases": [
 
 
 
 
 
 
 
 
 
 
 
 
5
  {
6
  "artifact_revision": "7c3a60460e2c953c929fbfffdc1ab5a9a8607851",
7
  "episode_count": 20,
 
1
  {
2
  "canonical_release": "phone20-stage12-v2",
3
+ "featured_teacher_release": "phone8-stage3-autodr-candidates-v1",
4
  "public": true,
5
  "releases": [
6
+ {
7
+ "artifact_revision": "942f7cd025ae050823a817c9aff6cb7cb810d009",
8
+ "checkpoint_count": 8,
9
+ "episode_count": 8,
10
+ "guide_path": "guides/phone8-stage3-autodr-candidates-v1/ASTRA_GUIDE.md",
11
+ "manifest_sha256": "d8b0c52ebb5155eef17b033167b600114efd7bca22278e966e0136c80036b277",
12
+ "member_count": 37,
13
+ "object": "phone",
14
+ "path": "objects/phone/releases/phone8-stage3-autodr-candidates-v1",
15
+ "release_id": "phone8-stage3-autodr-candidates-v1",
16
+ "status": "CHECKPOINT_RELEASE_READY_CANDIDATES_NOT_PROMOTED"
17
+ },
18
  {
19
  "artifact_revision": "7c3a60460e2c953c929fbfffdc1ab5a9a8607851",
20
  "episode_count": 20,
guides/phone8-stage3-autodr-candidates-v1/ASTRA_GUIDE.md ADDED
@@ -0,0 +1,251 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Astra guide: Sharpa Phone8 teacher trajectory augmentation
2
+
3
+ This guide is an execution handoff for an Astra coding/research agent. It
4
+ describes how to use the published Sharpa residual-teacher checkpoint
5
+ **candidates** to prepare and collect diverse physics-executed recovery
6
+ trajectories.
7
+
8
+ ## Fixed release identity
9
+
10
+ | Item | Identity |
11
+ |---|---|
12
+ | Hugging Face repository | `FlappyHimself/sharpa-artifacts` (`dataset`, public) |
13
+ | Teacher release | `phone8-stage3-autodr-candidates-v1` |
14
+ | Teacher artifact revision | `942f7cd025ae050823a817c9aff6cb7cb810d009` |
15
+ | Release manifest SHA256 | `d8b0c52ebb5155eef17b033167b600114efd7bca22278e966e0136c80036b277` |
16
+ | Matching Stage1/Stage2 release | `phone20-stage12-v2` |
17
+ | Reference source code | `https://github.com/ai4ce/dex_retarget` |
18
+ | Collector reference commit | `30d43fba07a5a8bcbd756b1bf58be713daec5206` |
19
+ | Proposed dataset | `SHARPA-BC-DATA-038 / phone8_mentor_tweak_recovery_v1` |
20
+ | Dataset status | `DRAFT / ROLLOUTS_NOT_YET_MATERIALIZED` |
21
+
22
+ Pin these identities. Do not silently replace a checkpoint, H5, GoalContract,
23
+ Training Card, code commit, simulator runtime or collection schema.
24
+
25
+ ## What the repository contains
26
+
27
+ ```text
28
+ objects/phone/releases/phone8-stage3-autodr-candidates-v1/
29
+ README.md
30
+ data_card.md
31
+ mentor_trajectory_generation_spec.md
32
+ release_manifest.json
33
+ checksums.sha256
34
+ episodes/<phone_id>/
35
+ checkpoint/model_<step>.pt
36
+ training_card.md
37
+ checkpoint_receipt.json
38
+ evaluation_summary.json
39
+
40
+ objects/phone/releases/phone20-stage12-v2/
41
+ ... matching Stage1 NPZ, Stage2 H5, GoalContract, QA and provenance ...
42
+ ```
43
+
44
+ The release provides checkpoint bytes and the information needed to build a
45
+ versioned collection job. It does not provide newly generated augmentation
46
+ rollouts, a prebuilt Isaac container, or a universally compatible one-command
47
+ launcher.
48
+
49
+ ## Candidate inventory
50
+
51
+ | Episode | Checkpoint | Published automatic evidence | Current boundary |
52
+ |---|---|---|---|
53
+ | `phone_02` | `model_7499.pt` | nominal seed0: 1/1 | nominal-only automatic evidence |
54
+ | `phone_03` | `model_9500.pt` | not run | last complete checkpoint from crashed run |
55
+ | `phone_05` | `model_7000.pt` | RefAug/reset DR seeds0-7: 6/8 | automatic failures remain |
56
+ | `phone_07` | `model_7499.pt` | RefAug/reset DR seeds0-7: 8/8 | best starting point for the current collector family |
57
+ | `phone_10` | `model_9000.pt` | not run | last complete checkpoint from crashed run |
58
+ | `phone_14` | `model_8500.pt` | RefAug/reset DR seeds0-7: 7/8 | automatic failure remains |
59
+ | `phone_17` | `model_7999.pt` | RefAug/reset DR seeds0-7: 8/8 | promising candidate; generic source adapter still required |
60
+ | `phone_18` | `model_9998.pt` | nominal seed0: 1/1 | nominal-only evidence for this exact checkpoint |
61
+
62
+ All eight remain non-promoted candidates. P2 robustness, automatic drop
63
+ detection and human video review are incomplete.
64
+
65
+ ## Download and verify
66
+
67
+ Install the Hugging Face CLI, then download the immutable releases:
68
+
69
+ ```bash
70
+ python -m pip install "huggingface_hub[cli]"
71
+
72
+ hf download FlappyHimself/sharpa-artifacts \
73
+ --repo-type dataset \
74
+ --revision 942f7cd025ae050823a817c9aff6cb7cb810d009 \
75
+ --include "objects/phone/releases/phone8-stage3-autodr-candidates-v1/**" \
76
+ "objects/phone/releases/phone20-stage12-v2/**" \
77
+ --local-dir ./sharpa-artifacts
78
+
79
+ cd ./sharpa-artifacts/objects/phone/releases/phone8-stage3-autodr-candidates-v1
80
+ sha256sum -c checksums.sha256
81
+ ```
82
+
83
+ Clone and pin the reference implementation separately:
84
+
85
+ ```bash
86
+ git clone https://github.com/ai4ce/dex_retarget.git
87
+ cd dex_retarget
88
+ git checkout 30d43fba07a5a8bcbd756b1bf58be713daec5206
89
+ ```
90
+
91
+ Use the project runtime with Isaac Sim 5.1.0.0, Torch 2.7.0, `h5py` and
92
+ `scipy`. The collector imports its H5 attempt-bank implementation even for
93
+ `--help`, so a lightweight Python environment without `h5py/scipy` is not a
94
+ valid collection environment.
95
+
96
+ ## Copy this task directly into Astra
97
+
98
+ ```text
99
+ Use the public Hugging Face dataset FlappyHimself/sharpa-artifacts.
100
+
101
+ Pin the teacher artifacts to revision
102
+ 942f7cd025ae050823a817c9aff6cb7cb810d009 and verify the release manifest and
103
+ checksums before loading any checkpoint. Read, in order:
104
+
105
+ 1. objects/phone/releases/phone8-stage3-autodr-candidates-v1/README.md
106
+ 2. mentor_trajectory_generation_spec.md
107
+ 3. data_card.md
108
+ 4. the selected episode's training_card.md
109
+ 5. checkpoint_receipt.json
110
+ 6. evaluation_summary.json
111
+
112
+ For one selected phone episode, resolve the matching Stage1 NPZ, Stage2 H5 and
113
+ GoalContract from phone20-stage12-v2. Materialize a create-only collection spec,
114
+ frozen attempt bank and runtime receipt. Run preflight before opening Isaac.
115
+
116
+ Collect bounded tweak -> residual-teacher recovery -> functional-pose attempts.
117
+ Persist the complete observation/action chain, actual simulator state,
118
+ contact/penetration diagnostics, randomization ledger, metrics, provenance and
119
+ canonical Stage1-MANO-over-policy-actual 2x3 video. Never use the raw residual as
120
+ the BC label when the controller applies a processed/composed target. Preserve
121
+ failed attempts as reflection/diagnostic data.
122
+
123
+ Do not call a checkpoint robust or promoted. Do not put an attempt in the
124
+ training dataset until its automatic gates and human video review pass. Never
125
+ move a failed heldout attempt into train. Do not launch or resume teacher
126
+ training as part of this collection task.
127
+ ```
128
+
129
+ ## Required augmentation loop
130
+
131
+ For every attempt:
132
+
133
+ 1. Load exactly one episode's Training Card, checkpoint and matching reference
134
+ lineage.
135
+ 2. Reset to a preregistered phase and apply one bounded tweak ledger.
136
+ 3. Run a fresh Isaac/PhysX rollout through the complete reference plus a
137
+ 15-control-step terminal hold.
138
+ 4. Record the causal transition:
139
+
140
+ ```text
141
+ obs_t
142
+ -> teacher raw residual_t
143
+ -> processed residual_t
144
+ -> reference/composed target_t
145
+ -> final controller target_t
146
+ -> four physics steps
147
+ -> actual state_t+1
148
+ ```
149
+
150
+ 5. Evaluate E4, E5, E6 and E9 and retain contact, penetration, drop/invalid and
151
+ termination diagnostics.
152
+ 6. Render the canonical 2x3 video: Stage1 MANO+object on the top row and the
153
+ policy's actual PhysX rollout on the bottom row, synchronized in front, side
154
+ and top views.
155
+ 7. Only an automatically valid and visually approved attempt may become the
156
+ parent of another bounded tweak. Parent and child remain immutable records.
157
+
158
+ ## Initial bounded tweak envelope
159
+
160
+ Use the first release only inside the documented training-distribution envelope:
161
+
162
+ | Tweak | Range |
163
+ |---|---|
164
+ | Common hand+phone X/Y translation | each axis `U[-0.05, 0.05] m` |
165
+ | Common yaw | `U[-30, 30] deg` |
166
+ | Phone-in-hand translation | each axis `U[-0.006, 0.006] m` |
167
+ | Phone-in-hand axis-angle rotation | `U[-3, 3] deg` |
168
+ | Positive finger wrap | `U[0, 0.06] rad` |
169
+ | Four-finger rub | `U[-0.025, 0.025] rad` |
170
+
171
+ Larger perturbations, pushes, physics randomization, observation noise or new
172
+ tweak families require a new versioned case bank.
173
+
174
+ ## Attempt topology and outputs
175
+
176
+ Freeze 128 attempts per independent teacher before observing results: 96 train
177
+ and 32 heldout. Eight teachers define 1024 primary attempts. Train alone may be
178
+ used for optimization and normalization; heldout is a one-shot
179
+ same-distribution audit.
180
+
181
+ Each create-only attempt must contain or link:
182
+
183
+ ```text
184
+ attempt_<id>/
185
+ attempt_contract.json
186
+ metrics.json
187
+ rollout.npz
188
+ action_chain.npz
189
+ randomization_ledger.json
190
+ evaluation_suite_card.json
191
+ reference_vs_policy_2x3.mp4
192
+ render_manifest.json
193
+ ```
194
+
195
+ Record checkpoint, Training Card, Stage1, Stage2, GoalContract, runtime, code,
196
+ assets, seed, tweak, parent attempt and every delivered member by SHA256.
197
+
198
+ ## Current executor compatibility: read before running
199
+
200
+ The public source tree contains the generic entry point
201
+ `student/sharpa/teacher_rollout_collector.py`, whose command interface is:
202
+
203
+ ```bash
204
+ COLLECTION_SPEC=/absolute/path/to/collection_spec.json
205
+ ATTEMPT_BANK=/absolute/path/to/attempt_bank.json
206
+ OUTPUT_ROOT=/absolute/path/to/new_collection_root
207
+
208
+ python -m student.sharpa.teacher_rollout_collector \
209
+ --collection-spec "$COLLECTION_SPEC" \
210
+ --attempt-bank "$ATTEMPT_BANK" \
211
+ --row-start 0 \
212
+ --row-stop 1 \
213
+ --output-root "$OUTPUT_ROOT" \
214
+ --device cuda:0 \
215
+ --preflight-only
216
+ ```
217
+
218
+ Do not run this command unchanged against all eight teachers. At the pinned
219
+ reference commit, its v1 contract accepts only the older `phone07`/`phone18`
220
+ source IDs, and its historical `71D -> 31D` student codec is not identical to
221
+ the proposed `SHARPA-BC-DATA-038` schema in this release. The Hugging Face
222
+ checkpoint bundle also does not include every runtime/environment receipt
223
+ required by that collector's fail-closed preflight.
224
+
225
+ Therefore:
226
+
227
+ - use `phone_07` first when validating compatibility with the existing
228
+ collector family;
229
+ - create a new versioned collection schema/adapter for the eight-teacher
230
+ campaign rather than weakening or bypassing preflight;
231
+ - bind the selected Data Card's exact observation, action-chain and label
232
+ semantics;
233
+ - run unit tests plus `--preflight-only` before any simulator rollout;
234
+ - publish the materialized spec, attempt bank, runtime receipt and output
235
+ manifest under a new immutable dataset release.
236
+
237
+ The release is directly usable as an artifact-and-contract handoff to Astra. It
238
+ is not evidence that a portable eight-teacher collector has already passed
239
+ preflight.
240
+
241
+ ## Completion criteria
242
+
243
+ An Astra augmentation job is complete only when:
244
+
245
+ - all inputs resolve to the pinned identities and pass hash checks;
246
+ - every scheduled attempt has an immutable success, failure or infrastructure
247
+ record;
248
+ - rollout/action timing and final applied targets are validated;
249
+ - all accepted attempts pass the declared automatic gates and human review;
250
+ - train/heldout membership remains frozen;
251
+ - a final manifest, checksums and Data Card execution update are published.