Cybernaut101 commited on
Commit
c79a9df
·
verified ·
1 Parent(s): ad5604d

Add dataset README

Browse files
Files changed (1) hide show
  1. README.md +84 -24
README.md CHANGED
@@ -1,24 +1,84 @@
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_labels
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: 1024559
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)
15
+
16
+ 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_labels**: 32x32 uint8 numpy array - basic room types (13 unique classes)
24
+ - **interior_mask**: 32x32 uint8 numpy array - interior/exterior mask (255 = interior, 0 = exterior)
25
+
26
+ ## Room Color Mapping (13 Classes)
27
+
28
+ | Class ID | Color Value | Class Name |
29
+ |----------|-------------|------------|
30
+ | 0 | 0 | Living Room |
31
+ | 1 | 21 | Master Room |
32
+ | 2 | 42 | Kitchen |
33
+ | 3 | 63 | Bathroom |
34
+ | 4 | 85 | Dining Room |
35
+ | 5 | 106 | Child Room |
36
+ | 6 | 127 | Study Room |
37
+ | 7 | 148 | Second Room |
38
+ | 8 | 170 | Guest Room |
39
+ | 9 | 191 | Balcony |
40
+ | 10 | 212 | Entrance |
41
+ | 11 | 233 | Storage |
42
+ | 12 | 255 | External Area |
43
+
44
+ ## Usage
45
+
46
+ ```python
47
+ from datasets import load_dataset
48
+ import numpy as np
49
+
50
+ # Load the dataset
51
+ ds = load_dataset("Cybernaut101/floorplan_dataset_images_10000_simple_labels")
52
+
53
+ # Access a sample
54
+ sample = ds["train"][0]
55
+ room_labels = np.array(sample["room_labels"]) # 32x32 uint8
56
+ interior_mask = np.array(sample["interior_mask"]) # 32x32 uint8
57
+
58
+ # Iterate over the dataset
59
+ for sample in ds["train"]:
60
+ room_labels = np.array(sample["room_labels"])
61
+ interior_mask = np.array(sample["interior_mask"])
62
+ # ... your processing here
63
+
64
+ # Color value -> class name mapping
65
+ ROOM_COLOR_MAP = {
66
+ 0: "living room",
67
+ 21: "master room",
68
+ 42: "kitchen",
69
+ 63: "bathroom",
70
+ 85: "dining room",
71
+ 106: "child room",
72
+ 127: "study room",
73
+ 148: "second room",
74
+ 170: "guest room",
75
+ 191: "balcony",
76
+ 212: "entrance",
77
+ 233: "storage",
78
+ 255: "external area",
79
+ }
80
+ ```
81
+
82
+ ## License
83
+
84
+ Please refer to the original rPlan dataset license for usage terms.