Cybernaut101 commited on
Commit
b602565
·
verified ·
1 Parent(s): beae2d4

Add dataset README

Browse files
Files changed (1) hide show
  1. README.md +128 -24
README.md CHANGED
@@ -1,24 +1,128 @@
1
- ---
2
- license: cc-by-nc-4.0
3
- configs:
4
- - config_name: default
5
- data_files:
6
- - split: train
7
- path: data/train-*
8
- dataset_info:
9
- features:
10
- - name: id
11
- dtype: string
12
- - name: room_instances
13
- list:
14
- list: uint8
15
- - name: interior_mask
16
- list:
17
- list: uint8
18
- splits:
19
- - name: train
20
- num_bytes: 23258890
21
- num_examples: 10000
22
- download_size: 1100811
23
- dataset_size: 23258890
24
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ task_categories:
4
+ - image-segmentation
5
+ tags:
6
+ - floorplan
7
+ - rplan
8
+ - architecture
9
+ - parquet
10
+ size_categories:
11
+ - 1K<n<10K
12
+ ---
13
+
14
+ # rPlan Floorplan Dataset (32x32, 10K subset)
15
+
16
+ A subset of 10,000 floorplan images from the rPlan dataset, resized to 32x32 pixels.
17
+ Stored as compressed Parquet with numpy arrays for efficient loading.
18
+
19
+ ## Dataset Format
20
+
21
+ Each sample contains:
22
+ - **id**: Image identifier (string)
23
+ - **room_instances**: 32x32 uint8 numpy array - room instance segmentation (35 unique classes)
24
+ - **interior_mask**: 32x32 uint8 numpy array - interior/exterior mask (255 = interior, 0 = exterior)
25
+
26
+ ## Room Instance Color Mapping (35 Classes)
27
+
28
+ | Class ID | Color Value | Class Name |
29
+ |----------|-------------|------------|
30
+ | 0 | 0 | Living Room |
31
+ | 1 | 7 | Master Room_0 |
32
+ | 2 | 15 | Master Room_1 |
33
+ | 3 | 22 | Master Room_2 |
34
+ | 4 | 30 | Master Room_3 |
35
+ | 5 | 37 | Master Room_4 |
36
+ | 6 | 45 | Kitchen_0 |
37
+ | 7 | 52 | Kitchen_1 |
38
+ | 8 | 60 | Bathroom_0 |
39
+ | 9 | 67 | Bathroom_1 |
40
+ | 10 | 75 | Bathroom_2 |
41
+ | 11 | 82 | Dining Room_0 |
42
+ | 12 | 90 | Dining Room_1 |
43
+ | 13 | 97 | Child Room_0 |
44
+ | 14 | 105 | Child Room_1 |
45
+ | 15 | 112 | Child Room_2 |
46
+ | 16 | 120 | Study Room_0 |
47
+ | 17 | 127 | Study Room_1 |
48
+ | 18 | 135 | Study Room_2 |
49
+ | 19 | 142 | Second Room_0 |
50
+ | 20 | 150 | Second Room_1 |
51
+ | 21 | 157 | Second Room_2 |
52
+ | 22 | 165 | Second Room_3 |
53
+ | 23 | 172 | Guest Room_0 |
54
+ | 24 | 180 | Guest Room_1 |
55
+ | 25 | 187 | Guest Room_2 |
56
+ | 26 | 195 | Balcony_0 |
57
+ | 27 | 202 | Balcony_1 |
58
+ | 28 | 210 | Balcony_2 |
59
+ | 29 | 217 | Balcony_3 |
60
+ | 30 | 225 | Entrance |
61
+ | 31 | 232 | Storage_0 |
62
+ | 32 | 240 | Storage_1 |
63
+ | 33 | 247 | Storage_2 |
64
+ | 34 | 255 | External Area |
65
+
66
+ ## Usage
67
+
68
+ ```python
69
+ from datasets import load_dataset
70
+ import numpy as np
71
+
72
+ # Load the dataset
73
+ ds = load_dataset("Cybernaut101/rPlan_subset_10000")
74
+
75
+ # Access a sample
76
+ sample = ds["train"][0]
77
+ room_instances = np.array(sample["room_instances"]) # 32x32 uint8
78
+ interior_mask = np.array(sample["interior_mask"]) # 32x32 uint8
79
+
80
+ # Iterate over the dataset
81
+ for sample in ds["train"]:
82
+ room_instances = np.array(sample["room_instances"])
83
+ interior_mask = np.array(sample["interior_mask"])
84
+ # ... your processing here
85
+
86
+ # Color value -> class name mapping
87
+ ROOM_INSTANCE_COLOR_MAP = {
88
+ 0: "living room",
89
+ 7: "master room_0",
90
+ 15: "master room_1",
91
+ 22: "master room_2",
92
+ 30: "master room_3",
93
+ 37: "master room_4",
94
+ 45: "kitchen_0",
95
+ 52: "kitchen_1",
96
+ 60: "bathroom_0",
97
+ 67: "bathroom_1",
98
+ 75: "bathroom_2",
99
+ 82: "dining room_0",
100
+ 90: "dining room_1",
101
+ 97: "child room_0",
102
+ 105: "child room_1",
103
+ 112: "child room_2",
104
+ 120: "study room_0",
105
+ 127: "study room_1",
106
+ 135: "study room_2",
107
+ 142: "second room_0",
108
+ 150: "second room_1",
109
+ 157: "second room_2",
110
+ 165: "second room_3",
111
+ 172: "guest room_0",
112
+ 180: "guest room_1",
113
+ 187: "guest room_2",
114
+ 195: "balcony_0",
115
+ 202: "balcony_1",
116
+ 210: "balcony_2",
117
+ 217: "balcony_3",
118
+ 225: "entrance",
119
+ 232: "storage_0",
120
+ 240: "storage_1",
121
+ 247: "storage_2",
122
+ 255: "external area",
123
+ }
124
+ ```
125
+
126
+ ## License
127
+
128
+ Please refer to the original rPlan dataset license for usage terms.