PaddleCV-SIG / PaddleLabel

飞桨智能标注,让标注快人一步
https://paddlecv-sig.github.io/PaddleLabel/
Apache License 2.0
238 stars 39 forks source link

这种COCO格式好导入不 #86

Closed monkeycc closed 1 year ago

monkeycc commented 1 year ago

这种COCO格式好导入不

用于实例分割的数据集

微信截图_20220919230503 当然 TrainVal 是多余出来的

Annotation 文件夹 是 标注文件 微信截图_20220919230637

其他的 都是对应的 图片 文件夹

json 标注文件是这样的


{
  "images": [
    {
      "file_name": "AA09MM102.jpg",
      "height": 970,
      "width": 1652,
      "id": 200
    },
    {
      "file_name": "MMfg_160.jpg",
      "height": 682,
      "width": 1024,
      "id": 8000
    },
    {
      "file_name": "MMfg_69.jpg",
      "height": 769,
      "width": 1024,
      "id": 18700
    },
    {
      "file_name": "AAImage20220624162735927.jpg",
      "height": 1365,
      "width": 2048,
      "id": 6100
    },
    {
      "file_name": "AAImage20220624161552375.jpg",
      "height": 1365,
      "width": 2048,
      "id": 4900
    },
    {
      "file_name": "MMfg_252.jpg",
      "height": 682,
      "width": 1024,
      "id": 13500
    },
    {
      "file_name": "MM_20_A.jpg",
      "height": 1094,
      "width": 1642,
      "id": 19800
    },
    {
      "file_name": "MMfg_175.jpg",
      "height": 682,
      "width": 1024,
      "id": 9100
    },
    {
      "file_name": "AA09MM40.jpg",
      "height": 970,
      "width": 1652,
      "id": 400
    },
    {
      "file_name": "MMfg_184.jpg",
      "height": 682,
      "width": 1024,
      "id": 10000
    },
    {
      "file_name": "MMfg_258.jpg",
      "height": 682,
      "width": 1024,
      "id": 14100
    },
    {
      "file_name": "MMfg_236.jpg",
      "height": 682,
      "width": 1024,
      "id": 12900
    },
    {
      "file_name": "MMfg_282.jpg",
      "height": 682,
      "width": 1024,
      "id": 15900
    },
    {
      "file_name": "MMfg_241.jpg",
      "height": 682,
      "width": 1024,
      "id": 13200
    },
    {
      "file_name": "MMfg_196.jpg",
      "height": 682,
      "width": 1024,
      "id": 10800
    },
    {
      "file_name": "MMfg_276.jpg",
      "height": 575,
      "width": 1024,
      "id": 15500
    },
    {
      "file_name": "MMfg_237.jpg",
      "height": 682,
      "width": 1024,
      "id": 13000
    },
    {
      "file_name": "MMfg_168.jpg",
      "height": 682,
      "width": 1024,
      "id": 8600
    },
    {
      "file_name": "MMfg_177.jpg",
      "height": 682,
      "width": 1024,
      "id": 9300
    },
    {
      "file_name": "MMfg_254.jpg",
      "height": 682,
      "width": 1024,
      "id": 13700
    }
  ],
  "categories": [
    {
      "supercategory": "supercategory",
      "id": 1,
      "name": "__ignore__"
    },
    {
      "supercategory": "supercategory",
      "id": 2,
      "name": "_background_"
    },
    {
      "supercategory": "supercategory",
      "id": 3,
      "name": "MM"
    }
  ],
  "annotations": [
    {
      "id": 300,
      "image_id": 200,
      "bbox": [
        235,
        320,
        1198,
        280
      ],
      "area": 335440,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 500,
      "image_id": 400,
      "bbox": [
        283,
        348,
        1185,
        275
      ],
      "area": 325875,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 5500,
      "image_id": 4900,
      "bbox": [
        494,
        699,
        914,
        139
      ],
      "area": 127046,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 7000,
      "image_id": 6100,
      "bbox": [
        726,
        666,
        524,
        334
      ],
      "area": 175016,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 10900,
      "image_id": 8000,
      "bbox": [
        65,
        139,
        238,
        412
      ],
      "area": 98056,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 11000,
      "image_id": 8000,
      "bbox": [
        273,
        148,
        192,
        394
      ],
      "area": 75648,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 11100,
      "image_id": 8000,
      "bbox": [
        392,
        123,
        236,
        390
      ],
      "area": 92040,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 11200,
      "image_id": 8000,
      "bbox": [
        621,
        124,
        159,
        375
      ],
      "area": 59625,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 11300,
      "image_id": 8000,
      "bbox": [
        792,
        130,
        157,
        386
      ],
      "area": 60602,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 11900,
      "image_id": 8600,
      "bbox": [
        261,
        386,
        424,
        76
      ],
      "area": 32224,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 12400,
      "image_id": 9100,
      "bbox": [
        283,
        431,
        435,
        80
      ],
      "area": 34800,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 12600,
      "image_id": 9300,
      "bbox": [
        288,
        366,
        264,
        139
      ],
      "area": 36696,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 13300,
      "image_id": 10000,
      "bbox": [
        282,
        303,
        390,
        266
      ],
      "area": 103740,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 14100,
      "image_id": 10800,
      "bbox": [
        261,
        366,
        451,
        119
      ],
      "area": 53669,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 16400,
      "image_id": 12900,
      "bbox": [
        288,
        399,
        445,
        74
      ],
      "area": 32930,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 16500,
      "image_id": 13000,
      "bbox": [
        289,
        333,
        436,
        166
      ],
      "area": 72376,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 16700,
      "image_id": 13200,
      "bbox": [
        248,
        379,
        442,
        105
      ],
      "area": 46410,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 17000,
      "image_id": 13500,
      "bbox": [
        304,
        321,
        394,
        67
      ],
      "area": 26398,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 17100,
      "image_id": 13500,
      "bbox": [
        331,
        434,
        410,
        100
      ],
      "area": 41000,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 17400,
      "image_id": 13700,
      "bbox": [
        384,
        279,
        364,
        164
      ],
      "area": 59696,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 17500,
      "image_id": 13700,
      "bbox": [
        300,
        454,
        403,
        83
      ],
      "area": 33449,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 18100,
      "image_id": 14100,
      "bbox": [
        236,
        453,
        394,
        112
      ],
      "area": 44128,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 20300,
      "image_id": 15500,
      "bbox": [
        234,
        240,
        204,
        320
      ],
      "area": 65280,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 20400,
      "image_id": 15500,
      "bbox": [
        342,
        168,
        161,
        331
      ],
      "area": 53291,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 20500,
      "image_id": 15500,
      "bbox": [
        403,
        136,
        198,
        319
      ],
      "area": 63162,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 20600,
      "image_id": 15500,
      "bbox": [
        515,
        64,
        177,
        332
      ],
      "area": 58764,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 20700,
      "image_id": 15500,
      "bbox": [
        617,
        16,
        171,
        347
      ],
      "area": 59337,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 21100,
      "image_id": 15900,
      "bbox": [
        20,
        276,
        724,
        404
      ],
      "area": 292496,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 21200,
      "image_id": 15900,
      "bbox": [
        113,
        135,
        700,
        409
      ],
      "area": 286300,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 21300,
      "image_id": 15900,
      "bbox": [
        208,
        7,
        642,
        394
      ],
      "area": 252948,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 25900,
      "image_id": 18700,
      "bbox": [
        117,
        368,
        783,
        139
      ],
      "area": 108837,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    },
    {
      "id": 27000,
      "image_id": 19800,
      "bbox": [
        677,
        156,
        313,
        657
      ],
      "area": 205641,
      "iscrowd": 0,
      "category_id": 3,
      "segmentation": []
    }
  ]
}
linhandev commented 1 year ago

coco格式有导入支持