update docs (#76)

single_channel
Ayush Chaurasia 2 years ago committed by GitHub
parent eb5adf4e0b
commit 24a7c068ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -8,6 +8,7 @@ This is the simplest way of simply using yolo models in a python environment. It
model = YOLO() model = YOLO()
model.new("n.yaml") # pass any model type model.new("n.yaml") # pass any model type
model(img_tensor) # Or model.forward(). inference.
model.train(data="coco128.yaml", epochs=5) model.train(data="coco128.yaml", epochs=5)
``` ```
@ -27,9 +28,35 @@ This is the simplest way of simply using yolo models in a python environment. It
model = YOLO() model = YOLO()
model.resume(task="detect") # resume last detection training model.resume(task="detect") # resume last detection training
model.resume(task="detect", model="last.pt") # resume from a given model model.resume(model="last.pt") # resume from a given model/run
``` ```
=== "Visualize/save Predictions"
```python
from ultralytics import YOLO
model = YOLO()
model.load("model.pt")
model.predict(source="0") # accepts all formats - img/folder/vid.*(mp4/format). 0 for webcam
model.predict(source="folder", view_img=True) # Display preds. Accepts all yolo predict arguments
```
!!! note "Export and Deployment"
=== "Export, Fuse & info"
```python
from ultralytics import YOLO
model = YOLO()
model.fuse()
model.info(verbose=True) # Print model information
model.export(format=) # TODO:
```
=== "Deployment"
More functionality coming soon More functionality coming soon
To know more about using `YOLO` models, refer Model class refernce To know more about using `YOLO` models, refer Model class refernce

Loading…
Cancel
Save