ducido commited on
Commit
8ab357e
·
verified ·
1 Parent(s): 5a5b71c

I7c unit (teacher t12d_l50, trim_release, needs run_real --finish)

Browse files
I7c/MANIFEST.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {"name": "I7c",
2
+ "recipe": "Teacher t12d_l50 @2591 (demo posture prior, eef floor clip_z, lift ~12 cm, return home; all 6 behaviour checks pass in the twin) -> I4_rec recipe collect (1800 eps, seeds 700-705), BC 10k from I4_rec with --trim_release (each episode cut at release + 3 cm retreat; no home phase). Script tI7c.sh, code real2sim2real so101-t11-mg2 @22cb4a1.",
3
+ "res": 128,
4
+ "contract.json": "contract A (repo default), identical to I4_rec/contract.json.",
5
+ "REQUIRED_DEPLOY_FLAG": "run_real --finish (contract.Finish, so101-t11-mg2 @22cb4a1): after lift -> release -> 3 cm retreat, the client stops querying the policy, moves to the reset pose (>=1.5 s) and holds still. The student was NOT trained to go home; without --finish it will wander after placing.",
6
+ "real_mode_eval_twin": "contract A, aligned async thr10, slowdown 2, box_stop 15, --finish, 3 seeds x 16: final P1 .75/.75/.75, P2 .75/.75/.75, grasp 1.0. Strict back10 score pending.",
7
+ "deploy": "128 px; run_real --contract <unit>/contract.json --finish, aligned async thr 10, --slowdown 2, box_stop default 15."}
I7c/SHA256SUMS ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ 881a0f25c804155b57def4ca155d7ebf9c45e142588fba237de3031daafbfdbb ./MANIFEST.json
2
+ d971903b343fde9396f1851cbc9ac4b38d82f5d4d64ffa64bf3252c2081f18b5 ./contract.json
3
+ 8380947e674223e6d70d8e94cbff0e5d0828ab9cb5174e6eecd597d16bf836f9 ./run/config.json
4
+ 3f53199518f6e04c7a11b94225cfcde046c782541e46623486bcee8104f7ef4a ./run/data_filter.json
5
+ 1db0b45082eb0ffc932e07198d9f3c653f400a8d8bddcedd760a53302024fd07 ./run/model.safetensors
6
+ f2691627439b23ebaf8453870f08d2b94c1f284fa7f572173b462bd659243f6e ./run/stats.json
7
+ 909f77f4b3cd38d1a70e52a8135133bcfc0df0812ece06da6567c06b4e4276ea ./run/train_args.json
8
+ b2e1cd2b6677538663abdd0e3f75220aa40c30daea82b98eaa02f90621f9b9a3 ./tI7c.sh
I7c/contract.json ADDED
@@ -0,0 +1,164 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task": "lift the red cube and then place it back",
3
+ "control_freq": 30,
4
+ "motors": [
5
+ "shoulder_pan",
6
+ "shoulder_lift",
7
+ "elbow_flex",
8
+ "wrist_flex",
9
+ "wrist_roll",
10
+ "gripper"
11
+ ],
12
+ "cam_of": {
13
+ "agentview": "top",
14
+ "robot0_eye_in_hand": "wrist"
15
+ },
16
+ "urdf": "common/assets/robots/so101/model.urdf",
17
+ "real_to_sim_offset_deg": [
18
+ 0.0,
19
+ 0.0,
20
+ 0.0,
21
+ 0.0,
22
+ -87.0
23
+ ],
24
+ "gripper_sim_deg": [
25
+ -10.0,
26
+ 120.0
27
+ ],
28
+ "joint_offsets_rad": [
29
+ -0.04777563316726313,
30
+ 0.1146703156321438,
31
+ -0.12052938486759734,
32
+ -0.15761356391961218,
33
+ -0.05073277126229436
34
+ ],
35
+ "gripper_scale": 1.0291589788980442,
36
+ "gripper_offset_rad": 0.03137487308424008,
37
+ "dq_max": [
38
+ 0.025316874849647508,
39
+ 0.04603080865022924,
40
+ 0.050633749699295016,
41
+ 0.03657137630577592,
42
+ 0.029919940734389083,
43
+ 0.09377125851550777
44
+ ],
45
+ "q_lo": [
46
+ -1.91986,
47
+ -1.74533,
48
+ -1.69,
49
+ -1.65806,
50
+ -2.74385,
51
+ -0.174533
52
+ ],
53
+ "q_hi": [
54
+ 1.91986,
55
+ 1.74533,
56
+ 1.69,
57
+ 1.65806,
58
+ 2.84121,
59
+ 2.0944
60
+ ],
61
+ "eef_box": [
62
+ [
63
+ 0.1348,
64
+ -0.2535,
65
+ -0.0291
66
+ ],
67
+ [
68
+ 0.4061,
69
+ 0.2543,
70
+ 0.2925
71
+ ]
72
+ ],
73
+ "cameras": {
74
+ "agentview": {
75
+ "K": [
76
+ [
77
+ 177.9888475010466,
78
+ 0.0,
79
+ 127.5
80
+ ],
81
+ [
82
+ 0.0,
83
+ 177.9888475010466,
84
+ 127.5
85
+ ],
86
+ [
87
+ 0.0,
88
+ 0.0,
89
+ 1.0
90
+ ]
91
+ ],
92
+ "width": 256,
93
+ "native_K": [
94
+ [
95
+ 453.4710998535156,
96
+ 0.0,
97
+ 324.838134765625
98
+ ],
99
+ [
100
+ 0.0,
101
+ 452.9521789550781,
102
+ 188.93875122070312
103
+ ],
104
+ [
105
+ 0.0,
106
+ 0.0,
107
+ 1.0
108
+ ]
109
+ ],
110
+ "native_size": [
111
+ 640,
112
+ 360
113
+ ]
114
+ },
115
+ "robot0_eye_in_hand": {
116
+ "K": [
117
+ [
118
+ 130.17097966728278,
119
+ 0.0,
120
+ 127.5
121
+ ],
122
+ [
123
+ 0.0,
124
+ 130.17097966728278,
125
+ 127.5
126
+ ],
127
+ [
128
+ 0.0,
129
+ 0.0,
130
+ 1.0
131
+ ]
132
+ ],
133
+ "width": 256,
134
+ "native_K": [
135
+ [
136
+ 331.4,
137
+ 0.0,
138
+ 314.4
139
+ ],
140
+ [
141
+ 0.0,
142
+ 331.4,
143
+ 232.5
144
+ ],
145
+ [
146
+ 0.0,
147
+ 0.0,
148
+ 1.0
149
+ ]
150
+ ],
151
+ "native_size": [
152
+ 640,
153
+ 480
154
+ ]
155
+ }
156
+ },
157
+ "source": {
158
+ "scene_dir": "/pfss/mlde/workspaces/mlde_wsp_MGPATH/minhduc/data/so101_student2/build_student2/gt/so101__lift_the_red_cube_and_then_place_it_back",
159
+ "calib": "/pfss/mlde/workspaces/mlde_wsp_MGPATH/minhduc/r2s_so101_sysid/validation/so101_real/calib_m8/calib.json",
160
+ "robot_yaml": "/pfss/mlde/workspaces/mlde_wsp_MGPATH/minhduc/r2s_so101_sysid/configs/robots/so101.yaml",
161
+ "note": "eef_box = demo gripper_frame_link range + margin; dq_max = joint_task.demo_dq_max (the twin's)",
162
+ "mapping_check_max_err_rad": 0.0
163
+ }
164
+ }
I7c/run/config.json ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "smolvla",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.images.agentview": {
6
+ "type": "VISUAL",
7
+ "shape": [
8
+ 3,
9
+ 128,
10
+ 128
11
+ ]
12
+ },
13
+ "observation.images.wrist": {
14
+ "type": "VISUAL",
15
+ "shape": [
16
+ 3,
17
+ 128,
18
+ 128
19
+ ]
20
+ },
21
+ "observation.state": {
22
+ "type": "STATE",
23
+ "shape": [
24
+ 6
25
+ ]
26
+ }
27
+ },
28
+ "output_features": {
29
+ "action": {
30
+ "type": "ACTION",
31
+ "shape": [
32
+ 6
33
+ ]
34
+ }
35
+ },
36
+ "device": "cuda:0",
37
+ "use_amp": false,
38
+ "push_to_hub": true,
39
+ "repo_id": null,
40
+ "private": null,
41
+ "tags": null,
42
+ "license": null,
43
+ "pretrained_path": null,
44
+ "chunk_size": 10,
45
+ "n_action_steps": 5,
46
+ "normalization_mapping": {
47
+ "VISUAL": "IDENTITY",
48
+ "STATE": "MEAN_STD",
49
+ "ACTION": "MEAN_STD"
50
+ },
51
+ "max_state_dim": 32,
52
+ "max_action_dim": 32,
53
+ "resize_imgs_with_padding": [
54
+ 512,
55
+ 512
56
+ ],
57
+ "empty_cameras": 0,
58
+ "adapt_to_pi_aloha": false,
59
+ "use_delta_joint_actions_aloha": false,
60
+ "tokenizer_max_length": 48,
61
+ "num_steps": 10,
62
+ "use_cache": true,
63
+ "freeze_vision_encoder": false,
64
+ "train_expert_only": false,
65
+ "train_state_proj": true,
66
+ "optimizer_lr": 0.0001,
67
+ "optimizer_betas": [
68
+ 0.9,
69
+ 0.95
70
+ ],
71
+ "optimizer_eps": 1e-08,
72
+ "optimizer_weight_decay": 1e-10,
73
+ "optimizer_grad_clip_norm": 10.0,
74
+ "scheduler_warmup_steps": 1000,
75
+ "scheduler_decay_steps": 30000,
76
+ "scheduler_decay_lr": 2.5e-06,
77
+ "vlm_model_name": "HuggingFaceTB/SmolVLM2-500M-Video-Instruct",
78
+ "load_vlm_weights": true,
79
+ "add_image_special_tokens": false,
80
+ "attention_mode": "cross_attn",
81
+ "prefix_length": 0,
82
+ "pad_language_to": "max_length",
83
+ "num_expert_layers": 0,
84
+ "num_vlm_layers": 16,
85
+ "self_attn_every_n_layers": 2,
86
+ "expert_width_multiplier": 0.75,
87
+ "min_period": 0.004,
88
+ "max_period": 4.0,
89
+ "rtc_config": null
90
+ }
I7c/run/data_filter.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total": 1800,
3
+ "kept": 1800,
4
+ "dropped_reclose": 0,
5
+ "dropped_flips": 0,
6
+ "max_flips": null,
7
+ "success_only_dirs": [
8
+ "/pfss/mlde/workspaces/mlde_wsp_MGPATH/minhduc/runs/so101_I7_t12d/data"
9
+ ],
10
+ "success_samples": 743918,
11
+ "trimmed": 1749,
12
+ "trimmed_samples": 312825,
13
+ "kept_frac": 1.0,
14
+ "auto_off": false,
15
+ "min_keep": 0.4,
16
+ "used": 1800
17
+ }
I7c/run/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1db0b45082eb0ffc932e07198d9f3c653f400a8d8bddcedd760a53302024fd07
3
+ size 906712520
I7c/run/stats.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "state_mean": [
3
+ -0.04508132115006447,
4
+ -0.38424405455589294,
5
+ 0.7264227271080017,
6
+ 0.368332177400589,
7
+ -1.5054079294204712,
8
+ 0.7692270874977112
9
+ ],
10
+ "state_std": [
11
+ 0.3559753894805908,
12
+ 0.7116620540618896,
13
+ 0.4676953852176666,
14
+ 0.38878604769706726,
15
+ 0.2888548672199249,
16
+ 0.5174769759178162
17
+ ],
18
+ "action_mean": [
19
+ 0.012660490348935127,
20
+ -0.3562781810760498,
21
+ 0.6692502498626709,
22
+ 0.27500566840171814,
23
+ -1.4892818927764893,
24
+ 0.6956616640090942
25
+ ],
26
+ "action_std": [
27
+ 0.5577130317687988,
28
+ 0.6789782047271729,
29
+ 0.4535142481327057,
30
+ 0.3930417597293854,
31
+ 0.3288690745830536,
32
+ 0.6147289276123047
33
+ ],
34
+ "action_clip": [
35
+ [
36
+ -1.9615439176559448,
37
+ -1.7453300952911377,
38
+ -1.5223058462142944,
39
+ -1.6580599546432495,
40
+ -2.704615354537964,
41
+ -0.17453299462795258
42
+ ],
43
+ [
44
+ 1.9712471961975098,
45
+ 1.7453300952911377,
46
+ 1.6899999380111694,
47
+ 1.3156837224960327,
48
+ 0.360441654920578,
49
+ 2.094399929046631
50
+ ]
51
+ ]
52
+ }
I7c/run/train_args.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data": "/pfss/mlde/workspaces/mlde_wsp_MGPATH/minhduc/runs/so101_I7_t12d/data",
3
+ "out": "/pfss/mlde/workspaces/mlde_wsp_MGPATH/minhduc/runs/so101_I7c/run",
4
+ "init": "/pfss/mlde/workspaces/mlde_wsp_MGPATH/minhduc/runs/so101_I4rec/run",
5
+ "steps": 10000,
6
+ "batch": 32,
7
+ "lr": 0.0001,
8
+ "warmup": 1000,
9
+ "seed": 0,
10
+ "task": "lift the red cube and then place it back",
11
+ "aug": "v1",
12
+ "para": "",
13
+ "release_w": 1.0,
14
+ "release_win": 10,
15
+ "grip_filter_max_flips": -1,
16
+ "real": "",
17
+ "real_frac": 0.1,
18
+ "first_frame": false,
19
+ "trim_release": true,
20
+ "trim_home": "",
21
+ "success_only": 1,
22
+ "episodes": 1800,
23
+ "samples": 431093,
24
+ "memory": {},
25
+ "chunk": 10,
26
+ "exec": 5,
27
+ "res": 128,
28
+ "world_size": 2,
29
+ "minutes": 82.49742120107015
30
+ }
I7c/tI7c.sh ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # SO-101 student I7c (Reviewer 2026-11-26): go home + stay are taken out of the memoryless student (I7b's P1 still went to rest without
3
+ # the cube: start ~ rest). BC 10k from I4_rec on I7's data with train_student --trim_release (each episode cut 15 frames after the eef
4
+ # is 3 cm from where it released; 93 % cut, 57 % of samples kept), DDP 2. The return home is the deploy finish routine
5
+ # (contract.Finish, run_real --finish): the eval runs it (--rp_finish) + contract A + box_stop 15; back10 strict + at stop, checks, videos.
6
+ # tI7c.sh (MG1, both GPUs; writes runs/so101_I7c)
7
+ set -u -o pipefail
8
+ X=/pfss/mlde/workspaces/mlde_wsp_MGPATH/minhduc
9
+ HERE="$(dirname "$(readlink -f "$0")")"
10
+ L=$HERE/../../common/libero_twin
11
+ GUARD=$X/wt_so101_t4/tools/isaac_guard.sh
12
+ B=$X/data/so101_twin_student2/x/build_student3
13
+ O=$X/runs/so101_I7c
14
+ SPLAT=$X/runs/so101_I3/inputs/splat_v4_1_noblob.pt
15
+ CON=$X/runs/so101_I4rec/contract_A.json
16
+ D=$X/runs/so101_I7_t12d/data # I7's collect, read only
17
+ RUN=$O/run
18
+ T="lift the red cube and then place it back"
19
+ TWIN10=$(bash $HERE/teacher_t10.sh --print-twin)
20
+ TWIN9=$(bash $HERE/teacher_t9.sh --print-twin)
21
+ NEW="--distractors 3 --cables 2 --timing_dr 0.25,0.25 --phase_noise --cube_colour $X/runs/so101_I3/inputs/cube_colour_fit.json --wave_cut 0.1,300,600 --grasp_focus --start_yaw -1 --start_xy 0.03"
22
+ POSES='{"P1": [0.322, 0.0596, 15.0], "P2": [0.3587, -0.1074, -18.0]}'
23
+ export S2R_DIR=$X
24
+ PS=$X/envs/student/bin/python
25
+ H=$(hostname)
26
+ mkdir -p $O/logs
27
+ log() { echo "$* $(date -u +%H:%M)" | tee -a $O/logs/chain.log; }
28
+ splat() { # gpu port -> SPID
29
+ env CUDA_VISIBLE_DEVICES=$1 TORCH_CUDA_ARCH_LIST=8.0 TORCH_EXTENSIONS_DIR=$X/envs/splat/torch_ext \
30
+ PATH=/usr/local/cuda/bin:$X/envs/splat/bin:/usr/bin:/bin \
31
+ env -C $L $X/envs/splat/bin/python splat_server.py --splat $SPLAT --port $2 > $O/logs/splat_${H}_$2.log 2>&1 &
32
+ SPID=$!
33
+ until grep -q "listening\|Error" $O/logs/splat_${H}_$2.log 2>/dev/null || ! kill -0 $SPID 2>/dev/null; do sleep 2; done
34
+ }
35
+ student() { # gpu port seed log -> SP
36
+ env -C $L CUDA_VISIBLE_DEVICES=$1 $PS student_server.py --run $RUN --port $2 --seed $3 > $4 2>&1 &
37
+ SP=$!
38
+ until grep -qiE "listening|Traceback" $4 2>/dev/null || ! kill -0 $SP 2>/dev/null; do sleep 5; done
39
+ }
40
+ collect() { # gpu port seeds...
41
+ local g=$1 p=$2; shift 2
42
+ splat $g $p
43
+ for s in "$@"; do
44
+ [ -f $D/collect_joint_s$s.json ] && continue
45
+ rm -f $D/ep_s${s}_*.npz
46
+ env ISAAC_XDG=/dev/shm/s2r_xdg_I7c_g$g bash $GUARD $O/logs/collect_s$s.log 10 2 env -C $L bash run_isaac.sh $g collect_joint.py \
47
+ --root $B --teacher t12d_l50 --out $D --episodes 300 --num_envs 16 --seed $s --dart_p 0.4 --dart_sigma 0.1 --burst_p 1.0 \
48
+ --burst_n 2,4 --burst_len 10,30 --burst_tmax 0 --dart_sigma 0.15 --tail 240 --splat localhost:$p $TWIN10 $NEW
49
+ log "shard $s rc=$? $(grep -o 'done: .*' $O/logs/collect_s$s.log | tail -1)"
50
+ done
51
+ kill $SPID
52
+ }
53
+ rp() { # gpu seeds...
54
+ local g=$1; shift
55
+ local sp=$((6511 + g)) pp=$((6521 + g))
56
+ splat $g $sp
57
+ for s in "$@"; do
58
+ d=$O/rp_A/I7_s$s
59
+ [ -f $d/collect_joint_s$s.json ] && continue
60
+ student $g $pp $s $O/logs/rp_server_s$s.log
61
+ rm -rf $d
62
+ env ISAAC_XDG=/dev/shm/s2r_xdg_I7crp_g$g bash $GUARD $O/logs/rp_s$s.log 10 2 env -C $L bash run_isaac.sh $g collect_joint.py \
63
+ --root $B --teacher ours_t3_s0 --student localhost:$pp --splat localhost:$sp --episodes 16 --num_envs 16 --seed $s --out $d \
64
+ --real_protocol --rp_poses "$POSES" --rp_contract $CON --rp_thr 10 --rp_slowdown 2 --rp_box_stop 15 --rp_box_mode refuse --rp_finish \
65
+ $([ $s = 0 ] && echo --rp_view 4)
66
+ log "rp s$s rc=$? $(grep -E '\] P[12]:' $O/logs/rp_s$s.log | sed 's/\[collect_joint\] //' | tr '\n' ' ')"
67
+ kill $SP 2>/dev/null
68
+ sleep 5
69
+ done
70
+ kill $SPID
71
+ }
72
+ twin() { # gpu seed
73
+ local g=$1 s=$2
74
+ [ -f $O/eval_s$s/collect_joint_s$s.json ] && return
75
+ student $g $((6531 + s)) $s $O/logs/server_s$s.log
76
+ splat $g $((6541 + s))
77
+ rm -rf $O/eval_s$s
78
+ env ISAAC_XDG=/dev/shm/s2r_xdg_I7c_g$g bash $GUARD $O/logs/eval_s$s.log 10 2 env -C $L bash run_isaac.sh $g collect_joint.py --root $B \
79
+ --teacher t9_s0 --student localhost:$((6531 + s)) --episodes 64 --num_envs 16 --seed $s --splat localhost:$((6541 + s)) \
80
+ --out $O/eval_s$s $TWIN9
81
+ log "twin s$s rc=$? $(grep -o 'done: .*' $O/logs/eval_s$s.log | tail -1)"
82
+ kill $SP $SPID 2>/dev/null
83
+ }
84
+ # --- BC
85
+ [ -f $RUN/train_args.json ] || { env -C $L $X/envs/student/bin/torchrun --standalone --nproc_per_node 2 train_student.py --data $D \
86
+ --init $X/runs/so101_I4rec/run --trim_release --success_only --out $RUN --steps 10000 --aug v1 --seed 0 --task "$T" > $O/logs/train.log 2>&1; log "train rc=$?"; }
87
+ [ -f $RUN/model.safetensors ] && [ -f $RUN/train_args.json ] || { log "no model: stop"; exit 1; }
88
+ # --- evals
89
+ (rp 0 0 1; twin 0 0) &
90
+ sleep 120
91
+ rp 1 2
92
+ wait
93
+ mkdir -p $O/rp_A/pose
94
+ $X/envs/isaac/bin/python -c "
95
+ import json, glob
96
+ for f in sorted(glob.glob('$O/rp_A/I7_s*/collect_joint_s*.json')):
97
+ j = json.load(open(f))
98
+ for p in ('P1', 'P2'):
99
+ json.dump(dict(j, results=[r for r in j['results'] if r.get('pose') == p]), open('$O/rp_A/pose/' + p + '_' + f.split('/')[-2] + '.json', 'w'))"
100
+ $X/envs/isaac/bin/python $HERE/eval_twin/score_back.py $O/rp_A/score.md "I7c A finish box_stop=$O/rp_A/I7_s*/collect_joint_s*.json" \
101
+ "I7c P1=$O/rp_A/pose/P1_*.json" "I7c P2=$O/rp_A/pose/P2_*.json" | tee -a $O/logs/chain.log
102
+ timeout 20m env -C $X/runs/so101_videos $PS $HERE/teacher_video.py $X/runs/so101_videos/I7c I7c=$O/rp_A/I7_s0 > $O/logs/video.log 2>&1
103
+ log "I7c DONE videos rc=$? $X/runs/so101_videos/I7c"
104
+ env -C $X/runs/so101_videos $PS $HERE/checks_t11.py "$O/rp_A/I7_s*" > $O/rp_A/checks.json 2>> $O/logs/chain.log
105
+ log "checks (lift / lift q50 / back10 / grip / home share / below floor / box_stop per pose): $(cat $O/rp_A/checks.json)"