Datasets:
image_id int64 | file_name string | image image | width int32 | height int32 | annotations dict | split string |
|---|---|---|---|---|---|---|
0 | high_quality_architectural_6652_png.rf.I7QXjwgcrX8UkgomE8y8.png | 4,163 | 1,883 | {
"id": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
4... | train | |
1 | colorful_4006_png.rf.I8RZ4krlJV8Aj1qrRBQ5.png | 466 | 982 | {
"id": [
107,
108,
109,
110,
111,
112,
113,
114,
115,
116,
117,
118,
119,
120,
121,
122,
123,
124,
125
],
"category_id": [
5,
5,
1,
7,
7,
7,
7,
3,
7,
7,
3,
7,
7,
7,
7,
7,
... | train | |
2 | high_quality_architectural_10618_png.rf.cxaTQq952O1OxTy3joyq.png | 971 | 1,141 | {
"id": [
126,
127,
128,
129,
130,
131,
132,
133,
134,
135,
136,
137,
138,
139,
140,
141,
142,
143,
144,
145,
146,
147,
148,
149,
150,
151,
152,
153,
154,
155,
156,
157,
158,
159,
... | train | |
3 | high_quality_architectural_9909_png.rf.IDN9LwicKMyu1ZFAG079.png | 1,492 | 969 | {
"id": [
166,
167,
168,
169,
170,
171,
172,
173,
174,
175,
176,
177,
178,
179,
180,
181,
182,
183,
184,
185,
186,
187,
188,
189,
190,
191,
192,
193,
194,
195,
196,
197,
198
],
"cate... | train | |
4 | high_quality_architectural_3015_png.rf.9FagMVaX09EqMMwirlrg.png | 3,269 | 1,949 | {
"id": [
199,
200,
201,
202,
203,
204,
205,
206,
207,
208,
209,
210,
211,
212,
213,
214,
215,
216,
217,
218,
219,
220,
221,
222,
223,
224,
225,
226,
227,
228,
229,
230,
231,
232,
... | train | |
5 | high_quality_12530_png.rf.kcOb7xP5mvhGawWaZLwV.png | 1,633 | 1,248 | {
"id": [
297,
298,
299,
300,
301,
302,
303,
304,
305,
306,
307,
308,
309,
310,
311,
312,
313,
314,
315,
316,
317,
318,
319,
320,
321,
322,
323,
324,
325,
326,
327,
328,
329,
330,
... | train | |
6 | colorful_6451_png.rf.IMeQCjyeMa3CsWN4dgGg.png | 2,812 | 1,582 | {
"id": [
339,
340,
341,
342,
343,
344,
345,
346,
347,
348,
349,
350,
351,
352,
353,
354,
355,
356,
357,
358,
359,
360,
361,
362,
363,
364,
365,
366,
367,
368,
369,
370,
371,
372,
... | train | |
7 | high_quality_architectural_7660_png.rf.7k0waVRu7j02Zvg3VWPu.png | 2,151 | 1,515 | {
"id": [
406,
407,
408,
409,
410,
411,
412,
413,
414,
415,
416,
417,
418,
419,
420,
421,
422,
423,
424,
425,
426,
427,
428,
429,
430,
431,
432,
433,
434,
435,
436,
437,
438,
439,
... | train | |
8 | high_quality_architectural_13583_png.rf.468PJ76BdL8J70rG6mJq.png | 1,057 | 962 | {
"id": [
498,
499,
500,
501,
502,
503,
504,
505,
506,
507,
508,
509,
510,
511,
512,
513,
514,
515,
516,
517,
518,
519,
520,
521,
522,
523,
524,
525,
526,
527,
528,
529,
530,
531,
... | train | |
9 | high_quality_architectural_68_png.rf.IlGSZsggiWHrlrIaLgLB.png | 1,213 | 1,002 | {
"id": [
542,
543,
544,
545,
546,
547,
548,
549,
550,
551,
552,
553,
554,
555,
556,
557,
558,
559,
560,
561,
562,
563,
564,
565,
566,
567,
568,
569,
570,
571,
572,
573,
574,
575,
... | train | |
10 | high_quality_architectural_10500_png.rf.81Bt1VXjjgl8SVLsftUL.png | 1,361 | 1,565 | {
"id": [
590,
591,
592,
593,
594,
595,
596,
597,
598,
599,
600,
601,
602,
603,
604,
605,
606,
607,
608,
609,
610,
611,
612,
613,
614,
615,
616,
617,
618,
619,
620,
621,
622,
623,
... | train | |
11 | high_quality_architectural_10478_png.rf.Krgj9VmX4FgQh6rkDZhX.png | 912 | 1,005 | {
"id": [
645,
646,
647,
648,
649,
650,
651,
652,
653,
654,
655,
656,
657,
658,
659,
660,
661,
662,
663,
664,
665,
666,
667,
668,
669,
670,
671,
672,
673,
674
],
"category_id": [
5,
5,
... | train | |
12 | high_quality_architectural_12789_png.rf.9jZrxZyxgKDj6VEUSfD9.png | 974 | 1,385 | {
"id": [
675,
676,
677,
678,
679,
680,
681,
682,
683,
684,
685,
686,
687,
688,
689,
690,
691,
692,
693,
694,
695,
696,
697,
698,
699,
700,
701,
702,
703,
704,
705,
706,
707,
708,
... | train | |
13 | high_quality_architectural_14459_png.rf.LQtMba5Z2WVsCA8b2Ckc.png | 1,169 | 997 | {
"id": [
724,
725,
726,
727,
728,
729,
730,
731,
732,
733,
734,
735,
736,
737,
738,
739,
740,
741,
742,
743,
744,
745,
746,
747,
748,
749,
750,
751,
752,
753,
754,
755,
756,
757,
... | train |
CubiCasa5K (COCO format)
Instance-segmentation dataset of residential floor plans, converted to a COCO-style schema and packaged as Parquet with embedded images. Each image is annotated with polygon masks for architectural elements (walls, doors, windows, rooms, fixtures, etc.).
- Repository:
phungpx/cubicassa5k-coco - Source dataset: CubiCasa5K
- Format: COCO instance segmentation (polygon
segmentation+bbox) - Modalities: image + structured annotations
Dataset Summary
| Split | Images | Annotations | Anns/image (mean) | Unique resolutions |
|---|---|---|---|---|
| train | 4,228 | 230,190 | 54.4 | 4,223 |
| valid | 748 | 40,275 | 53.8 | 748 |
| total | 4,976 | 270,465 | — | — |
Images are stored at their original, highly variable resolutions — nearly every image has a unique width × height (4,223 distinct sizes across 4,228 train images), so resizing/padding is required before batched training.
Categories
There are 9 category ids (0–8). Note that category 0 (objects) is a
COCO root/supercategory placeholder and carries no annotations; the 8 real
classes are 1–8.
| id | name | train annotations | valid annotations |
|---|---|---|---|
| 0 | objects | 0 | 0 |
| 1 | bathroom | 6,098 | 1,045 |
| 2 | bed | 29 | 4 |
| 3 | door | 41,642 | 7,328 |
| 4 | kitchen | 142 | 20 |
| 5 | room | 38,777 | 6,811 |
| 6 | stairs | 195 | 37 |
| 7 | wall | 106,340 | 18,605 |
| 8 | window | 36,967 | 6,425 |
Data Fields
Each row is one floor-plan image with all of its annotations:
| Column | Type | Description |
|---|---|---|
image_id |
int64 |
COCO image id |
file_name |
string |
Original image filename |
image |
Image |
The floor-plan image (PIL, decoded on access) |
width |
int32 |
Image width in pixels |
height |
int32 |
Image height in pixels |
annotations |
Sequence[dict] (columnar) |
All instance annotations for the image |
split |
string |
"train" or "valid" |
annotations is stored columnar (a dict of parallel lists). Each instance has:
| Subfield | Type | Description |
|---|---|---|
id |
int64 |
COCO annotation id |
category_id |
int32 |
Category id (see table above) |
bbox |
float32[4] |
[x, y, width, height] (COCO xywh, absolute px) |
area |
float32 |
Annotation area in px² |
iscrowd |
int32 |
COCO crowd flag |
segmentation |
float32[][] |
Polygon(s), each a flat [x, y, x, y, ...] list |
Usage
from datasets import load_dataset
ds = load_dataset("phungpx/cubicassa5k-coco")
print(ds)
sample = ds["train"][0]
image = sample["image"] # PIL.Image
anns = sample["annotations"] # dict of parallel lists
n = len(anns["id"])
print(n, "annotations")
print(anns["category_id"][0], anns["bbox"][0], anns["segmentation"][0])
Data Quality Notes
From EDA over both splits:
- No empty images. Every image in both splits has ≥ 1 annotation.
- No cross-split leakage. 0 duplicate filenames shared between train and valid.
- Severe class imbalance. The majority class
walldwarfs the rarest classes:- train imbalance ratio ≈ 3,667× (
wall= 106,340 vsbed= 29) - valid imbalance ratio ≈ 4,651× (
wall= 18,605 vsbed= 4) bed,kitchen, andstairsare very rare and may need class weighting, oversampling, or focal-style losses.
- train imbalance ratio ≈ 3,667× (
- Many small instances. Annotations with area < 1,024 px² (≈ 32×32):
- train: 10,175 tiny annotations
- valid: 1,773 tiny annotations
- Variable resolution. Images span a wide resolution range and are mostly unique sizes; standardize/resize before training.
- Placeholder category.
category_id = 0(objects) has no annotations and can be dropped when building a label map.
Splits
The dataset ships with two splits, train (4,228 images) and valid
(748 images), preserving the upstream COCO split structure. There is no
dedicated test split.
Curation & Processing
The dataset was loaded from CubiCasa5K COCO annotation files
(_annotations.coco.json per split), validated, and pushed to the Hub with
images embedded as their original compressed bytes (not re-decoded), keeping
storage compact and preserving source fidelity. Annotations were converted to a
columnar Sequence[dict] layout for efficient Parquet storage.
See the EDA + export notebook (notebooks/cubicassa5k_eda_and_push.ipynb) for
the full pipeline: COCO load → visualization → distribution/heatmap analysis →
health checks → DatasetDict build → push → verification.
License & Citation
This dataset is derived from CubiCasa5K. Usage is subject to the original CubiCasa5K license and terms — please review the upstream repository before commercial use. Cite the original work:
@inproceedings{kalervo2019cubicasa5k,
title = {CubiCasa5K: A Dataset and an Improved Multi-Task Model for Floorplan Image Analysis},
author = {Kalervo, Ahti and Ylioinas, Juha and H{\"a}iki{\"o}, Markus and Karhu, Antti and Kannala, Juho},
booktitle = {Scandinavian Conference on Image Analysis (SCIA)},
year = {2019}
}
- Downloads last month
- 143