ultralytics 8.2.2 replace COCO128 with COCO8 (#10167)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
626309d221
commit
1110258d37
43 changed files with 154 additions and 156 deletions
|
|
@ -425,7 +425,7 @@
|
|||
"model = YOLO('yolov8n.pt') # load a pretrained model (recommended for training)\n",
|
||||
"\n",
|
||||
"# Use the model\n",
|
||||
"results = model.train(data='coco128.yaml', epochs=3) # train the model\n",
|
||||
"results = model.train(data='coco8.yaml', epochs=3) # train the model\n",
|
||||
"results = model.val() # evaluate model performance on the validation set\n",
|
||||
"results = model('https://ultralytics.com/images/bus.jpg') # predict on an image\n",
|
||||
"results = model.export(format='onnx') # export the model to ONNX format"
|
||||
|
|
@ -467,7 +467,7 @@
|
|||
"from ultralytics import YOLO\n",
|
||||
"\n",
|
||||
"model = YOLO('yolov8n.pt') # load a pretrained YOLOv8n detection model\n",
|
||||
"model.train(data='coco128.yaml', epochs=3) # train the model\n",
|
||||
"model.train(data='coco8.yaml', epochs=3) # train the model\n",
|
||||
"model('https://ultralytics.com/images/bus.jpg') # predict on an image"
|
||||
],
|
||||
"metadata": {
|
||||
|
|
@ -494,7 +494,7 @@
|
|||
"from ultralytics import YOLO\n",
|
||||
"\n",
|
||||
"model = YOLO('yolov8n-seg.pt') # load a pretrained YOLOv8n segmentation model\n",
|
||||
"model.train(data='coco128-seg.yaml', epochs=3) # train the model\n",
|
||||
"model.train(data='coco8-seg.yaml', epochs=3) # train the model\n",
|
||||
"model('https://ultralytics.com/images/bus.jpg') # predict on an image"
|
||||
],
|
||||
"metadata": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue