Dataset Viewer
Auto-converted to Parquet Duplicate
image
imagewidth (px)
59
640
image_id
int64
9
582k
file_name
stringlengths
16
16
width
int32
59
640
height
int32
51
640
objects
dict
147,328
000000147328.jpg
640
480
{ "id": [ 152628 ], "category_id": [ 4 ], "category": [ "motorcycle" ], "bbox": [ [ 39.90999984741211, 97.08000183105469, 511.2799987792969, 326.8299865722656 ] ], "area": [ 85550.1171875 ], "iscrowd": [ 0 ], "segmentation": [ "[[226.52, ...
414,738
000000414738.jpg
640
573
{ "id": [ 341560, 425599, 1982651 ], "category_id": [ 90, 1, 81 ], "category": [ "toothbrush", "person", "sink" ], "bbox": [ [ 265.05999755859375, 126.02999877929688, 33.86000061035156, 66.26000213623047 ], [ 20.600000381469727,...
281,563
000000281563.jpg
500
332
{ "id": [ 435260, 474294, 517321, 562804, 565540, 1042342, 1044205, 1045269, 1045368, 1046442, 1046668, 1245662, 1370458, 1542652, 1899986, 2110381, 2110889, 2110962, 2160368, 2186237 ], "category_id": [ 1, 1, 1, 1, ...
63,879
000000063879.jpg
640
365
{ "id": [ 336129, 674780, 1142474, 1145089, 1158532 ], "category_id": [ 85, 47, 84, 84, 87 ], "category": [ "clock", "cup", "book", "book", "scissors" ], "bbox": [ [ 467.8900146484375, 55.63999938964844, 101.25, 49 ...
531,349
000000531349.jpg
640
640
{ "id": [ 164213 ], "category_id": [ 6 ], "category": [ "bus" ], "bbox": [ [ 70.47000122070312, 106.43000030517578, 512, 431.4599914550781 ] ], "area": [ 180817.84375 ], "iscrowd": [ 0 ], "segmentation": [ "[[93.48, 212.85, 119.37, 125.12...
340,329
000000340329.jpg
640
480
{ "id": [ 169542, 190010, 209572, 1734846 ], "category_id": [ 7, 1, 1, 1 ], "category": [ "train", "person", "person", "person" ], "bbox": [ [ 226.52000427246094, 90.27999877929688, 404.489990234375, 326.8299865722656 ], [...
182,236
000000182236.jpg
640
480
{ "id": [ 668510, 1101850, 1108728, 1176077, 1440035, 1607696, 1632673, 1648960, 1656876, 2141797, 2163198 ], "category_id": [ 47, 73, 75, 31, 32, 64, 75, 84, 84, 84, 1 ], "category": [ "cup", "laptop", "remote...
326,820
000000326820.jpg
548
640
{ "id": [ 19655, 1153039 ], "category_id": [ 64, 86 ], "category": [ "potted plant", "vase" ], "bbox": [ [ 41.29999923706055, 21.43000030517578, 469.239990234375, 573.989990234375 ], [ 174.02000427246094, 533.1300048828125, 163....
149,364
000000149364.jpg
640
410
{ "id": [ 355114, 362386, 362831, 364422, 364458, 394135, 1337463, 1388228, 1798342, 2053638 ], "category_id": [ 3, 3, 3, 3, 3, 8, 3, 11, 8, 8 ], "category": [ "car", "car", "car", "car", "car", "truck", ...
166,598
000000166598.jpg
480
640
{ "id": [ 82194, 1129850 ], "category_id": [ 44, 81 ], "category": [ "bottle", "sink" ], "bbox": [ [ 134.5399932861328, 348.3699951171875, 22.700000762939453, 48.91999816894531 ], [ 109.30000305175781, 384, 214.3000030517578, ...
424,792
000000424792.jpg
640
487
{ "id": [ 51757, 1152754 ], "category_id": [ 17, 86 ], "category": [ "cat", "vase" ], "bbox": [ [ 216.2100067138672, 59.720001220703125, 409.4700012207031, 412.6400146484375 ], [ 6.570000171661377, 29.549999237060547, 298.760009...
178,388
000000178388.jpg
640
480
{ "id": [ 126361 ], "category_id": [ 2 ], "category": [ "bicycle" ], "bbox": [ [ 53.72999954223633, 209.4499969482422, 266.69000244140625, 177.6300048828125 ] ], "area": [ 26576.5625 ], "iscrowd": [ 0 ], "segmentation": [ "[[303.3, 279.92...
568,154
000000568154.jpg
427
640
{ "id": [ 426107, 647187 ], "category_id": [ 1, 42 ], "category": [ "person", "surfboard" ], "bbox": [ [ 156.41000366210938, 44.650001525878906, 119.11000061035156, 566.8200073242188 ], [ 4.119999885559082, 192.0399932861328, 42...
268,150
000000268150.jpg
640
480
{ "id": [ 41200, 41472, 184662, 682817, 1634518 ], "category_id": [ 16, 16, 1, 47, 76 ], "category": [ "bird", "bird", "person", "cup", "keyboard" ], "bbox": [ [ 163.77999877929688, 119.73999786376953, 145.13999938964844, ...
138,473
000000138473.jpg
427
640
{ "id": [ 421369, 623497 ], "category_id": [ 1, 38 ], "category": [ "person", "kite" ], "bbox": [ [ 28.540000915527344, 185.32000732421875, 153.49000549316406, 408.1300048828125 ], [ 39.52000045776367, 17.43000030517578, 234.710...
382,699
000000382699.jpg
500
375
{ "id": [ 402689, 1199667, 1806998, 1807542 ], "category_id": [ 10, 10, 10, 10 ], "category": [ "traffic light", "traffic light", "traffic light", "traffic light" ], "bbox": [ [ 253.35000610351562, 200.97999572753906, 33.15999984741211,...
493,952
000000493952.jpg
640
427
{ "id": [ 347916, 352546, 487213, 1174403, 1209478, 1435565, 1439416, 1439605, 1770745, 1781400, 1782617, 1808866, 2051988 ], "category_id": [ 3, 3, 1, 31, 1, 31, 31, 31, 3, 3, 3, 11, 8 ], "category": [ ...
348,522
000000348522.jpg
640
426
{ "id": [ 326360, 517781 ], "category_id": [ 77, 1 ], "category": [ "cell phone", "person" ], "bbox": [ [ 323.80999755859375, 169.85000610351562, 33.84000015258789, 16.8700008392334 ], [ 267.3299865722656, 26.690000534057617, 27...
66,862
000000066862.jpg
640
480
{ "id": [ 304721, 423995, 443511, 657220, 1188679, 1188955, 1593345, 1712995, 1759112, 1761179, 1762731, 1763397, 1764078, 1764190, 1764288, 2004068, 900100066862 ], "category_id": [ 37, 1, 1, 43, 1, 1, 62, 1, ...
24,457
000000024457.jpg
640
429
{ "id": [ 318184, 502941, 1137189 ], "category_id": [ 65, 1, 84 ], "category": [ "bed", "person", "book" ], "bbox": [ [ 2.9100000858306885, 44.29999923706055, 637.0900268554688, 378.6499938964844 ], [ 423.2200012207031, 45...
160,437
000000160437.jpg
640
480
{ "id": [ 590587, 591955 ], "category_id": [ 24, 24 ], "category": [ "zebra", "zebra" ], "bbox": [ [ 176.61000061035156, 117.55999755859375, 339.1499938964844, 193.9499969482422 ], [ 192, 121.08000183105469, 119.7300033569336, ...
487,414
000000487414.jpg
640
425
{ "id": [ 495824, 503775, 1044264, 1044867, 1537065, 1537756, 1545516, 1545592, 1546635, 1547396, 1547690, 1547803, 1547851, 1904996 ], "category_id": [ 1, 1, 52, 52, 51, 51, 52, 52, 52, 52, 52, 52, 52, ...
329,541
000000329541.jpg
480
640
{ "id": [ 1096450 ], "category_id": [ 70 ], "category": [ "toilet" ], "bbox": [ [ 35.959999084472656, 224.36000061035156, 182.64999389648438, 408.45001220703125 ] ], "area": [ 47446.7421875 ], "iscrowd": [ 0 ], "segmentation": [ "[[217.17...
92,064
000000092064.jpg
640
427
{ "id": [ 1140625, 1183084 ], "category_id": [ 84, 33 ], "category": [ "book", "suitcase" ], "bbox": [ [ 255.8800048828125, 0, 227.57000732421875, 68.08999633789062 ], [ 0, 2.880000114440918, 639.0599975585938, 419.3200073...
281,262
000000281262.jpg
640
478
{ "id": [ 157442, 158154, 158514, 203327, 395707, 1363705, 1363765, 1370234, 1374260, 1374375, 1374412, 1374418 ], "category_id": [ 5, 5, 5, 1, 8, 5, 5, 8, 8, 8, 8, 8 ], "category": [ "airplane", "airplane"...
145,337
000000145337.jpg
640
480
{ "id": [ 428219, 1059440, 1532583, 2108676 ], "category_id": [ 1, 56, 51, 51 ], "category": [ "person", "broccoli", "bowl", "bowl" ], "bbox": [ [ 0, 1.0800000429153442, 612.6699829101562, 67.94999694824219 ], [ 0, ...
372,147
000000372147.jpg
427
640
{ "id": [ 315036, 486571, 535820, 540107, 1713597 ], "category_id": [ 65, 1, 1, 1, 1 ], "category": [ "bed", "person", "person", "person", "person" ], "bbox": [ [ 0.36000001430511475, 436.9100036621094, 426.6400146484375, ...
559,184
000000559184.jpg
640
597
{ "id": [ 294467, 510825 ], "category_id": [ 32, 1 ], "category": [ "tie", "person" ], "bbox": [ [ 278.94000244140625, 81.51000213623047, 216.97999572753906, 398.5 ], [ 12.069999694824219, 6.710000038146973, 603.7100219726562, ...
511,141
000000511141.jpg
640
426
{ "id": [ 1074057 ], "category_id": [ 59 ], "category": [ "pizza" ], "bbox": [ [ 14.300000190734863, 64.9000015258789, 625.7000122070312, 328.7900085449219 ] ], "area": [ 176425.96875 ], "iscrowd": [ 0 ], "segmentation": [ "[[123.89, 64.9...
228,974
000000228974.jpg
640
425
{ "id": [ 1213699, 1232481, 1254677, 1256165, 1271813, 1282491, 1292874, 1294894, 1532943, 1618117, 1673632, 1673640, 1673826, 1674953, 1675019, 1687159, 1689788, 1696569, 1711568, 2147352, 2147523 ], "category_id": [ 1, 1...
92,658
000000092658.jpg
426
640
{ "id": [ 219008, 223287, 1802271, 1802350 ], "category_id": [ 1, 1, 9, 9 ], "category": [ "person", "person", "boat", "boat" ], "bbox": [ [ 111.95999908447266, 186.63999938964844, 143.35000610351562, 282.0799865722656 ], ...
528,299
000000528299.jpg
640
480
{ "id": [ 1043914, 1045148, 1046027, 1132283, 1644545, 1870867, 1871616, 1885492, 2108132, 2197474 ], "category_id": [ 52, 52, 52, 81, 81, 44, 44, 47, 51, 87 ], "category": [ "banana", "banana", "banana", "sink", ...
494,811
000000494811.jpg
640
360
{ "id": [ 85141, 323422, 385044, 385349, 386046, 386882, 388169, 388906, 388996, 414352, 421392, 665168, 666662, 667107, 667572, 667666, 676834, 679947, 697946, 701697, 1063011, 1519262, 1589661, 1864638, 1878413, ...
63,873
000000063873.jpg
640
551
{ "id": [ 589353, 592803 ], "category_id": [ 24, 24 ], "category": [ "zebra", "zebra" ], "bbox": [ [ 11.140000343322754, 34.66999816894531, 563.3900146484375, 506.4200134277344 ], [ 1.2400000095367432, 126.75, 354.55999755859375...
156,073
000000156073.jpg
640
480
{ "id": [ 82776, 123182, 333086, 1139833, 1144175, 1144785, 1145731, 1164613, 1512610, 1513009, 1514132, 1514793, 1525008, 1525127, 1525974, 1526042, 1526178, 1526182, 1537653, 1643843, 1648321, 1653401, 1653926, 2196505, ...
406,342
000000406342.jpg
425
640
{ "id": [ 175492, 177612 ], "category_id": [ 9, 9 ], "category": [ "boat", "boat" ], "bbox": [ [ 18.739999771118164, 451.8900146484375, 151.35000610351562, 73.5199966430664 ], [ 191.05999755859375, 96.12000274658203, 185.0299987...
126,288
000000126288.jpg
481
640
{ "id": [ 422620, 2203010 ], "category_id": [ 1, 35 ], "category": [ "person", "skis" ], "bbox": [ [ 243.80999755859375, 346.0899963378906, 96.4800033569336, 214.89999389648438 ], [ 111.16999816894531, 537.4500122070312, 279.010...
550,547
000000550547.jpg
640
480
{ "id": [ 392683, 690755, 1086708 ], "category_id": [ 67, 48, 61 ], "category": [ "dining table", "fork", "cake" ], "bbox": [ [ 1.0800000429153442, 2.2300000190734863, 638.5599975585938, 472.45001220703125 ], [ 0, 26.19000...
420,414
000000420414.jpg
640
480
{ "id": [ 446630, 606056 ], "category_id": [ 1, 35 ], "category": [ "person", "skis" ], "bbox": [ [ 272.9599914550781, 198.0399932861328, 33.119998931884766, 72.08999633789062 ], [ 249.50999450683594, 265.19000244140625, 62.4799...
240,755
000000240755.jpg
640
480
{ "id": [ 47807, 280168, 381747, 382725, 1595520 ], "category_id": [ 17, 28, 62, 62, 62 ], "category": [ "cat", "umbrella", "chair", "chair", "chair" ], "bbox": [ [ 257.510009765625, 157.17999267578125, 173.0500030517578, ...
218,357
000000218357.jpg
480
640
{ "id": [], "category_id": [], "category": [], "bbox": [], "area": [], "iscrowd": [], "segmentation": [] }
209,073
000000209073.jpg
480
640
{ "id": [ 463840, 573097, 643509, 2002748 ], "category_id": [ 1, 15, 41, 1 ], "category": [ "person", "bench", "skateboard", "person" ], "bbox": [ [ 165.38999938964844, 2.640000104904175, 303.4599914550781, 632.8099975585938 ]...
250,607
000000250607.jpg
480
640
{ "id": [ 1092694 ], "category_id": [ 70 ], "category": [ "toilet" ], "bbox": [ [ 194.05999755859375, 494.42999267578125, 222.10000610351562, 145.57000732421875 ] ], "area": [ 26183.001953125 ], "iscrowd": [ 0 ], "segmentation": [ "[[336....
327,818
000000327818.jpg
640
427
{ "id": [ 307528, 519298, 631107 ], "category_id": [ 37, 1, 39 ], "category": [ "sports ball", "person", "baseball bat" ], "bbox": [ [ 118.0199966430664, 148.97000122070312, 135.3000030517578, 126.66000366210938 ], [ 77.11000061...
175,111
000000175111.jpg
640
478
{ "id": [ 454098, 495639, 618418, 1730599, 2151945 ], "category_id": [ 1, 1, 36, 1, 1 ], "category": [ "person", "person", "snowboard", "person", "person" ], "bbox": [ [ 292.42999267578125, 133.75999450683594, 77.23999786376...
242,755
000000242755.jpg
464
640
{ "id": [ 451653, 1578328, 1888337 ], "category_id": [ 1, 61, 48 ], "category": [ "person", "cake", "fork" ], "bbox": [ [ 21.559999465942383, 42.7599983215332, 422.5199890136719, 576.1599731445312 ], [ 228.89999389648438, ...
236,173
000000236173.jpg
450
350
{ "id": [ 1184553, 1185478 ], "category_id": [ 33, 33 ], "category": [ "suitcase", "suitcase" ], "bbox": [ [ 166.74000549316406, 5.269999980926514, 231.24000549316406, 287.8599853515625 ], [ 88.87999725341797, 86.5199966430664, ...
460,918
000000460918.jpg
364
640
{ "id": [ 647784, 1209256 ], "category_id": [ 42, 1 ], "category": [ "surfboard", "person" ], "bbox": [ [ 61.84000015258789, 413.760009765625, 221.49000549316406, 178.33999633789062 ], [ 83.41999816894531, 104.81999969482422, 24...
29,716
000000029716.jpg
480
640
{ "id": [ 296521 ], "category_id": [ 32 ], "category": [ "tie" ], "bbox": [ [ 131.32000732421875, 0, 272.1499938964844, 640 ] ], "area": [ 110790.0234375 ], "iscrowd": [ 0 ], "segmentation": [ "[[230.89, 632.92, 192.17, 459.25, 174.47, 28...
572,289
000000572289.jpg
640
427
{ "id": [ 28285, 1106640, 1117601 ], "category_id": [ 72, 74, 76 ], "category": [ "tv", "mouse", "keyboard" ], "bbox": [ [ 1.909999966621399, 0, 373.3900146484375, 164.6699981689453 ], [ 579.989990234375, 327.1000061035156...
181,356
000000181356.jpg
500
375
{ "id": [ 413623, 443023, 696979, 2119581 ], "category_id": [ 67, 1, 49, 61 ], "category": [ "dining table", "person", "knife", "cake" ], "bbox": [ [ 0.8399999737739563, 123.08999633789062, 498.8800048828125, 242.6999969482422 ...
554,271
000000554271.jpg
427
640
{ "id": [ 524349, 644477 ], "category_id": [ 1, 41 ], "category": [ "person", "skateboard" ], "bbox": [ [ 110.98999786376953, 14.40999984741211, 302.70001220703125, 451.17999267578125 ], [ 268.4800109863281, 387.4800109863281, 5...
117,770
000000117770.jpg
480
360
{ "id": [ 446225, 471502, 637066, 1191070, 1194292, 1858287 ], "category_id": [ 1, 1, 40, 3, 3, 40 ], "category": [ "person", "person", "baseball glove", "car", "car", "baseball glove" ], "bbox": [ [ 185.64999389648438, ...
483,760
000000483760.jpg
640
426
{ "id": [ 90002, 204390, 208625, 220345, 228039, 233434, 1103829, 1103920, 1620897, 1622370, 1879476, 1938684, 1942529, 2159149 ], "category_id": [ 44, 1, 1, 1, 1, 1, 73, 73, 67, 67, 47, 62, 62, 1 ], ...
318,929
000000318929.jpg
640
480
{ "id": [ 326577, 413842, 480837, 523587, 674025, 1504145, 1721137, 1881310, 1883339, 1886534, 1887151, 1888959, 2214482 ], "category_id": [ 77, 67, 1, 1, 47, 47, 1, 47, 47, 47, 47, 48, 47 ], "category": [ ...
265,544
000000265544.jpg
640
640
{ "id": [ 407367 ], "category_id": [ 10 ], "category": [ "traffic light" ], "bbox": [ [ 0, 363.8699951171875, 209.97999572753906, 266.05999755859375 ] ], "area": [ 27460.404296875 ], "iscrowd": [ 0 ], "segmentation": [ "[[1.44, 514.88, 20...
302,823
000000302823.jpg
640
478
{ "id": [ 1078762, 1079763, 1079853, 1144905, 1616156, 1867254, 1885500, 1891664, 1988066 ], "category_id": [ 60, 60, 60, 84, 67, 44, 47, 49, 84 ], "category": [ "donut", "donut", "donut", "book", "dining table", "...
End of preview. Expand in Data Studio

COCO evaluation sets

Object-detection datasets in the COCO label space, stored as parquet. Every row is one image with its boxes.

config split images
coco2017 train 118287
coco2017 validation 5000
voc2007 train 2501
voc2007 validation 2510
voc2007 test 4952
voc2012 train 5717
voc2012 validation 5823
visdrone2019 train 6471
visdrone2019 validation 548
visdrone2019 test 1610

Columns

  • image: the image
  • image_id, file_name, width, height: same as the COCO images entry
  • coco2017: original COCO 2017 train2017 / val2017, original image_id and annotations (with segmentation)
  • voc2007 / voc2012: VOC classes mapped to COCO category ids and names; boxes are [xmin-1, ymin-1, w, h]; difficult objects have iscrowd=1 so COCO eval ignores them. Splits are the official VOC train / val / test lists; VOC2012 has no test because its labels are not public
  • visdrone2019: VisDrone2019-DET train / val / test (= test-dev; test-challenge labels are not public), drone view, 69% small objects. pedestrian/people -> person, motor -> motorcycle, van -> car (plus a truck ignore box), tricycle/awning-tricycle/others and ignored regions -> ignore boxes (iscrowd=1). Only 6 COCO classes exist (person, bicycle, car, motorcycle, bus, truck). Many images have more than 100 objects, so COCO's default maxDets=100 caps recall
  • objects: list of annotations with id, category_id, category (name), bbox (COCO [x, y, w, h]), area, iscrowd, segmentation (original COCO segmentation as a JSON string; "[]" for VOC and VisDrone)

The original COCO json files are in annotations/ for evaluation with pycocotools.

License

This repository only re-formats the original data; all rights stay with the original authors. COCO: annotations CC BY 4.0, images under their Flickr licenses. PASCAL VOC: images are subject to the Flickr terms of use. VisDrone: academic, non-commercial research use only.

Usage

from datasets import load_dataset

ds = load_dataset("Hyeon1222/COCO", "visdrone2019", split="validation")
ex = ds[0]
ex["image"], ex["objects"]["bbox"], ex["objects"]["category_id"]

load_dataset(..., split=...) downloads every split of the config. To fetch one split only (e.g. COCO val without the 19GB train), pass its files:

ds = load_dataset("Hyeon1222/COCO", data_files={"validation": "data/coco2017/validation-*.parquet"}, split="validation")

PyTorch loader (code/dataset_loaders.py)

A single-file loader that turns every split above into a torchvision-style detection dataset (image tensor at original size, target with boxes in [x1, y1, x2, y2], labels, image_id, iscrowd, area). It downloads only the split you ask for, can stream, and gives the matching COCO ground truth for pycocotools.

pip install torch torchvision pillow datasets huggingface_hub pycocotools
import os, sys
from huggingface_hub import hf_hub_download

p = hf_hub_download("Hyeon1222/COCO", "code/dataset_loaders.py", repo_type="dataset")
sys.path.insert(0, os.path.dirname(p))
from dataset_loaders import build_dataset, make_loader, get_coco_gt, to_coco_results

ds = build_dataset("voc2007_test")                       # label_space="coco91" (COCO category_id, default) or "coco80" (1..80)
loader = make_loader(ds, batch_size=4)
for images, targets in loader:
    ...

ds = build_dataset("coco2017_train", streaming=True, max_images=1000)   # first 1000 images without downloading 19GB

# evaluation: model outputs -> COCO results -> pycocotools
coco_gt = get_coco_gt(ds)                                # annotations/*.json of that split
results = to_coco_results(outputs, targets)              # outputs: [{"boxes", "labels", "scores"}, ...]
loader name config / split
coco2017_train, coco2017_val coco2017 / train, validation
voc2007_train, voc2007_val, voc2007_test voc2007 / train, validation, test
voc2012_train, voc2012_val voc2012 / train, validation
visdrone2019_train, visdrone2019_val, visdrone2019_test visdrone2019 / train, validation, test

Boxes with iscrowd=1 are ignore regions: they are kept in target (drop them with drop_crowd=True) and pycocotools does not count detections on them as false positives. The loader also reads local COCO-format datasets (Open Images with federated verified_labels, BDD100K, COCO-O, custom) through build_dataset(name) once they are registered in a registry.json.

Downloads last month
407