jiajia
commited on
Commit
·
8d5d346
0
Parent(s):
Init Release
Browse files- .gitattributes +1 -0
- README.md +41 -0
.gitattributes
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-4.0
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
# SpatialGen Testset
|
| 6 |
+
|
| 7 |
+
[Code](https://github.com/manycore-research/SpatialGen)
|
| 8 |
+
|
| 9 |
+
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.
|
| 10 |
+
|
| 11 |
+
## Folder Structure
|
| 12 |
+
|
| 13 |
+
Outlines of the dataset files:
|
| 14 |
+
```bash
|
| 15 |
+
SpatialGen-Testset
|
| 16 |
+
|-- {scene_id} # scene folder
|
| 17 |
+
| |-- rgb # multi-view color images
|
| 18 |
+
| |-- semantic # multi-view semantic maps
|
| 19 |
+
| |-- depth # multi-view depth maps
|
| 20 |
+
| |-- normal # multi-view normal maps
|
| 21 |
+
| |-- layout_depth # rendered depth maps of the GT layout
|
| 22 |
+
| |-- layout_semantic # rendered semantic maps of the GT layout
|
| 23 |
+
| |-- cameras.json # camera parameters for the scene
|
| 24 |
+
| `-- room_layout.json # GT layout
|
| 25 |
+
`-- test_split.txt # testing split
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
## Visualization
|
| 29 |
+
|
| 30 |
+
We provide a [code](https://github.com/manycore-research/SpatialGen/blob/main/visualize_layout.py) to visualize the layout data.
|
| 31 |
+
|
| 32 |
+
```python
|
| 33 |
+
data_root_dir = "./example_data/scenes"
|
| 34 |
+
vis_root_dir = "./visualization"
|
| 35 |
+
scene_data_dirs = [os.path.join(data_root_dir, d) for d in os.listdir(data_root_dir) if d.startswith("scene_")]
|
| 36 |
+
|
| 37 |
+
for scene_data_dir in scene_data_dirs:
|
| 38 |
+
vis_output_dir = os.path.join(vis_root_dir, scene_data_dir.split('/')[-1])
|
| 39 |
+
# save layout_bbox.ply and camera poses in vis_output_dir
|
| 40 |
+
visualize_spatialgen_data(scene_data_dir, vis_output_dir)
|
| 41 |
+
```
|