小工具知识网

当前位置: 首页 > 行业知识 > YoloV8实战:图像分割|从数据标注到训练、测试|手把手教你实现

行业知识

YoloV8实战:图像分割|从数据标注到训练、测试|手把手教你实现

2026-11-26 16:46:34 来源:互联网转载

���次使用2017版本的COCO数据集作为例子,演示如何使用YoloV8训练和预测。

下载数据集

Images:

  • 2017 Train images [118K/18GB] :http://images.cocodataset.org/zips/train2017.zip
  • 2017 Val images [5K/1GB]:http://images.cocodataset.org/zips/val2017.zip
  • 2017 Test images [41K/6GB]:http://images.cocodataset.org/zips/unlabeled2017.zip

    Annotations:

    • 2017 annotations_trainval2017 [241MB]:http://images.cocodataset.org/annotations/annotations_trainval2017.zip

      COCO转yolo格式数据集(适用V4,V5,V6,V7,V8)

      最初的研究论文中,COCO中有91个对象类别。然而,在2014年的第一次发布中,仅发布了80个标记和分割图像的对象类别。2014年发布之后,2017年发布了后续版本。详细的类别如下:

      IDOBJECT (PAPER)OBJECT (2014 REL.)OBJECT (2017 REL.)SUPER CATEGORY
      1personpersonpersonperson
      2bicyclebicyclebicyclevehicle
      3carcarcarvehicle
      4motorcyclemotorcyclemotorcyclevehicle
      5airplaneairplaneairplanevehicle
      6busbusbusvehicle
      7traintraintrainvehicle
      8trucktrucktruckvehicle
      9boatboatboatvehicle
      10trafficlighttraffic lighttraffic lightoutdoor
      11fire hydrantfire hydrantfire hydrantoutdoor
      12streetsign--
      13stop signstop signstop signoutdoor
      14parking meterparking meterparking meteroutdoor
      15benchbenchbenchoutdoor
      16birdbirdbirdanimal
      17catcatcatanimal
      18dogdogdoganimal
      19horsehorsehorseanimal
      20sheepsheepsheepanimal
      21cowcowcowanimal
      22elephantelephantelephantanimal
      23bearbearbearanimal
      24zebrazebrazebraanimal
      25giraffegiraffegiraffeanimal
      26hat--accessory
      27backpackbackpackbackpackaccessory
      28umbrellaumbrellaumbrellaaccessory
      29shoe--accessory
      30eye glasses--accessory
      31handbaghandbaghandbagaccessory
      32tietietieaccessory
      33suitcasesuitcasesuitcaseaccessory
      34frisbeefrisbeefrisbeesports
      35skisskisskissports
      36snowboardsnowboardsnowboardsports
      37sports ballsports ballsports ballsports
      38kitekitekitesports
      39baseball batbaseball batbaseball batsports
      40baseball glovebaseball glovebaseball glovesports
      41skateboardskateboardskateboardsports
      42surfboardsurfboardsurfboardsports
      43tennis rackettennis rackettennis racketsports
      44bottlebottlebottlekitchen
      45plate--kitchen
      46wine glasswine glasswine glasskitchen
      47cupcupcupkitchen
      48forkforkforkkitchen
      49knifeknifeknifekitchen
      50spoonspoonspoonkitchen
      51bowlbowlbowlkitchen
      52bananabananabananafood
      53appleappleapplefood
      54sandwichsandwichsandwichfood
      55orangeorangeorangefood
      56broccolibroccolibroccolifood
      57carrotcarrotcarrotfood
      58hot doghot doghot dogfood
      59pizzapizzapizzafood
      60donutdonutdonutfood
      61cakecakecakefood
      62chairchairchairfurniture
      63couchcouchcouchfurniture
      64potted plantpotted plantpotted plantfurniture
      65bedbedbedfurniture
      66mirror--furniture
      67dining tabledining tabledining tablefurniture
      68window--furniture
      69desk--furniture
      70toilettoilettoiletfurniture
      71door--furniture
      72tvtvtvelectronic
      73laptoplaptoplaptopelectronic
      74mousemousemouseelectronic
      75remoteremoteremoteelectronic
      76keyboardkeyboardkeyboardelectronic
      77cell phonecell phonecell phoneelectronic
      78microwavemicrowavemicrowaveappliance
      79ovenovenovenappliance
      80toastertoastertoasterappliance
      81sinksinksinkappliance
      82refrigeratorrefrigeratorrefrigeratorappliance
      83blender--appliance
      84bookbookbookindoor
      85clockclockclockindoor
      86vasevasevaseindoor
      87scissorsscissorsscissorsindoor
      88teddy bearteddy bearteddy bearindoor
      89hair drierhair drierhair drierindoor
      90toothbrushtoothbrushtoothbrushindoor
      91hair brush--indoor

      TypeError: ERROR ❌ segment dataset incorrectly formatted or not a segment dataset. This error can occur when incorrectly training a ‘segment’ model on a ‘detect’ dataset, i.e. ‘yolo train model=yolov8n-seg.pt data=coco8.yaml’. Verify your dataset is

上一篇:华为电脑软件激活教程下载

下一篇:服务器行业如何挣钱?