Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/ARC_CLOCK_CONTRACT.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ There is no repeated final padding clock.
- duration: every row is the absolute seconds from the chunk anchor to that
waypoint (row zero is the start delay). Decoding projects the rows once onto
the nearest non-decreasing clock by isotonic regression on the slack above
the fastest clock allowed by the translation speed bounds (0.01-5 m/s), so a backwards pair is averaged and no local
the fastest clock allowed by the 5 m/s translation max speed (no min speed:
rotation and gripper ride slow arms), so a backwards pair is averaged and no local
error accumulates into later rows. Provenance `timing_layout` is
`first_delay_absolute_v1`; velocity keeps `first_delay_incoming_v1`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,9 @@ train_datasets:
filters:
filter_lambdas:
- 'lambda row, S=frozenset({''2026-09-19-01-47-36-589000'',''2026-09-19-01-49-02-203000'',''2026-09-19-01-50-15-148000'',''2026-09-19-01-51-24-290000'',''2026-09-19-01-52-36-363000'',''2026-09-19-01-53-54-074000'',''2026-09-19-01-57-05-569000'',''2026-09-19-01-58-31-881000'',''2026-09-19-19-35-14-834000'',''2026-09-19-19-36-18-357000'',''2026-09-19-19-37-28-567000'',''2026-09-19-19-39-01-076000'',''2026-09-19-19-40-20-947000'',''2026-09-19-19-42-56-857000'',''2026-09-19-19-45-44-201000'',''2026-09-19-19-49-14-481000'',''2026-09-19-19-51-14-112000'',''2026-09-19-19-53-03-476000'',''2026-09-19-19-56-10-208000'',''2026-09-19-19-58-28-680000'',''2026-09-19-19-59-57-199000'',''2026-09-19-20-02-18-897000'',''2026-09-19-20-04-54-894000'',''2026-09-19-20-08-17-219000'',''2026-09-19-20-09-45-044000'',''2026-09-19-20-13-34-058000'',''2026-09-24-16-16-51-044000'',''2026-09-24-16-22-08-710000'',''2026-09-24-16-25-15-450000'',''2026-09-24-16-34-19-936000'',''2026-09-24-16-36-18-264000'',''2026-09-24-16-37-25-665000'',''2026-09-24-16-38-27-736000'',''2026-09-24-16-39-36-320000'',''2026-09-24-16-41-18-274000'',''2026-09-24-16-44-07-331000'',''2026-09-24-16-45-05-036000'',''2026-09-24-16-45-59-484000'',''2026-09-24-16-47-33-064000'',''2026-09-24-16-48-35-144000'',''2026-09-24-16-49-40-785000'',''2026-09-24-16-53-27-672000'',''2026-09-24-16-55-19-499000'',''2026-09-24-16-56-21-136000'',''2026-09-24-16-57-27-653000'',''2026-09-24-16-58-26-745000'',''2026-09-24-16-59-25-700000'',''2026-09-24-17-00-20-308000'',''2026-09-24-17-02-52-967000'',''2026-09-24-17-03-56-727000'',''2026-09-24-17-08-24-075000'',''2026-09-24-17-09-25-569000'',''2026-09-24-17-10-17-502000'',''2026-09-24-17-11-16-797000'',''2026-09-24-17-12-19-227000'',''2026-09-24-17-14-09-111000'',''2026-09-24-17-17-15-034000'',''2026-09-24-17-18-35-123000'',''2026-09-24-17-20-59-494000'',''2026-09-24-17-21-59-605000'',''2026-09-24-17-22-54-629000'',''2026-09-24-17-23-57-324000'',''2026-09-24-17-24-57-750000'',''2026-09-24-17-25-58-219000'',''2026-09-24-17-27-48-121000'',''2026-09-24-17-28-40-884000'',''2026-09-24-17-29-38-666000'',''2026-09-24-17-30-45-314000'',''2026-09-24-17-32-45-467000'',''2026-09-24-17-33-40-085000'',''2026-09-24-17-36-04-286000'',''2026-09-24-17-37-05-582000'',''2026-09-24-17-38-57-378000'',''2026-09-24-17-39-50-290000'',''2026-09-24-17-40-48-696000'',''2026-09-24-17-41-59-261000'',''2026-09-24-17-43-00-495000'',''2026-09-24-17-45-36-132000'',''2026-09-24-17-46-40-827000'',''2026-09-24-17-48-03-886000'',''2026-09-24-17-50-03-465000'',''2026-09-24-17-50-59-865000'',''2026-09-24-17-52-36-200000'',''2026-09-24-17-53-33-165000'',''2026-09-24-17-54-37-327000'',''2026-09-24-17-55-39-134000'',''2026-09-24-17-56-27-710000'',''2026-09-24-17-57-26-606000'',''2026-09-24-17-59-13-829000'',''2026-09-24-18-00-21-046000'',''2026-09-24-18-57-41-603000'',''2026-09-24-18-58-34-949000'',''2026-09-24-18-59-31-514000'',''2026-09-24-19-00-19-168000'',''2026-09-24-19-01-06-804000'',''2026-09-24-19-01-53-682000'',''2026-09-24-19-02-45-508000'',''2026-09-24-19-03-45-175000'',''2026-09-24-19-06-08-426000'',''2026-09-24-19-06-56-997000'',''2026-09-24-19-08-37-016000'',''2026-09-24-19-09-29-231000'',''2026-09-24-19-10-59-504000'',''2026-09-24-19-14-02-883000'',''2026-09-24-19-14-52-549000'',''2026-09-24-19-16-07-833000'',''2026-09-24-19-17-58-826000'',''2026-09-24-19-18-51-173000'',''2026-09-24-19-20-07-979000'',''2026-09-24-19-20-57-726000'',''2026-09-24-19-21-48-679000'',''2026-09-24-19-22-45-278000'',''2026-09-24-19-23-37-038000'',''2026-09-24-19-24-36-232000'',''2026-09-24-19-25-28-517000'',''2026-09-24-19-28-10-393000'',''2026-09-24-19-30-55-197000'',''2026-09-24-19-32-03-808000'',''2026-09-24-19-33-18-908000'',''2026-09-24-19-34-30-284000'',''2026-09-24-19-36-14-643000'',''2026-09-24-19-37-52-092000'',''2026-09-24-19-38-53-599000'',''2026-09-24-19-40-00-912000'',''2026-09-24-19-42-21-667000'',''2026-09-24-19-44-44-886000'',''2026-09-24-19-45-54-340000'',''2026-09-24-19-48-06-583000'',''2026-09-24-19-49-27-120000'',''2026-09-24-19-51-07-736000'',''2026-09-24-19-52-01-230000'',''2026-09-24-19-52-55-074000'',''2026-09-24-19-53-56-868000'',''2026-09-24-19-57-19-690000'',''2026-09-24-19-58-17-174000'',''2026-09-24-19-59-47-939000'',''2026-09-24-20-42-36-629000'',''2026-09-24-20-43-29-804000'',''2026-09-24-20-47-44-769000'',''2026-09-24-20-48-44-943000'',''2026-09-24-20-49-50-127000'',''2026-09-24-20-51-36-528000'',''2026-09-24-20-52-28-100000'',''2026-09-24-20-53-23-617000'',''2026-09-24-20-55-00-732000'',''2026-09-24-20-57-04-321000'',''2026-09-24-20-58-29-910000'',''2026-09-24-21-00-02-332000'',''2026-09-24-21-01-01-616000'',''2026-09-24-21-03-03-528000'',''2026-09-24-21-04-05-038000'',''2026-09-24-21-04-59-455000'',''2026-09-24-21-05-58-338000'',''2026-09-24-21-07-01-162000'',''2026-09-24-21-07-59-683000'',''2026-09-24-21-09-41-533000'',''2026-09-24-21-10-37-375000'',''2026-09-24-21-11-51-470000'',''2026-09-24-21-12-51-875000'',''2026-09-24-21-13-53-425000'',''2026-09-24-21-14-57-878000'',''2026-09-24-21-34-24-204000'',''2026-09-24-21-35-22-108000'',''2026-09-24-21-36-18-946000'',''2026-09-24-21-37-15-311000'',''2026-09-24-21-38-11-324000'',''2026-09-24-21-41-17-407000'',''2026-09-24-21-46-50-861000'',''2026-09-24-21-47-47-667000'',''2026-09-24-21-48-49-498000'',''2026-09-24-21-54-47-673000'',''2026-09-24-21-55-43-256000'',''2026-09-24-21-56-42-401000'',''2026-09-24-21-58-04-104000'',''2026-09-24-21-59-02-117000'',''2026-09-24-21-59-55-644000'',''2026-09-24-22-00-51-694000'',''2026-09-24-22-14-04-304000'',''2026-09-24-22-17-02-699000'',''2026-09-24-22-18-02-378000'',''2026-09-24-22-19-03-992000'',''2026-09-24-22-19-58-285000'',''2026-09-24-22-21-19-774000'',''2026-09-24-22-22-35-965000'',''2026-09-24-22-23-37-661000'',''2026-09-24-22-24-30-827000'',''2026-09-24-22-25-19-802000'',''2026-09-24-22-26-08-276000'',''2026-09-24-22-26-59-473000'',''2026-09-24-22-27-45-770000'',''2026-09-24-22-28-39-501000'',''2026-09-24-22-29-39-650000'',''2026-09-24-22-30-34-937000'',''2026-09-24-22-31-47-616000'',''2026-09-24-22-33-19-863000'',''2026-09-24-22-34-41-973000'',''2026-09-24-22-35-36-943000'',''2026-09-24-22-36-43-965000'',''2026-09-24-22-38-33-243000'',''2026-09-24-22-39-24-021000'',''2026-09-24-22-40-22-750000'',''2026-09-24-22-41-14-932000'',''2026-09-24-22-42-01-640000'',''2026-09-24-22-42-57-873000'',''2026-09-24-22-43-49-908000'',''2026-09-24-22-44-46-619000'',''2026-09-24-22-45-41-221000'',''2026-09-24-22-46-32-582000'',''2026-09-24-22-47-38-095000'',''2026-09-24-22-49-57-802000'',''2026-09-24-22-51-05-877000'',''2026-09-24-22-52-31-595000'',''2026-09-24-22-53-30-542000'',''2026-09-24-22-54-24-512000'',''2026-09-24-22-55-23-120000'',''2026-09-24-22-56-30-796000'',''2026-09-24-22-57-21-956000'',''2026-10-04-23-36-23-913000'',''2026-10-04-23-37-34-436000'',''2026-10-04-23-38-29-376000'',''2026-10-04-23-39-16-472000'',''2026-10-04-23-40-52-328000'',''2026-10-04-23-41-52-712000'',''2026-10-04-23-42-56-053000'',''2026-10-04-23-43-57-035000'',''2026-10-04-23-44-53-607000'',''2026-10-04-23-46-52-434000'',''2026-10-04-23-47-59-085000'',''2026-10-04-23-49-35-837000'',''2026-10-04-23-50-56-912000'',''2026-10-04-23-54-51-710000'',''2026-10-04-23-56-06-595000'',''2026-10-04-23-57-46-222000'',''2026-10-04-23-58-41-448000'',''2026-10-05-00-02-16-110000'',''2026-10-05-00-03-11-498000'',''2026-10-05-00-05-08-791000'',''2026-10-05-00-05-59-212000'',''2026-10-05-00-06-58-502000'',''2026-10-05-00-07-58-872000'',''2026-10-05-00-08-53-264000'',''2026-10-05-00-10-35-762000'',''2026-10-05-00-11-29-729000'',''2026-10-05-00-12-18-661000'',''2026-10-05-00-13-29-652000'',''2026-10-05-00-14-21-429000'',''2026-10-05-00-15-14-610000'',''2026-10-05-00-16-08-909000'',''2026-10-05-00-16-59-355000'',''2026-10-05-00-17-57-116000'',''2026-10-05-00-18-55-994000'',''2026-10-05-00-19-54-763000'',''2026-10-05-00-20-47-008000'',''2026-10-05-00-21-58-436000'',''2026-10-05-00-22-57-604000'',''2026-10-05-00-24-31-007000'',''2026-10-05-00-26-07-584000'',''2026-10-05-00-27-15-801000'',''2026-10-05-00-31-38-783000'',''2026-10-05-00-32-45-106000'',''2026-10-05-00-33-47-559000'',''2026-10-05-00-35-12-990000'',''2026-10-05-00-36-16-089000'',''2026-10-05-00-37-13-822000'',''2026-10-05-00-38-18-232000'',''2026-10-05-00-39-24-367000'',''2026-10-05-00-41-27-701000'',''2026-10-05-00-42-19-090000'',''2026-10-05-00-43-16-341000'',''2026-10-05-00-44-13-105000'',''2026-10-05-00-45-25-951000'',''2026-10-05-00-56-21-863000'',''2026-10-05-00-57-25-932000'',''2026-10-05-00-58-32-168000'',''2026-10-05-00-59-27-926000'',''2026-10-05-01-00-54-974000'',''2026-10-05-01-01-45-296000'',''2026-10-05-01-02-49-533000'',''2026-10-05-01-03-48-927000'',''2026-10-05-01-04-46-143000'',''2026-10-05-01-06-29-837000'',''2026-10-05-01-07-25-048000'',''2026-10-05-01-08-20-372000'',''2026-10-05-01-09-18-244000'',''2026-10-05-01-10-19-770000'',''2026-10-05-01-12-49-910000'',''2026-10-05-01-13-43-568000'',''2026-10-05-01-14-39-929000'',''2026-10-05-01-16-21-684000'',''2026-10-05-01-17-23-893000'',''2026-10-05-01-18-26-426000'',''2026-10-05-01-20-34-541000'',''2026-10-05-01-22-50-764000'',''2026-10-05-01-23-48-736000'',''2026-10-05-01-24-47-072000'',''2026-10-05-01-25-53-327000'',''2026-10-05-01-26-55-652000'',''2026-10-05-01-28-28-172000'',''2026-10-05-01-29-23-146000'',''2026-10-05-01-30-18-762000'',''2026-10-05-01-31-16-645000'',''2026-10-05-01-32-23-008000'',''2026-10-05-01-33-17-813000'',''2026-10-05-01-34-12-399000'',''2026-10-05-01-35-22-794000'',''2026-10-05-01-36-20-383000'',''2026-10-05-01-37-22-146000'',''2026-10-05-01-38-38-647000'',''2026-10-05-01-39-35-149000'',''2026-10-05-01-40-39-473000'',''2026-10-05-01-44-28-355000'',''2026-10-05-01-45-48-226000'',''2026-10-05-01-49-21-546000'',''2026-10-05-01-50-27-816000'',''2026-10-05-01-51-57-507000'',''2026-10-05-01-52-56-426000'',''2026-10-05-01-54-06-709000'',''2026-10-05-01-55-23-640000'',''2026-10-05-01-56-21-722000'',''2026-10-05-01-57-32-892000'',''2026-10-05-01-59-23-690000'',''2026-10-05-02-00-19-041000'',''2026-10-05-02-01-24-768000'',''2026-10-05-02-02-55-119000'',''2026-10-05-02-03-58-215000'',''2026-10-05-02-05-10-388000'',''2026-10-05-02-06-12-440000'',''2026-10-05-02-07-34-346000'',''2026-10-05-02-10-20-131000'',''2026-10-05-02-13-30-991000'',''2026-10-05-02-14-39-232000'',''2026-10-05-02-15-46-274000'',''2026-10-05-02-16-53-310000'',''2026-10-05-03-01-44-578000'',''2026-10-05-03-03-05-872000'',''2026-10-05-03-03-57-829000'',''2026-10-05-03-05-06-326000'',''2026-10-05-03-06-07-901000'',''2026-10-05-03-07-47-499000'',''2026-10-05-03-09-15-122000'',''2026-10-05-03-17-52-345000'',''2026-10-05-03-18-47-826000'',''2026-10-05-03-19-43-195000'',''2026-10-05-03-20-43-208000'',''2026-10-05-03-21-36-796000'',''2026-10-05-03-22-28-967000'',''2026-10-05-03-23-24-917000'',''2026-10-05-03-24-25-981000'',''2026-10-05-03-26-31-444000'',''2026-10-05-03-27-32-853000'',''2026-10-05-03-28-28-302000'',''2026-10-05-03-29-26-224000'',''2026-10-05-03-30-24-839000'',''2026-10-05-03-31-18-148000'',''2026-10-05-03-32-14-426000'',''2026-10-05-03-33-06-745000'',''2026-10-05-03-34-02-127000'',''2026-10-05-03-35-01-817000'',''2026-10-05-03-37-50-641000'',''2026-10-05-03-40-11-631000'',''2026-10-05-03-41-07-723000'',''2026-10-05-03-41-59-748000'',''2026-10-05-03-43-21-107000'',''2026-10-05-03-44-36-538000'',''2026-10-05-03-47-00-789000'',''2026-10-05-03-48-20-592000'',''2026-10-20-01-47-13-426000'',''2026-10-20-01-48-18-264000'',''2026-10-20-01-49-12-681000'',''2026-10-20-01-50-38-577000'',''2026-10-20-01-51-32-479000'',''2026-10-20-01-52-30-293000'',''2026-10-20-02-06-15-769000'',''2026-10-20-02-07-29-700000'',''2026-10-20-02-09-08-674000'',''2026-10-20-02-09-56-929000'',''2026-10-20-02-10-51-322000'',''2026-10-20-02-13-08-838000'',''2026-10-20-02-14-03-456000'',''2026-10-20-02-14-46-879000'',''2026-10-20-02-18-48-381000'',''2026-10-20-02-20-23-532000'',''2026-10-20-02-21-46-513000'',''2026-10-20-02-22-45-822000'',''2026-10-20-02-23-49-036000'',''2026-10-20-02-24-37-976000'',''2026-10-20-02-26-58-177000'',''2026-10-20-02-28-00-539000'',''2026-10-20-02-28-58-844000'',''2026-10-20-02-29-55-296000'',''2026-10-20-02-30-45-458000'',''2026-10-20-02-31-39-339000'',''2026-10-20-02-33-01-715000'',''2026-10-20-02-34-06-147000'',''2026-10-20-02-35-32-775000'',''2026-10-20-02-36-28-650000'',''2026-10-20-02-37-24-813000'',''2026-10-20-02-38-17-275000'',''2026-10-20-02-40-10-731000'',''2026-10-20-02-41-54-441000'',''2026-10-20-02-43-13-966000'',''2026-10-20-02-45-01-804000'',''2026-10-20-02-47-10-773000'',''2026-10-20-02-49-20-440000'',''2026-10-20-02-50-32-499000'',''2026-10-20-02-51-44-522000'',''2026-10-20-02-55-31-691000'',''2026-10-20-02-56-48-751000'',''2026-10-20-03-02-44-469000'',''2026-10-20-03-03-48-622000'',''2026-10-20-03-05-03-276000'',''2026-10-20-03-06-24-686000'',''2026-10-20-03-07-26-695000'',''2026-10-20-03-08-41-072000'',''2026-10-20-03-09-48-587000'',''2026-10-20-03-10-59-519000'',''2026-10-20-03-12-10-879000''}): row[''embodiment''] == ''yam_bimanual'' and row[''lab''] == ''rl2'' and row[''task''] in (''organize_stationary'', ''organize_stationary_updated'') and row[''rig_name''] == ''rl2_abc'' and row[''zarr_processed_path''] != '''' and row[''is_deleted''] == False and row[''episode_hash''] in S'
expected_train_episode_count: 417
expected_train_episode_names_sha256: 5128bedbaf3ace41897dbd7a5a9c2adf563aa5031605c0c4af30c5417165e39a
valid_datasets:
yam_bimanual:
expected_train_episode_count: 24
expected_train_episode_names_sha256: 8444289c363ede1f4527515bc668f42f42a586524f760d10c39a07426a4b3243
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,5 @@ evaluator:
streams: ${abc.arc_streams}
logger:
wandb:
id: ${name}_s42
id: ${name}_s${seed}
tags: [rl2, hpt300, "${abc.arc_clock_mode}", "${abc.arc_streams}", open_loop, video]
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ abc:
arc_distance: 0.33
logger:
wandb:
id: ${name}_s42
tags: [rl2, fold_towels, since0924plus74, hpt300, arcdur, absolute_waypoint_time, isotonic, translation, m200_d033, open_loop]
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ abc:
arc_distance: 0.22
logger:
wandb:
id: ${name}_s42
tags: [rl2, stationery, stattempo, sp366e51, bc, arcdur, absolute_waypoint_time, isotonic, translation, m200_d022, open_loop]
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ abc:
arc_distance: 0.22
logger:
wandb:
id: ${name}_s42
tags: [rl2, wireless_earbuds_updated, plus49_20261020, hpt300, arcdur, absolute_waypoint_time, isotonic, translation, m200_d022, open_loop]
19 changes: 8 additions & 11 deletions egomimic/rldb/zarr/arc_length_tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1138,8 +1138,9 @@ def resolve_arc_chunking_mode(mode=None, rotation_distance_unit=None):
SIX_CLOCK_COLUMNS = (0, 7, 3, 10, 6, 13)
CLOCK_COLUMNS = (0, 7, 3, 10)
SINGLE_CLOCK_COLUMNS = (0, 7)
# (min, max) speed bounds of an absolute translation clock, m/s.
TRANSLATION_SPEED_BOUNDS = (0.01, 5.0)
# Max speed of an absolute translation clock, m/s. There is no min speed: a slow arm
# also times the rotation and gripper riding its clock, and a floor replays them fast.
MAX_SPEED = 5.0


def validate_clock_mode(mode):
Expand Down Expand Up @@ -1174,17 +1175,16 @@ def stream_distances(waypoints, off, stream):
return np.abs(np.diff(waypoints[:, off + 6]))


def absolute_times_to_seconds(times, distances, min_speed=None, max_speed=None):
def absolute_times_to_seconds(times, distances, max_speed=None):
"""Absolute waypoint seconds -> start delay and incoming interval seconds.

Elmo's speed-bounded isotonic decode (PR #266): project the predicted times
onto the nearest (least-squares) non-decreasing clock whose moving intervals
last at least distance / max_speed, by isotonic regression on the slack above
that fastest clock. A backwards pair is averaged instead of drifting later
rows late, and no local error sums into later rows. Row zero is the start
delay and stays >= 0. min_speed caps the moving duration at total distance /
min_speed by clipping only the rows past it. Without motion, or without
bounds, this is plain isotonic regression.
delay and stays >= 0. Without motion, or without a bound, this is plain
isotonic regression.
"""
t = np.asarray(times, dtype=np.float64)
cum = np.r_[0.0, np.cumsum(np.asarray(distances, dtype=np.float64))]
Expand All @@ -1193,8 +1193,6 @@ def absolute_times_to_seconds(times, distances, min_speed=None, max_speed=None):
moving = cum[-1] > 0.0
fastest = cum / max_speed if moving and max_speed else np.zeros_like(cum)
slack = np.maximum(isotonic_regression(t - fastest).x, 0.0)
if moving and min_speed:
slack = np.minimum(slack, slack[0] + cum[-1] / min_speed - fastest[-1])
clock = fastest + slack
return np.r_[clock[0], np.diff(clock)]

Expand All @@ -1204,7 +1202,7 @@ def clock_token_seconds(token, clock_mode, streams=None):

Velocity row zero is already seconds. Duration rows are absolute seconds from
the chunk anchor, decoded once by :func:`absolute_times_to_seconds` with the
translation speed bounds; rotation and gripper clocks are only made monotone.
translation max speed; rotation and gripper clocks are only made monotone.
"""
validate_clock_mode(clock_mode)
value = np.array(token, dtype=np.float64)
Expand All @@ -1218,7 +1216,6 @@ def clock_token_seconds(token, clock_mode, streams=None):
)
if STREAM_DIMS[validate_streams(streams)] != value.shape[-1]:
raise ValueError(f"{streams} tokens have {STREAM_DIMS[streams]} columns")
bounds = TRANSLATION_SPEED_BOUNDS
rows = value.reshape(-1, *value.shape[-2:])
for row in rows:
for index, name in enumerate(STREAM_NAMES[streams]):
Expand All @@ -1227,7 +1224,7 @@ def clock_token_seconds(token, clock_mode, streams=None):
row[:, col] = absolute_times_to_seconds(
row[:, col],
stream_distances(row, off, name),
*(bounds if name == "translation" else (None, None)),
MAX_SPEED if name == "translation" else None,
)
value = rows.reshape(value.shape)
return value
Expand Down
2 changes: 1 addition & 1 deletion egomimic/robot/arc_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def _decode(self, row):
(decoded, np.repeat(decoded[-1:], self.action_horizon - steps, axis=0))
)
self.last_stats = {
"replan_steps": steps,
"replan_steps": steps if self.first_stream else None, # 0: replan_every
"horizon": self.action_horizon,
"execute_waypoints": len(token),
}
Expand Down
Loading
Loading