Minor updates and improvements (#216)
Co-authored-by: Hardik Dava <39372750+hardikdava@users.noreply.github.com> Co-authored-by: Onuralp Sezer <thunderbirdtr@fedoraproject.org> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@ -533,14 +533,14 @@
|
||||
"from ultralytics import YOLO\n",
|
||||
"\n",
|
||||
"# Load a model\n",
|
||||
"model = YOLO('yolov8n.yaml') # build a new model from scratch\n",
|
||||
"model = YOLO('yolov8n.pt') # load a pretrained model (recommended for training)\n",
|
||||
"model = YOLO('yolov8n.yaml') # build a new model from scratch\n",
|
||||
"model = YOLO('yolov8n.pt') # load a pretrained model (recommended for training)\n",
|
||||
"\n",
|
||||
"# Model usage\n",
|
||||
"results = model.train(data='coco128.yaml', epochs=3) # train the model\n",
|
||||
"results = model.val(data='coco128.yaml') # evaluate model performance on the validation set\n",
|
||||
"results = model.predict(source='https://ultralytics.com/images/bus.jpg') # predict on an image\n",
|
||||
"success = YOLO('yolov8n.pt').export(format='onnx') # export a model to ONNX format"
|
||||
"# Use the model\n",
|
||||
"results = model.train(data='coco128.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",
|
||||
"success = YOLO('yolov8n.pt').export(format='onnx') # export a model to ONNX format"
|
||||
],
|
||||
"metadata": {
|
||||
"id": "bpF9-vS_DAaf"
|
||||
|
Reference in New Issue
Block a user