|
|
@ -84,9 +84,7 @@
|
|
|
|
"source": [
|
|
|
|
"source": [
|
|
|
|
"# Git clone method (for development)\n",
|
|
|
|
"# Git clone method (for development)\n",
|
|
|
|
"!git clone https://github.com/ultralytics/ultralytics\n",
|
|
|
|
"!git clone https://github.com/ultralytics/ultralytics\n",
|
|
|
|
"%pip install -e ultralytics\n",
|
|
|
|
"%pip install -qe ultralytics"
|
|
|
|
"import ultralytics\n",
|
|
|
|
|
|
|
|
"ultralytics.checks()"
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
"metadata": {
|
|
|
|
"metadata": {
|
|
|
|
"id": "TUFPge7f_1ms"
|
|
|
|
"id": "TUFPge7f_1ms"
|
|
|
@ -544,7 +542,7 @@
|
|
|
|
"results = model.train(data='coco128.yaml', epochs=3) # train the model\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.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",
|
|
|
|
"results = model.predict(source='https://ultralytics.com/images/bus.jpg') # predict on an image\n",
|
|
|
|
"success = model.export(format='onnx') # export the model to ONNX format"
|
|
|
|
"success = YOLO('yolov8n.pt').export(format='onnx') # export a model to ONNX format"
|
|
|
|
],
|
|
|
|
],
|
|
|
|
"metadata": {
|
|
|
|
"metadata": {
|
|
|
|
"id": "bpF9-vS_DAaf"
|
|
|
|
"id": "bpF9-vS_DAaf"
|
|
|
|