Clarify canonical model layout and RoboCasa RGB matching
Browse files379 unmodified lines380381382379 unmodified linesThis verifier checks that one `extract_final_graph()` call does not advance simulator state, that re-rendered current RGB and segmentation/masks match the snapshot, that sparse visual features are reproducible from returned `rgb_frames[v]` and masks, and that saved `rgb_manifest.json`/RGB files round-trip.379 unmodified lines380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434379 unmodified linesThis verifier checks that one `extract_final_graph()` call does not advance simulator state, that re-rendered current RGB and segmentation/masks match the snapshot, that sparse visual features are reproducible from returned `rgb_frames[v]` and masks, and that saved `rgb_manifest.json`/RGB files round-trip.## Matching GWAM graph ZIPs to original RoboCasa RGB videosThe released `gwam_v12_sparse_v2/episodes/.../episode_XXXXXX.zip` files contain graph/state/mask/view-evidence/SAM2-feature annotations, but they intentionally do **not** bundle the original RoboCasa RGB videos. To compare or recompute image features exactly, keep a local copy of the source RoboCasa LeRobot dataset and use the shared `split/task/episode_id` key.For a graph ZIP path:```textgwam_v12_sparse_v2/episodes/<split>/<TaskName>/episode_XXXXXX.zip```match it to source RoboCasa videos under the local RoboCasa dataset root:```text<ROBOCASA_DATASET_ROOT>/v1.0/<split>/atomic/<TaskName>/<snapshot_date>/lerobot/videos/chunk-000/observation.images.robot0_agentview_right/episode_XXXXXX.mp4<ROBOCASA_DATASET_ROOT>/v1.0/<split>/atomic/<TaskName>/<snapshot_date>/lerobot/videos/chunk-000/observation.images.robot0_agentview_left/episode_XXXXXX.mp4<ROBOCASA_DATASET_ROOT>/v1.0/<split>/atomic/<TaskName>/<snapshot_date>/lerobot/videos/chunk-000/observation.images.robot0_eye_in_hand/episode_XXXXXX.mp4```On this machine the root is:```text/home/chris/robocasa_datasets```Example verified match:```textGraph ZIP:gwam_v12_sparse_v2/episodes/target/TurnOnSinkFaucet/episode_000505.zipSource RGB videos:/home/chris/robocasa_datasets/v1.0/target/atomic/TurnOnSinkFaucet/20250812/lerobot/videos/chunk-000/observation.images.robot0_agentview_right/episode_000505.mp4/home/chris/robocasa_datasets/v1.0/target/atomic/TurnOnSinkFaucet/20250812/lerobot/videos/chunk-000/observation.images.robot0_agentview_left/episode_000505.mp4/home/chris/robocasa_datasets/v1.0/target/atomic/TurnOnSinkFaucet/20250812/lerobot/videos/chunk-000/observation.images.robot0_eye_in_hand/episode_000505.mp4```Using those three RGB videos plus the stored `visible_masks_rle.jsonl.gz` masks at `t=0`, the current online SAM2/CLIP backend recomputed all stored `visual_features_sparse` rows exactly for the verified example:```textvisible rows at t=0: 50recomputed SAM2 rows: 50 / 50 exact fp16 matchesSAM2 cosine min: 1.0type_clip32 cosine min: 0.99999988```Important notes:- The HF graph ZIP is sufficient for graph-only or graph-feature training/evaluation through `loaders/gwam_graph_dataloader.py`.- Original RGB videos are needed only if you want pixel-level image/graph pairing, feature recomputation, or joint RGB+graph training from the original demonstrations.- Snapshot dates differ by task; if multiple dated source folders exist, choose the one containing the matching `episode_XXXXXX.mp4` and corresponding `data/chunk-000/episode_XXXXXX.parquet`.- Online realtime snapshots saved by `save_realtime_graph_snapshot()` are different: they do include lossless `rgb/view_<v>_<camera>.npy` files plus `rgb_manifest.json`.
docs/REALTIME_ENV_GRAPH_PIPELINE.md+52