Dataset Viewer
Auto-converted to Parquet Duplicate
image_info
dict
annotations
listlengths
1
202
PIL_image
imagewidth (px)
512
512
PIL_annotation
imagewidth (px)
512
512
{ "file_name": "buildings-extraction-coco-hf/train/image_512/urban_0183_1_0.jpg", "height": 512, "id": 1, "width": 512 }
[ { "area": 2016, "bbox": [ 390, 466, 73, 46 ], "category_id": 0, "id": 1, "image_id": 1, "iscrowd": 0, "segmentation": [ [ 435, 465, 463, 506, 456, 511, 402, 511, 390, 494 ...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/rural_0222_1_0.jpg", "height": 512, "id": 2, "width": 512 }
[ { "area": 422, "bbox": [ 123, 497, 30, 15 ], "category_id": 0, "id": 32, "image_id": 2, "iscrowd": 0, "segmentation": [ [ 152, 497, 153, 511, 124, 511, 123, 498 ] ] }, { "a...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/suburban_0177_1_0.jpg", "height": 512, "id": 3, "width": 512 }
[ { "area": 2583, "bbox": [ 420, 459, 92, 53 ], "category_id": 0, "id": 50, "image_id": 3, "iscrowd": 0, "segmentation": [ [ 494, 460, 496, 464, 512, 459, 512, 500, 504, 488, ...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/suburban_0307_0_1.jpg", "height": 512, "id": 4, "width": 512 }
[ { "area": 953, "bbox": [ 282, 484, 68, 28 ], "category_id": 0, "id": 130, "image_id": 4, "iscrowd": 0, "segmentation": [ [ 338, 484, 350, 507, 341, 512, 282, 512 ] ] }, { "...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/CBD_0052_1_1.jpg", "height": 512, "id": 5, "width": 512 }
[ { "area": 1627, "bbox": [ 97.28, 474.112, 68.608, 37.888 ], "category_id": 0, "id": 145, "image_id": 5, "iscrowd": 0, "segmentation": [ [ 123.904, 474.112, 124.928, 492.544, 164.864, 495.616, 162.81...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/rural_0296_0_1.jpg", "height": 512, "id": 6, "width": 512 }
[ { "area": 65, "bbox": [ 344, 469, 7, 10 ], "category_id": 0, "id": 190, "image_id": 6, "iscrowd": 0, "segmentation": [ [ 351, 478, 344, 478, 344, 469, 351, 468 ] ] }, { "ar...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/suburban_0217_0_0.jpg", "height": 512, "id": 7, "width": 512 }
[ { "area": 636, "bbox": [ 386, 489, 40, 23 ], "category_id": 0, "id": 223, "image_id": 7, "iscrowd": 0, "segmentation": [ [ 396, 501, 395, 494, 420, 488, 425, 512, 386, 512, ...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/suburban_0274_0_1.jpg", "height": 512, "id": 8, "width": 512 }
[ { "area": 111, "bbox": [ 503, 495, 9, 17 ], "category_id": 0, "id": 262, "image_id": 8, "iscrowd": 0, "segmentation": [ [ 503, 497, 512, 495, 512, 512, 507, 512 ] ] }, { "a...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/rural_0324_1_0.jpg", "height": 512, "id": 9, "width": 512 }
[ { "area": 924, "bbox": [ 143, 492, 59, 20 ], "category_id": 0, "id": 270, "image_id": 9, "iscrowd": 0, "segmentation": [ [ 145, 500, 153, 501, 154, 491, 202, 498, 200, 511, ...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/suburban_0284_0_0.jpg", "height": 512, "id": 10, "width": 512 }
[ { "area": 1234, "bbox": [ 211, 186, 50, 48 ], "category_id": 0, "id": 275, "image_id": 10, "iscrowd": 0, "segmentation": [ [ 243, 185, 261, 210, 228, 233, 210, 208 ] ] }, { ...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/rural_0150_1_1.jpg", "height": 512, "id": 11, "width": 512 }
[ { "area": 773, "bbox": [ 338, 374, 26, 34 ], "category_id": 0, "id": 279, "image_id": 11, "iscrowd": 0, "segmentation": [ [ 361, 373, 364, 405, 340, 407, 337, 375 ] ] }, { ...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/suburban_0226_1_1.jpg", "height": 512, "id": 12, "width": 512 }
[ { "area": 12405, "bbox": [ 174, 389, 146, 123 ], "category_id": 0, "id": 281, "image_id": 12, "iscrowd": 0, "segmentation": [ [ 201, 490, 174, 475, 176, 446, 181, 428, 186, 4...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/rural_0284_1_1.jpg", "height": 512, "id": 13, "width": 512 }
[ { "area": 170, "bbox": [ 0, 417, 9, 34 ], "category_id": 0, "id": 286, "image_id": 13, "iscrowd": 0, "segmentation": [ [ 0, 416, 9, 448, 1, 450, 0, 446, 0, 417 ] ] ...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/urban_0279_0_1.jpg", "height": 512, "id": 14, "width": 512 }
[ { "area": 223, "bbox": [ 0, 477, 13, 35 ], "category_id": 0, "id": 304, "image_id": 14, "iscrowd": 0, "segmentation": [ [ 12, 512, 0, 512, 0, 476 ] ] }, { "area": 5255, "bbox": [ ...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/urban_0056_1_0.jpg", "height": 512, "id": 15, "width": 512 }
[ { "area": 5874, "bbox": [ 171, 436, 148, 76 ], "category_id": 0, "id": 350, "image_id": 15, "iscrowd": 0, "segmentation": [ [ 258, 436, 318, 507, 312, 512, 173, 512, 170, 508...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/urban_0271_1_0.jpg", "height": 512, "id": 16, "width": 512 }
[ { "area": 1654, "bbox": [ 37, 469, 81, 41 ], "category_id": 0, "id": 364, "image_id": 16, "iscrowd": 0, "segmentation": [ [ 36, 509, 71, 468, 117, 509 ] ] }, { "area": 5454, "bbox": [ ...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/suburban_0303_0_1.jpg", "height": 512, "id": 17, "width": 512 }
[ { "area": 132, "bbox": [ 398, 502, 14, 10 ], "category_id": 0, "id": 390, "image_id": 17, "iscrowd": 0, "segmentation": [ [ 398, 502, 412, 502, 412, 512, 398, 512 ] ] }, { ...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/CBD_0210_0_1.jpg", "height": 512, "id": 18, "width": 512 }
[ { "area": 8, "bbox": [ 187.392, 508.928, 6.144, 3.072 ], "category_id": 0, "id": 409, "image_id": 18, "iscrowd": 0, "segmentation": [ [ 191.488, 508.928, 193.536, 512, 187.392, 512 ] ] }, { ...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/urban_0184_1_1.jpg", "height": 512, "id": 19, "width": 512 }
[ { "area": 853, "bbox": [ 0, 157, 28, 60 ], "category_id": 0, "id": 421, "image_id": 19, "iscrowd": 0, "segmentation": [ [ 28, 179, 10, 203, 0, 216, 0, 156 ] ] }, { "area": ...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/urban_0086_0_0.jpg", "height": 512, "id": 20, "width": 512 }
[ { "area": 1822, "bbox": [ 175, 473, 131, 39 ], "category_id": 0, "id": 467, "image_id": 20, "iscrowd": 0, "segmentation": [ [ 252, 498, 236, 512, 175, 512, 218, 476, 222, 481...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/urban_0218_1_1.jpg", "height": 512, "id": 21, "width": 512 }
[ { "area": 582, "bbox": [ 31, 493, 52, 19 ], "category_id": 0, "id": 489, "image_id": 21, "iscrowd": 0, "segmentation": [ [ 47, 492, 58, 493, 83, 511, 31, 511, 31, 511 ]...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/rural_0047_0_0.jpg", "height": 512, "id": 22, "width": 512 }
[ { "area": 4105, "bbox": [ 355, 400, 96, 47 ], "category_id": 0, "id": 518, "image_id": 22, "iscrowd": 0, "segmentation": [ [ 439, 400, 438, 405, 450, 406, 449, 442, 444, 442,...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/suburban_0091_0_1.jpg", "height": 512, "id": 23, "width": 512 }
[ { "area": 95, "bbox": [ 230, 504, 29, 8 ], "category_id": 0, "id": 551, "image_id": 23, "iscrowd": 0, "segmentation": [ [ 236, 507, 240, 512, 230, 512 ], [ 252, 503, 258,...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/rural_0014_0_0.jpg", "height": 512, "id": 24, "width": 512 }
[ { "area": 7200, "bbox": [ 47, 391, 153, 113 ], "category_id": 0, "id": 559, "image_id": 24, "iscrowd": 0, "segmentation": [ [ 125, 478, 91, 461, 90, 462, 55, 441, 61, 430, ...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/suburban_0288_1_1.jpg", "height": 512, "id": 25, "width": 512 }
[ { "area": 899, "bbox": [ 122, 185, 38, 35 ], "category_id": 0, "id": 563, "image_id": 25, "iscrowd": 0, "segmentation": [ [ 159, 197, 155, 220, 123, 214, 125, 203, 121, 203, ...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/rural_0100_0_0.jpg", "height": 512, "id": 26, "width": 512 }
[ { "area": 5, "bbox": [ 144, 510, 5, 2 ], "category_id": 0, "id": 565, "image_id": 26, "iscrowd": 0, "segmentation": [ [ 149, 512, 143, 512, 144, 509 ] ] }, { "area": 3200, "bbox": [ ...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/CBD_0165_0_0.jpg", "height": 512, "id": 27, "width": 512 }
[ { "area": 692, "bbox": [ 380.928, 464.896, 19.456, 39.936 ], "category_id": 0, "id": 571, "image_id": 27, "iscrowd": 0, "segmentation": [ [ 399.36, 503.808, 381.952, 504.832, 380.928, 463.872, 400.3...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/suburban_0203_0_1.jpg", "height": 512, "id": 28, "width": 512 }
[ { "area": 13, "bbox": [ 0, 299, 3, 8 ], "category_id": 0, "id": 671, "image_id": 28, "iscrowd": 0, "segmentation": [ [ 3, 305, 0, 307, 0, 299 ] ] }, { "area": 134, "bbox": [ 407,...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/urban_0037_0_0.jpg", "height": 512, "id": 29, "width": 512 }
[ { "area": 765, "bbox": [ 0, 421, 36, 38 ], "category_id": 0, "id": 710, "image_id": 29, "iscrowd": 0, "segmentation": [ [ 35, 439, 6, 458, 0, 448, 0, 434, 23, 420 ] ...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/rural_0182_1_0.jpg", "height": 512, "id": 30, "width": 512 }
[ { "area": 1185, "bbox": [ 358, 62, 45, 33 ], "category_id": 0, "id": 717, "image_id": 30, "iscrowd": 0, "segmentation": [ [ 402, 66, 399, 85, 399, 95, 358, 91, 358, 81, ...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/CBD_0203_0_1.jpg", "height": 512, "id": 31, "width": 512 }
[ { "area": 6334, "bbox": [ 296.96, 346.112, 123.904, 102.4 ], "category_id": 0, "id": 721, "image_id": 31, "iscrowd": 0, "segmentation": [ [ 417.79200000000003, 407.552, 419.84000000000003, 413.696, 305.152, ...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/rural_0110_0_1.jpg", "height": 512, "id": 32, "width": 512 }
[ { "area": 144, "bbox": [ 135, 489, 14, 20 ], "category_id": 0, "id": 769, "image_id": 32, "iscrowd": 0, "segmentation": [ [ 149, 488, 147, 504, 141, 508, 135, 498 ] ] }, { ...
{ "file_name": "buildings-extraction-coco-hf/train/image_512/suburban_0146_1_0.jpg", "height": 512, "id": 33, "width": 512 }
[ { "area": 518, "bbox": [ 273, 494, 62, 18 ], "category_id": 0, "id": 784, "image_id": 33, "iscrowd": 0, "segmentation": [ [ 293, 508, 326, 494, 334, 512, 272, 512, 291, 504 ...
End of preview. Expand in Data Studio

Building Extraction Dataset

This dataset is a processed verison of the dataset of the Kaggle competition: https://www.kaggle.com/competitions/building-extraction-generalization-2024/. The original train and validation images and COCO annotations were resized to (512, 512). Then from the segmentations on the COCO annotations, a PIL_annotation file was created for each sample in which the Red channel corresponds to the semantic segmentation mask and the Green channel to the instance segmentation mask. A PIL_image file is also delivered in the dataset for each sample, so it can be downloaded directly without the need of local files.

Note: in the test split, the 'annotations' and 'PIL_annotations' columns are placeholders.

Dataset Structure

  • Train: 3,784 images
  • Validation: 933 images
  • Test: 1000 images (no annotations)

Features

Each split includes:

  • image_info: original coco metadata with filename, width, and height
  • annotations: original coco annotations format
  • PIL_image: image
  • PIL_annotation: masks
Downloads last month
11

Models trained or fine-tuned on tomascanivari/buildings-extraction-coco-hf