Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
image
imagewidth (px)
480
2k
width
int64
480
2k
height
int64
360
1.5k
objects
dict
960
540
{ "bbox": [ [ 708, 471, 74, 33 ], [ 639, 425, 61, 46 ], [ 594, 399, 64, 51 ], [ 562, 390, 61, 38 ], [ 540, 372, 65, 33 ], [ 514, 333, 68...
960
540
{ "bbox": [ [ 85, 386, 83, 42 ], [ 193, 356, 61, 44 ], [ 95, 451, 83, 52 ], [ 74, 487, 94, 53 ], [ 107, 520, 77, 20 ], [ 239, 429, 58, ...
960
540
{ "bbox": [ [ 341, 218, 41, 17 ], [ 383, 217, 41, 17 ], [ 437, 215, 38, 16 ], [ 183, 225, 43, 17 ], [ 208, 303, 56, 23 ], [ 238, 222, 42...
1,360
765
{ "bbox": [ [ 206, 540, 171, 127 ], [ 250, 553, 177, 140 ], [ 329, 554, 191, 211 ], [ 430, 573, 210, 192 ], [ 596, 600, 168, 163 ], [ 757, 626...
1,360
765
{ "bbox": [ [ 8, 410, 143, 115 ], [ 84, 669, 313, 95 ], [ 144, 584, 277, 113 ], [ 222, 511, 248, 105 ], [ 288, 457, 215, 95 ], [ 322, 379, ...
1,360
765
{ "bbox": [ [ 254, 662, 219, 101 ], [ 281, 593, 192, 95 ], [ 304, 521, 194, 90 ], [ 349, 455, 171, 80 ], [ 383, 397, 142, 77 ], [ 391, 363, ...
1,360
765
{ "bbox": [ [ 243, 338, 600, 170 ], [ 318, 270, 537, 110 ], [ 419, 250, 389, 77 ], [ 438, 188, 434, 98 ], [ 462, 172, 413, 68 ], [ 560, 136, ...
1,360
765
{ "bbox": [ [ 612, 424, 550, 223 ], [ 695, 261, 118, 82 ], [ 393, 192, 448, 176 ], [ 693, 152, 23, 37 ], [ 407, 112, 292, 117 ], [ 492, 52, ...
1,360
765
{ "bbox": [ [ 466, 409, 339, 188 ], [ 413, 296, 443, 207 ], [ 386, 221, 396, 175 ], [ 415, 146, 361, 139 ], [ 474, 100, 232, 111 ], [ 479, 50,...
1,360
765
{ "bbox": [ [ 652, 646, 129, 93 ], [ 733, 592, 163, 86 ], [ 789, 548, 134, 71 ], [ 849, 483, 134, 62 ], [ 903, 395, 112, 63 ], [ 961, 343, ...
1,360
765
{ "bbox": [ [ 571, 421, 278, 121 ], [ 481, 307, 278, 127 ], [ 525, 310, 109, 41 ], [ 521, 268, 104, 47 ], [ 504, 246, 103, 47 ], [ 474, 222, ...
1,360
765
{ "bbox": [ [ 12, 345, 214, 142 ], [ 286, 334, 140, 86 ], [ 297, 293, 273, 122 ], [ 377, 281, 244, 111 ], [ 727, 202, 174, 88 ], [ 848, 178, ...
1,360
765
{ "bbox": [ [ 764, 465, 395, 109 ], [ 707, 439, 367, 95 ], [ 1070, 440, 288, 97 ], [ 1111, 631, 249, 127 ], [ 357, 192, 24, 16 ], [ 424, 258, ...
1,360
765
{ "bbox": [ [ 250, 375, 188, 92 ], [ 133, 439, 212, 113 ], [ 2, 508, 232, 142 ], [ 803, 417, 218, 108 ], [ 646, 639, 264, 126 ], [ 871, 328, ...
1,360
765
{ "bbox": [ [ 352, 705, 13, 43 ], [ 399, 674, 171, 90 ], [ 425, 687, 140, 70 ], [ 481, 682, 92, 39 ], [ 210, 738, 112, 27 ], [ 0, 699, 7...
1,360
765
{ "bbox": [ [ 43, 464, 144, 61 ], [ 97, 424, 130, 59 ], [ 136, 394, 120, 54 ], [ 168, 359, 116, 54 ], [ 207, 332, 97, 50 ], [ 121, 303, ...
960
540
{ "bbox": [ [ 214, 434, 47, 55 ], [ 88, 469, 28, 60 ], [ 103, 457, 41, 48 ], [ 74, 439, 28, 81 ], [ 201, 358, 20, 50 ], [ 212, 324, 20, ...
960
540
{ "bbox": [ [ 316, 246, 47, 100 ], [ 339, 196, 34, 74 ], [ 441, 177, 31, 62 ], [ 656, 182, 17, 27 ], [ 551, 154, 13, 34 ], [ 540, 147, 2...
960
540
{ "bbox": [ [ 604, 415, 37, 102 ], [ 846, 217, 20, 30 ], [ 804, 450, 38, 89 ], [ 805, 455, 20, 31 ], [ 821, 431, 26, 102 ], [ 752, 433, ...
960
540
{ "bbox": [ [ 143, 89, 33, 18 ], [ 246, 149, 18, 23 ], [ 392, 173, 13, 27 ], [ 408, 176, 9, 19 ], [ 583, 204, 12, 15 ], [ 638, 228, 11, ...
960
540
{ "bbox": [ [ 333, 472, 32, 36 ], [ 422, 400, 26, 39 ], [ 37, 487, 58, 32 ], [ 162, 307, 43, 52 ], [ 267, 305, 36, 53 ], [ 363, 319, 31,...
960
540
{ "bbox": [ [ 157, 358, 44, 58 ], [ 296, 370, 40, 61 ], [ 397, 368, 27, 63 ], [ 462, 388, 22, 37 ], [ 490, 369, 58, 45 ], [ 347, 451, 30...
960
540
{ "bbox": [ [ 201, 477, 58, 50 ], [ 365, 457, 29, 33 ], [ 391, 474, 40, 33 ], [ 181, 388, 50, 44 ], [ 289, 377, 39, 42 ], [ 365, 384, 38...
960
540
{ "bbox": [ [ 343, 435, 22, 48 ], [ 397, 418, 20, 50 ], [ 454, 392, 18, 50 ], [ 503, 372, 17, 43 ], [ 543, 354, 15, 43 ], [ 585, 335, 13...
960
540
{ "bbox": [ [ 314, 457, 102, 81 ], [ 145, 439, 87, 101 ], [ 472, 488, 99, 51 ], [ 217, 334, 81, 102 ], [ 376, 340, 76, 91 ], [ 508, 364, ...
960
540
{ "bbox": [ [ 126, 503, 39, 36 ], [ 54, 496, 35, 44 ], [ 91, 471, 43, 34 ], [ 47, 480, 47, 42 ], [ 57, 459, 35, 39 ], [ 39, 446, 37, ...
960
540
{ "bbox": [ [ 200, 337, 32, 56 ], [ 327, 299, 22, 55 ], [ 380, 283, 23, 59 ], [ 520, 304, 23, 50 ], [ 689, 412, 22, 51 ], [ 770, 424, 34...
960
540
{ "bbox": [ [ 46, 466, 37, 39 ], [ 97, 481, 43, 43 ], [ 137, 467, 29, 37 ], [ 631, 272, 24, 45 ], [ 434, 285, 21, 43 ], [ 400, 301, 20, ...
960
540
{ "bbox": [ [ 266, 408, 27, 31 ], [ 356, 365, 18, 38 ], [ 370, 353, 16, 35 ], [ 385, 319, 21, 39 ], [ 375, 438, 25, 48 ], [ 403, 359, 15...
960
540
{ "bbox": [ [ 421, 260, 26, 53 ], [ 830, 399, 43, 40 ], [ 685, 218, 30, 38 ], [ 723, 176, 30, 38 ], [ 512, 180, 22, 40 ], [ 526, 183, 21...
960
540
{ "bbox": [ [ 680, 494, 33, 31 ], [ 585, 412, 23, 27 ], [ 800, 367, 36, 33 ], [ 811, 312, 33, 29 ], [ 694, 369, 30, 28 ], [ 716, 243, 26...
960
540
{ "bbox": [ [ 542, 48, 14, 40 ], [ 727, 173, 21, 29 ], [ 782, 247, 33, 35 ], [ 423, 357, 28, 37 ], [ 529, 438, 21, 31 ], [ 876, 442, 40,...
960
540
{ "bbox": [ [ 113, 277, 27, 36 ], [ 601, 27, 13, 29 ], [ 604, 56, 12, 28 ], [ 564, 93, 12, 33 ], [ 577, 90, 14, 37 ], [ 571, 175, 19, ...
960
540
{ "bbox": [ [ 95, 0, 20, 25 ], [ 159, 6, 23, 30 ], [ 61, 74, 15, 17 ], [ 63, 65, 25, 34 ], [ 60, 158, 26, 31 ], [ 74, 142, 33, 41 ...
960
540
{ "bbox": [ [ 165, 229, 20, 30 ], [ 129, 226, 18, 31 ], [ 72, 160, 19, 28 ], [ 79, 155, 21, 33 ], [ 489, 373, 16, 33 ], [ 466, 367, 13, ...
960
540
{ "bbox": [ [ 123, 173, 39, 19 ], [ 177, 167, 45, 16 ], [ 162, 175, 24, 18 ], [ 183, 176, 29, 19 ], [ 107, 143, 33, 14 ], [ 88, 149, 39,...
960
540
{ "bbox": [ [ 567, 412, 16, 34 ], [ 552, 424, 8, 20 ], [ 613, 364, 13, 33 ], [ 638, 358, 12, 30 ], [ 685, 337, 7, 16 ], [ 649, 329, 10, ...
960
540
{ "bbox": [ [ 53, 220, 8, 15 ], [ 25, 220, 12, 19 ], [ 7, 220, 8, 15 ], [ 13, 220, 9, 15 ], [ 66, 253, 13, 14 ], [ 58, 259, 10, 15...
960
540
{ "bbox": [ [ 2, 378, 19, 34 ], [ 20, 395, 25, 28 ], [ 100, 400, 12, 25 ], [ 119, 393, 10, 28 ], [ 108, 389, 13, 31 ], [ 139, 367, 15, ...
960
540
{ "bbox": [ [ 711, 379, 11, 22 ], [ 184, 436, 13, 27 ], [ 151, 324, 8, 14 ], [ 163, 329, 7, 12 ], [ 354, 333, 8, 22 ], [ 330, 399, 29, ...
960
540
{ "bbox": [ [ 177, 432, 12, 32 ], [ 178, 437, 11, 20 ], [ 169, 498, 34, 26 ], [ 203, 425, 19, 27 ], [ 206, 439, 14, 29 ], [ 210, 436, 15...
960
540
{ "bbox": [ [ 445, 355, 11, 34 ], [ 511, 330, 13, 33 ], [ 505, 283, 12, 23 ], [ 594, 242, 11, 25 ], [ 731, 281, 10, 27 ], [ 760, 289, 13...
960
540
{ "bbox": [ [ 131, 213, 8, 19 ], [ 143, 213, 5, 17 ], [ 137, 219, 14, 11 ], [ 121, 235, 9, 21 ], [ 113, 256, 10, 24 ], [ 108, 265, 9, ...
960
540
{ "bbox": [ [ 135, 134, 4, 11 ], [ 144, 151, 6, 13 ], [ 149, 152, 5, 11 ], [ 144, 158, 27, 20 ], [ 163, 234, 9, 23 ], [ 149, 231, 7, ...
960
540
{ "bbox": [ [ 23, 227, 23, 30 ], [ 41, 222, 16, 32 ], [ 85, 207, 21, 27 ], [ 63, 208, 15, 21 ], [ 135, 185, 17, 45 ], [ 135, 178, 42, ...
960
540
{ "bbox": [ [ 218, 179, 14, 16 ], [ 253, 181, 11, 15 ], [ 53, 351, 12, 16 ], [ 69, 348, 11, 19 ], [ 72, 307, 24, 37 ], [ 153, 293, 18, ...
960
540
{ "bbox": [ [ 384, 438, 24, 21 ], [ 650, 352, 22, 42 ], [ 830, 433, 20, 44 ], [ 880, 332, 24, 37 ], [ 813, 232, 17, 34 ], [ 918, 347, 19...
960
540
{ "bbox": [ [ 57, 268, 8, 22 ], [ 129, 262, 9, 21 ], [ 144, 257, 9, 21 ], [ 4, 337, 16, 16 ], [ 6, 347, 19, 11 ], [ 202, 283, 10, ...
960
540
{ "bbox": [ [ 350, 404, 14, 34 ], [ 383, 383, 11, 15 ], [ 185, 315, 9, 12 ], [ 69, 353, 12, 27 ], [ 74, 354, 6, 13 ], [ 87, 373, 13, ...
960
540
{ "bbox": [ [ 218, 444, 19, 46 ], [ 233, 311, 21, 61 ], [ 286, 425, 26, 55 ], [ 301, 384, 26, 80 ], [ 850, 432, 29, 75 ], [ 813, 435, 30...
960
540
{ "bbox": [ [ 565, 454, 21, 49 ], [ 633, 435, 16, 29 ], [ 669, 395, 16, 40 ], [ 689, 399, 15, 43 ], [ 485, 402, 22, 43 ], [ 509, 367, 19...
960
540
{ "bbox": [ [ 59, 88, 6, 5 ], [ 63, 92, 6, 5 ], [ 66, 90, 7, 4 ], [ 62, 85, 8, 6 ], [ 42, 147, 10, 5 ], [ 31, 157, 9, 4 ], ...
1,360
765
{ "bbox": [ [ 1318, 0, 11, 21 ], [ 1283, 0, 32, 24 ], [ 1298, 36, 10, 20 ], [ 1289, 29, 15, 25 ], [ 1256, 84, 6, 16 ], [ 1251, 79, 13, ...
1,360
765
{ "bbox": [ [ 963, 638, 75, 53 ], [ 1000, 620, 90, 55 ], [ 972, 591, 94, 52 ], [ 967, 574, 54, 56 ], [ 983, 621, 41, 78 ], [ 1026, 609, ...
1,360
765
{ "bbox": [ [ 0, 20, 46, 34 ], [ 64, 25, 11, 17 ], [ 44, 47, 65, 27 ], [ 47, 31, 55, 18 ], [ 81, 18, 63, 28 ], [ 103, 3, 64, 23 ...
1,360
765
{ "bbox": [ [ 566, 688, 24, 64 ], [ 478, 684, 31, 54 ], [ 492, 653, 35, 62 ], [ 111, 457, 45, 64 ], [ 1, 476, 30, 55 ], [ 24, 459, 37, ...
1,360
765
{ "bbox": [ [ 619, 487, 39, 69 ], [ 761, 429, 24, 50 ], [ 753, 390, 22, 58 ], [ 824, 693, 32, 72 ], [ 862, 691, 31, 63 ], [ 997, 273, 29...
1,360
765
{ "bbox": [ [ 569, 559, 49, 64 ], [ 666, 492, 36, 59 ], [ 665, 491, 36, 59 ], [ 514, 629, 43, 60 ], [ 468, 673, 36, 53 ], [ 491, 659, 36...
1,360
765
{ "bbox": [ [ 792, 684, 30, 66 ], [ 524, 321, 28, 51 ], [ 522, 343, 28, 42 ], [ 565, 284, 24, 51 ], [ 564, 306, 26, 41 ], [ 951, 477, 26...
1,360
765
{ "bbox": [ [ 492, 574, 34, 77 ], [ 216, 666, 52, 74 ], [ 62, 586, 63, 53 ], [ 322, 565, 34, 74 ], [ 232, 331, 45, 49 ], [ 305, 274, 39,...
1,360
765
{ "bbox": [ [ 287, 600, 26, 75 ], [ 370, 572, 37, 52 ], [ 76, 424, 34, 49 ], [ 9, 452, 45, 56 ], [ 209, 367, 27, 47 ], [ 311, 322, 41, ...
1,360
765
{ "bbox": [ [ 319, 357, 31, 58 ], [ 344, 335, 29, 42 ], [ 205, 288, 16, 43 ], [ 268, 187, 17, 42 ], [ 227, 170, 15, 38 ], [ 422, 345, 25...
1,360
765
{ "bbox": [ [ 505, 524, 29, 78 ], [ 900, 616, 34, 79 ], [ 1259, 630, 46, 79 ], [ 1293, 642, 41, 77 ], [ 1015, 308, 26, 59 ], [ 1036, 323, ...
1,360
765
{ "bbox": [ [ 452, 647, 41, 90 ], [ 490, 644, 30, 91 ], [ 521, 640, 31, 85 ], [ 174, 596, 36, 73 ], [ 47, 512, 35, 76 ], [ 285, 440, 28,...
1,360
765
{ "bbox": [ [ 134, 285, 38, 50 ], [ 1, 370, 25, 46 ], [ 241, 245, 38, 42 ], [ 346, 209, 27, 35 ], [ 372, 195, 21, 33 ], [ 390, 196, 18, ...
1,360
765
{ "bbox": [ [ 471, 440, 33, 67 ], [ 715, 328, 24, 51 ], [ 625, 278, 19, 51 ], [ 600, 285, 20, 51 ], [ 582, 269, 20, 51 ], [ 566, 279, 18...
1,360
765
{ "bbox": [ [ 1243, 626, 36, 55 ], [ 1208, 537, 52, 91 ], [ 1156, 539, 35, 99 ], [ 1062, 519, 42, 106 ], [ 991, 561, 41, 106 ], [ 1015, 497, ...
1,360
765
{ "bbox": [ [ 1220, 198, 69, 61 ], [ 1286, 217, 42, 49 ], [ 1059, 164, 30, 65 ], [ 1085, 273, 31, 69 ], [ 1080, 261, 18, 54 ], [ 1060, 244, ...
1,360
765
{ "bbox": [ [ 69, 3, 30, 23 ], [ 62, 0, 15, 28 ], [ 47, 7, 15, 34 ], [ 34, 9, 19, 33 ], [ 24, 62, 19, 41 ], [ 212, 87, 16, 40 ...
1,360
765
{ "bbox": [ [ 267, 700, 42, 63 ], [ 307, 700, 52, 64 ], [ 753, 380, 34, 70 ], [ 938, 383, 38, 80 ], [ 998, 426, 35, 67 ], [ 1017, 487, 3...
1,360
765
{ "bbox": [ [ 643, 224, 14, 46 ], [ 702, 269, 17, 41 ], [ 774, 241, 14, 44 ], [ 631, 345, 17, 51 ], [ 650, 361, 19, 57 ], [ 650, 348, 18...
End of preview. Expand in Data Studio

FineVisDrone — VisDrone2019-DET in the unified detection format

Source: official VisDrone2019-DET zips (ultralytics-hosted mirror). Task page: https://github.com/VisDrone/VisDrone-Dataset

Converted by the finedet project into a unified, AutoTrain-compatible layout: image / width / height / objects{bbox, category} with COCO-format [x, y, w, h] boxes in absolute pixels. Boxes are clipped to the image and empty boxes dropped; category ids are densified per the category tables below.

Box format

objects.bbox follows the COCO convention: [x, y, w, h] in absolute pixels, origin at the image's top-left corner.

License

Original dataset: VisDrone2019-DET (AISKYEYE, Tianjin University), CC BY-NC-SA 3.0. This conversion is redistributed non-commercially under the same terms with attribution.

Example images

Boxes are colored by category: near-transparent fill, opaque outline.

Conversion notes

Dropped pseudo-classes 0 (ignored regions) and 11 (others), and ground-truth lines with score == 0 (ignore flag). test = official test-dev.

Splits

  • test: 1610 images
  • train: 6471 images
  • validation: 548 images

Categories

id original id name
0 1 pedestrian
1 2 people
2 3 bicycle
3 4 car
4 5 van
5 6 truck
6 7 tricycle
7 8 awning-tricycle
8 9 bus
9 10 motor

Training with transformers

The boxes are already in the absolute-pixel COCO [x, y, w, h] format that AutoImageProcessor expects, so fine-tuning a detector needs no bbox conversion:

import torch
from datasets import load_dataset
from transformers import (AutoImageProcessor, AutoModelForObjectDetection,
                          Trainer, TrainingArguments)

ds = load_dataset("finedet/visdrone")
obj_feat = ds["train"].features["objects"]
if hasattr(obj_feat, "feature"):
    obj_feat = obj_feat.feature
cat_feat = obj_feat["category"]
names = (cat_feat.feature if hasattr(cat_feat, "feature") else cat_feat).names

checkpoint = "facebook/detr-resnet-50"
processor = AutoImageProcessor.from_pretrained(checkpoint)
model = AutoModelForObjectDetection.from_pretrained(
    checkpoint,
    id2label=dict(enumerate(names)),
    label2id={n: i for i, n in enumerate(names)},
    ignore_mismatched_sizes=True,
)


def transform(batch):
    images = [img.convert("RGB") for img in batch["image"]]
    annotations = [
        {"image_id": i,
         "annotations": [
             {"bbox": box, "category_id": cat, "area": box[2] * box[3], "iscrowd": 0}
             for box, cat in zip(objs["bbox"], objs["category"])
         ]}
        for i, objs in enumerate(batch["objects"])
    ]
    return processor(images=images, annotations=annotations, return_tensors="pt")


def collate(batch):
    return {"pixel_values": torch.stack([x["pixel_values"] for x in batch]),
            "labels": [x["labels"] for x in batch]}


trainer = Trainer(
    model=model,
    args=TrainingArguments(output_dir="out", per_device_train_batch_size=4,
                           num_train_epochs=10, learning_rate=1e-5,
                           remove_unused_columns=False),
    train_dataset=ds["train"].with_transform(transform),
    data_collator=collate,
)
trainer.train()
Downloads last month
121