Datasets:
Add dataset README
Browse files
README.md
CHANGED
|
@@ -1,24 +1,84 @@
|
|
| 1 |
-
---
|
| 2 |
-
license:
|
| 3 |
-
|
| 4 |
-
-
|
| 5 |
-
|
| 6 |
-
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 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.
|