--- license: apache-2.0 pretty_name: ReplicaOcc size_categories: - 10K.npy ``` Each `.npy` stores an array of shape `(N, 7)`: ```text x, y, z, r, g, b, label ``` The RGB columns are placeholders; the semantic label is stored in the last column. ### 2. Inspect Sparse Voxels `vis_preprocessed.py` visualizes the sparse semantic voxels produced by the previous step. ```bash python vis_preprocessed.py \ --npy ./Replica_OCC/preprocessed/office0.npy ``` This is mainly a sanity check for depth back-projection and semantic labels. ### 3. Build Scene-Level Occupancy Packages `prepare_scene_occ.py` converts `preprocessed/.npy` into a dense scene-level occupancy package. It builds a regular voxel grid, assigns labels by nearest-neighbor lookup, and computes an observed-space mask by projecting voxels into Replica depth frames. Example command: ```bash python prepare_scene_occ.py \ --replica_root ./Replica_SLAM \ --preprocessed_dir ./Replica_OCC/preprocessed \ --out_dir ./Replica_OCC/global_occ_package \ --obs_stride_frame 1 \ --obs_stride_pix 1 \ --mask_dilate 0 \ --obs_max_frames -1 \ --max_depth 10.0 ``` Output: ```text Replica_OCC/global_occ_package/.pkl ``` Each `.pkl` contains: ```text scene_name scene id scene_dim dense occupancy grid dimensions global_pts dense voxel centers in Replica world coordinates global_labels voxel labels global_mask observed-space mask valid_img_count number of depth images used for mask construction valid_img_paths image paths used by the mask builder ``` Label convention: ```text 0 known free space >0 occupied semantic label 255 unknown / unobserved ``` ### 4. Inspect Final Occupancy Packages `vis_scene_occ.py` visualizes the final scene-level occupancy package. ```bash python vis_scene_occ.py \ --pkl ./Replica_OCC/global_occ_package/office0.pkl \ --downsample 1 ``` Visualization color meaning: ```text mask = 0 unknown region mask = 1, label = 0 known free space mask = 1, label > 0 occupied semantic voxels ``` ## Labels `replica_name.txt` stores the semantic class names used by Replica_OCC. Evaluation and visualization scripts can use this file to map semantic label ids to readable names. ## Scenes Replica_OCC contains the following eight Replica scenes: ```text office0 office1 office2 office3 office4 room0 room1 room2 ``` ## Notes - `preprocessed/*.npy` is an intermediate representation used to reproduce `global_occ_package/*.pkl`. - `global_occ_package/*.pkl` is the occupancy ground truth used by evaluation. - `sequences/*` is the RGB-D input used by SLAM and Gaussian mapping. - The dataset follows a ScanNet-like RGB-D folder layout so it can be used by FreeOcc's shared dataloader.