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:
Glenn Jocher
2023-01-11 00:13:44 +01:00
committed by GitHub
parent 959c11b9bc
commit 7f9d7142c2
6 changed files with 21 additions and 20 deletions

View File

@ -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"