ChangChrisLiu commited on
Commit
94064ea
·
verified ·
1 Parent(s): 483531f

Add reusable RGB graph alignment verifier

Browse files
examples/REALTIME_ENV_GRAPH_README.md CHANGED
@@ -80,3 +80,11 @@ Alignment rules for downstream integration:
80
  - `rgb_frames[v]` is an upright `uint8[256,256,3]` RGB frame rendered with the same vertical flip convention as the segmentation/mask path.
81
  - `save_realtime_graph_snapshot(snapshot, out_dir)` writes `rgb/view_<v>_<camera>.npy` plus `rgb_manifest.json`, so saved debug/eval snapshots contain graph data first and aligned RGB images alongside it.
82
 
 
 
 
 
 
 
 
 
 
80
  - `rgb_frames[v]` is an upright `uint8[256,256,3]` RGB frame rendered with the same vertical flip convention as the segmentation/mask path.
81
  - `save_realtime_graph_snapshot(snapshot, out_dir)` writes `rgb/view_<v>_<camera>.npy` plus `rgb_manifest.json`, so saved debug/eval snapshots contain graph data first and aligned RGB images alongside it.
82
 
83
+ Reusable alignment verifier:
84
+
85
+ ```bash
86
+ MUJOCO_GL=egl PYOPENGL_PLATFORM=egl python scripts/verify_rgb_graph_alignment.py
87
+ ```
88
+
89
+ This 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.
90
+