SpatialGen-Testset / README.md
jiajia
Init Release
8d5d346
|
raw
history blame
1.5 kB
metadata
license: cc-by-nc-4.0

SpatialGen Testset

Code

We provide a test set of 48 preprocessed point clouds and their corresponding GT layouts, multi-view images are cropped from the high-resolution panoramic images.

Folder Structure

Outlines of the dataset files:

SpatialGen-Testset
|-- {scene_id}              # scene folder          
|   |-- rgb                 # multi-view color images
|   |-- semantic            # multi-view semantic maps
|   |-- depth               # multi-view depth maps
|   |-- normal              # multi-view normal maps
|   |-- layout_depth        # rendered depth maps of the GT layout
|   |-- layout_semantic     # rendered semantic maps of the GT layout
|   |-- cameras.json        # camera parameters for the scene
|   `-- room_layout.json    # GT layout
`-- test_split.txt          # testing split

Visualization

We provide a code to visualize the layout data.

data_root_dir = "./example_data/scenes"
vis_root_dir = "./visualization"
scene_data_dirs = [os.path.join(data_root_dir, d) for d in os.listdir(data_root_dir) if d.startswith("scene_")]

for scene_data_dir in scene_data_dirs:
    vis_output_dir = os.path.join(vis_root_dir, scene_data_dir.split('/')[-1])
    # save layout_bbox.ply and camera poses in vis_output_dir
    visualize_spatialgen_data(scene_data_dir, vis_output_dir)