[281] 19:58:21 start {"dry": false}
W1123 19:58:24.204000 42508 site-packages/torch/distributed/elastic/multiprocessing/redirects.py:35] NOTE: Redirects are currently not supported in MacOs.
objc[42508]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10183c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1194a03a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[42508]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10183c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1194a03f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[281] 19:58:29 read_servos {"follower": [], "leader": [], "ok": false}
[281] 19:58:29 screen {"title": "フォロワーの電源を入れて スペース", "lines": ["フォロワーのサーボが読めない (電源が切れている)", "フォロワーの電源を入れる (リーダーも読めないときは リーダーの電源も)", "", "準備ができたら スペース"]}
[281] 19:58:58 key {"title": "フォロワーの電源を入れて スペース", "key": " "}
[281] 19:59:00 read_servos {"follower": [[1, 1959, 0], [2, 950, 0], [3, 3025, 0], [4, 2212, 0], [5, 2043, 0], [6, 2062, 0]], "leader": [[1, 2081, 0], [2, 823, 0], [3, 3111, 0], [4, 2681, 0], [5, 2028, 0], [6, 2005, 0]], "ok": true}
[281] 19:59:00 screen {"title": "0. 始める前", "lines": ["ブロックを 場所1 (依頼274 の点) に置く", "リーダーとフォロワーの姿勢を近づける", "フォロワーのまわりを空ける・電源をすぐ切れるようにする", "次のスペースで つなぐ (力が入る. まだ録らない)", "(止めたいとき: q キー = Ctrl-C)", "", "準備ができたら スペース"]}
[281] 19:59:04 key {"title": "0. 始める前", "key": " "}
[281] 19:59:04 run_start {"run": "step1_record", "argv": ["record", "--dataset.repo_id=local/so101_redblock_box_teleop_v1_pos1b", "--dataset.root=/Users/shimazueiichi/so101_datasets/so101_redblock_box_teleop_v1_pos1b", "--dataset.single_task=Put the red block into the white box", "--dataset.fps=30", "--dataset.num_episodes=2", "--dataset.episode_time_s=25", "--dataset.reset_time_s=3600", "--dataset.no_stamp=true"]}
INFO 2026-11-23 19:59:07 t_record.py:401 {'dataset': {'depth_encoder': {'crf': 30,
                               'depth_max': 10.0,
                               'depth_min': 0.01,
                               'extra_options': {'x265-params': 'lossless=1'},
                               'fast_decode': 0,
                               'g': 2,
                               'pix_fmt': 'gray12le',
                               'preset': None,
                               'shift': 3.5,
                               'use_log': True,
                               'vcodec': 'hevc',
                               'video_backend': 'pyav'},
             'encoder_queue_maxsize': 30,
             'encoder_threads': None,
             'episode_time_s': 25,
             'fps': 30,
             'no_stamp': True,
             'num_episodes': 2,
             'num_image_writer_processes': 0,
             'num_image_writer_threads_per_camera': 4,
             'private': None,
             'push_to_hub': False,
             'repo_id': 'local/so101_redblock_box_teleop_v1_pos1b',
             'reset_time_s': 3600,
             'rgb_encoder': {'crf': 30,
                             'extra_options': {},
                             'fast_decode': 0,
                             'g': 2,
                             'pix_fmt': 'yuv420p',
                             'preset': 12,
                             'vcodec': 'libsvtav1',
                             'video_backend': 'pyav'},
             'root': '/Users/shimazueiichi/so101_datasets/so101_redblock_box_teleop_v1_pos1b',
             'single_task': 'Put the red block into the white box',
             'streaming_encoding': False,
             'tags': None,
             'video': True,
             'video_encoding_batch_size': 1},
 'display_compressed_images': False,
 'display_data': False,
 'display_ip': None,
 'display_mode': 'rerun',
 'display_port': None,
 'play_sounds': True,
 'resume': False,
 'robot': {'calibration_dir': None,
           'cameras': {'desk': {'backend': <Cv2Backends.ANY: 0>,
                                'color_mode': <ColorMode.RGB: 'rgb'>,
                                'fourcc': 'MJPG',
                                'fps': 30,
                                'height': 480,
                                'index_or_path': 0,
                                'rotation': <Cv2Rotation.NO_ROTATION: 0>,
                                'warmup_s': 1,
                                'width': 640},
                       'wrist': {'backend': <Cv2Backends.ANY: 0>,
                                 'color_mode': <ColorMode.RGB: 'rgb'>,
                                 'fourcc': 'MJPG',
                                 'fps': 30,
                                 'height': 480,
                                 'index_or_path': 1,
                                 'rotation': <Cv2Rotation.NO_ROTATION: 0>,
                                 'warmup_s': 1,
                                 'width': 640}},
           'disable_torque_on_disconnect': True,
           'id': 'ptm_follower',
           'max_relative_target': None,
           'num_read_retries': 2,
           'port': '/dev/tty.usbmodem5CBC4321631',
           'position_d_coefficient': 32,
           'position_i_coefficient': 0,
           'position_p_coefficient': 16,
           'use_degrees': True},
 'teleop': {'calibration_dir': None,
            'id': 'ptm_leader',
            'num_read_retries': 2,
            'port': '/dev/tty.usbmodem5CBC4323581',
            'use_degrees': True}}
objc[42508]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10183c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x15af14778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[42508]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10183c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x15af147c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
INFO 2026-11-23 19:59:07 so_leader.py:95 ptm_leader SOLeader connected.
INFO 2026-11-23 19:59:07 safe_259.py:115 [A] follower: connect の直後に目標を今の位置にした
WARNING 2026-11-23 19:59:08 a_opencv.py:284 OpenCVCamera(1) failed to set fourcc=MJPG (actual=    , success=False). Continuing with default format.
INFO 2026-11-23 19:59:09 a_opencv.py:198 OpenCVCamera(1) connected.
WARNING 2026-11-23 19:59:10 a_opencv.py:284 OpenCVCamera(0) failed to set fourcc=MJPG (actual=    , success=False). Continuing with default format.
INFO 2026-11-23 19:59:12 a_opencv.py:198 OpenCVCamera(0) connected.
INFO 2026-11-23 19:59:13 safe_259.py:663 [CAM] 露出・ホワイトバランスを固定した: {'wrist': {'auto-exposure-mode': '8', 'auto-white-balance-temp': 'false', 'white-balance-temp': '4600', 'brightness': '0', 'contrast': '38', 'gamma': '400'}, 'desk': {'auto-exposure-mode': '1', 'auto-white-balance-temp': 'true', 'exposure-time-abs': '101', 'gain': '0'}}
INFO 2026-11-23 19:59:13 safe_259.py:125 [A] follower: 力を入れる直前に目標を今の位置にした (全部)
[281] 19:59:14 torque_on {"run": "step1_record", "max_diff_deg": {"shoulder_pan": 0.0, "shoulder_lift": 0.0, "elbow_flex": 0.0, "wrist_flex": 0.0, "wrist_roll": 0.0, "gripper": 0.0}}
INFO 2026-11-23 19:59:14 follower.py:128 ptm_follower SOFollower connected.
[281] 19:59:14 keyboard_listener {"note": "pynput を使わない (手順のウィンドウで →・← を受ける)"}
INFO 2026-11-23 19:59:14 t_record.py:504 Streaming encoding is disabled. If you have capable hardware, consider enabling it for way faster episode saving. --dataset.streaming_encoding=true --dataset.encoder_threads=2 # --dataset.rgb_encoder.vcodec=auto. More info in the documentation: https://huggingface.co/docs/lerobot/streaming_video_encoding
INFO 2026-11-23 19:59:14 ls/utils.py:151 Recording episode 0
[281] 19:59:14 phase {"phase": "start", "ep": 1}
[281] 19:59:14 screen {"title": "1回目／2　場所1　スペースで始める", "lines": ["ブロックは 場所1 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[281] 19:59:28 key {"phase": "start", "ep": 1, "key": "space", "place": 1}
[281] 19:59:28 phase_end {"phase": "start", "ep": 1, "dur_s": 14.54}
[281] 19:59:28 episode_start {"ep": 1, "try_": 1}
[281] 19:59:47 key {"phase": "episode", "ep": 1, "key": "right"}
[281] 19:59:47 episode_end {"ep": 1, "place": 1, "try": 1, "dur_s": 19.17, "buffer_frames": 575, "end": "right", "label": "ep1_try1"}
INFO 2026-11-23 19:59:47 ls/utils.py:151 Reset the environment
[281] 19:59:47 phase {"phase": "reset", "ep": 1}
[281] 19:59:47 screen {"title": "1回目 終わり", "lines": ["ブロックを 場所1 の点に置き直して (ときどき 向きを少し変える)", "腕を休みの姿勢へ", "スペースで次へ", "うまくいかなかった回は ← で録り直す"]}
[281] 19:59:54 key {"phase": "reset", "ep": 1, "key": "space", "rerecord": false}
[281] 19:59:54 phase_end {"phase": "reset", "ep": 1, "dur_s": 6.77}

Map:   0%|          | 0/575 [00:00<?, ? examples/s]
Map:  81%|████████  | 463/575 [00:00<00:00, 4534.76 examples/s]
Map: 100%|██████████| 575/575 [00:00<00:00, 4345.23 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[281] 20:00:05 saved {"ep": 1, "dur_s": 10.55, "num_episodes": 1}
INFO 2026-11-23 20:00:05 ls/utils.py:151 Recording episode 1
[281] 20:00:05 phase {"phase": "start", "ep": 2}
[281] 20:00:05 screen {"title": "2回目／2　場所1　スペースで始める", "lines": ["ブロックは 場所1 の点 (ときどき 向きを少し変えて置く)", "リーダーとフォロワーの姿勢を近づける", "スペースで 録り始める (最長 25秒)", "入れ終わったら → で早めに終える", "うまくいかなかったら 録っている間に ← で録り直せる", "(止めたいとき: q)"]}
[281] 20:00:08 key {"phase": "start", "ep": 2, "key": "space", "place": 1}
[281] 20:00:08 phase_end {"phase": "start", "ep": 2, "dur_s": 3.07}
[281] 20:00:08 episode_start {"ep": 2, "try_": 1}
INFO 2026-11-23 20:00:08 le_timer.py:570 Cadence (episode 0): 29.99 Hz vs 30 Hz target · 575 ticks, 19.1 s measured · 0/574 ticks over the 33.3 ms budget (work mean 17.5 ms, worst 23.6 ms)
[281] 20:00:24 key {"phase": "episode", "ep": 2, "key": "right"}
[281] 20:00:24 episode_end {"ep": 2, "place": 1, "try": 1, "dur_s": 16.51, "buffer_frames": 495, "end": "right", "label": "ep2_try1"}
[281] 20:00:24 phase {"phase": "end", "ep": 2}
[281] 20:00:24 screen {"title": "2回目 終わり (これで2回)", "lines": ["リーダーで 爪を閉じる", "腕を机の上まで下ろして たたむ (休みの姿勢)", "たたんだら スペース (保存して 力が抜ける)", "幅の外だと 赤い字で関節名が出る → そこを戻す", "うまくいかなかったら ← で録り直す"]}
[281] 20:00:30 key {"phase": "end", "ep": 2, "key": "space"}
[281] 20:00:30 phase_end {"phase": "end", "ep": 2, "dur_s": 5.5}

Map:   0%|          | 0/495 [00:00<?, ? examples/s]
Map:  99%|█████████▉| 491/495 [00:00<00:00, 4878.15 examples/s]
Map: 100%|██████████| 495/495 [00:00<00:00, 4699.84 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[mp4 @ 0x318baf0f0] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x318f47800] Starting second pass: moving the moov atom to the beginning of the file
[281] 20:00:39 saved {"ep": 2, "dur_s": 8.96, "num_episodes": 2}
INFO 2026-11-23 20:00:39 le_timer.py:570 Cadence (episode 1): 29.99 Hz vs 30 Hz target · 495 ticks, 16.5 s measured · 0/494 ticks over the 33.3 ms budget (work mean 17.4 ms, worst 20.9 ms)
INFO 2026-11-23 20:00:39 le_timer.py:617 Cadence summary — whole run, 2 episodes · target 30 Hz (33.3 ms budget per tick): 1070 ticks, 1068 judged
  effective cadence: 29.99 Hz over 35.6 s measured
  ticks over the 33.3 ms work budget: 0/1068 (0.0%) — work mean 17.5 ms, worst 23.6 ms
  loop-body steps (share of measured work):
    observe      mean   1.20 ms · worst   4.96 ms ·   6.9% of work · 1070 calls
    process_obs  mean   0.02 ms · worst   0.13 ms ·   0.1% of work · 1070 calls
    teleop       mean   1.04 ms · worst   1.60 ms ·   6.0% of work · 1070 calls
    send         mean  15.05 ms · worst  21.25 ms ·  86.2% of work · 1070 calls
    record       mean   0.11 ms · worst   1.07 ms ·   0.7% of work · 1070 calls
  pacing headroom: 15.9 ms slept per tick on average (max 25.2 ms) — near zero means the loop is saturated
INFO 2026-11-23 20:00:39 ls/utils.py:151 Stop recording
[281] 20:00:42 lerobot_safe_window {"run": "step1_record", "title": "リーダーで休みの姿勢へ"}
[281] 20:00:42 rest_out_joints {"run": "step1_record", "out": {"wrist_flex": 41.32}}
[281] 20:00:44 rest_out_joints {"run": "step1_record", "out": {}}
INFO 2026-11-23 20:00:45 a_opencv.py:637 OpenCVCamera(1) disconnected.
INFO 2026-11-23 20:00:45 a_opencv.py:637 OpenCVCamera(0) disconnected.
INFO 2026-11-23 20:00:45 follower.py:221 ptm_follower SOFollower disconnected.
INFO 2026-11-23 20:00:45 o_leader.py:144 ptm_leader SOLeader disconnected.
INFO 2026-11-23 20:00:45 ls/utils.py:151 Exiting
[281] 20:00:45 run_end {"name": "step1_record", "exc": null, "ret": null, "torque_kept": false, "file": "/Users/shimazueiichi/r2r2r-scripts/so101/check_281/step1_record.json"}
[281] 20:00:45 screen {"title": "見た物で答える  y / n", "lines": ["2回とも, ブロックが箱に入った？", "", "はい = y     いいえ = n"]}
[281] 20:00:48 key {"title": "見た物で答える  y / n", "key": "y"}
[281] 20:00:48 screen {"title": "見た物で答える  y / n", "lines": ["録っている最中に, フォロワーが ガクッと飛んだ回は あった？", "(y = 飛んだ回があった / n = なかった)", "", "はい = y     いいえ = n"]}
[281] 20:00:52 key {"title": "見た物で答える  y / n", "key": "n"}
[281] 20:00:52 labels {"file": "/Users/shimazueiichi/so101_datasets/so101_redblock_box_teleop_v1_pos1b/episode_labels.json", "fail": []}
[281] 20:00:52 screen {"title": "おわり", "lines": ["手順はすべて終わった", "フォロワーの電源を切ってよい", "", "準備ができたら スペース"]}
[281] 20:00:55 key {"title": "おわり", "key": " "}
[281] 20:00:55 end {}
EXIT=0
