Fix bus.jpg path in predict.md (#19203)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
897043f98a
commit
fa393926af
1 changed files with 11 additions and 9 deletions
|
|
@ -404,7 +404,7 @@ Below are code examples for using each source type:
|
||||||
model = YOLO("yolo11n.pt")
|
model = YOLO("yolo11n.pt")
|
||||||
|
|
||||||
# Run inference on 'bus.jpg' with arguments
|
# Run inference on 'bus.jpg' with arguments
|
||||||
model.predict("bus.jpg", save=True, imgsz=320, conf=0.5)
|
model.predict("https://ultralytics.com/images/bus.jpg", save=True, imgsz=320, conf=0.5)
|
||||||
```
|
```
|
||||||
|
|
||||||
Inference arguments:
|
Inference arguments:
|
||||||
|
|
@ -473,8 +473,10 @@ All Ultralytics `predict()` calls will return a list of `Results` objects:
|
||||||
model = YOLO("yolo11n.pt")
|
model = YOLO("yolo11n.pt")
|
||||||
|
|
||||||
# Run inference on an image
|
# Run inference on an image
|
||||||
results = model("bus.jpg") # list of 1 Results object
|
results = model("https://ultralytics.com/images/bus.jpg") # list of 1 Results object
|
||||||
results = model(["bus.jpg", "zidane.jpg"]) # list of 2 Results objects
|
results = model(
|
||||||
|
["https://ultralytics.com/images/bus.jpg", "https://ultralytics.com/images/zidane.jpg"]
|
||||||
|
) # list of 2 Results objects
|
||||||
```
|
```
|
||||||
|
|
||||||
`Results` objects have the following attributes:
|
`Results` objects have the following attributes:
|
||||||
|
|
@ -530,7 +532,7 @@ For more details see the [`Results` class documentation](../reference/engine/res
|
||||||
model = YOLO("yolo11n.pt")
|
model = YOLO("yolo11n.pt")
|
||||||
|
|
||||||
# Run inference on an image
|
# Run inference on an image
|
||||||
results = model("bus.jpg") # results list
|
results = model("https://ultralytics.com/images/bus.jpg") # results list
|
||||||
|
|
||||||
# View results
|
# View results
|
||||||
for r in results:
|
for r in results:
|
||||||
|
|
@ -568,7 +570,7 @@ For more details see the [`Boxes` class documentation](../reference/engine/resul
|
||||||
model = YOLO("yolo11n-seg.pt")
|
model = YOLO("yolo11n-seg.pt")
|
||||||
|
|
||||||
# Run inference on an image
|
# Run inference on an image
|
||||||
results = model("bus.jpg") # results list
|
results = model("https://ultralytics.com/images/bus.jpg") # results list
|
||||||
|
|
||||||
# View results
|
# View results
|
||||||
for r in results:
|
for r in results:
|
||||||
|
|
@ -601,7 +603,7 @@ For more details see the [`Masks` class documentation](../reference/engine/resul
|
||||||
model = YOLO("yolo11n-pose.pt")
|
model = YOLO("yolo11n-pose.pt")
|
||||||
|
|
||||||
# Run inference on an image
|
# Run inference on an image
|
||||||
results = model("bus.jpg") # results list
|
results = model("https://ultralytics.com/images/bus.jpg") # results list
|
||||||
|
|
||||||
# View results
|
# View results
|
||||||
for r in results:
|
for r in results:
|
||||||
|
|
@ -635,7 +637,7 @@ For more details see the [`Keypoints` class documentation](../reference/engine/r
|
||||||
model = YOLO("yolo11n-cls.pt")
|
model = YOLO("yolo11n-cls.pt")
|
||||||
|
|
||||||
# Run inference on an image
|
# Run inference on an image
|
||||||
results = model("bus.jpg") # results list
|
results = model("https://ultralytics.com/images/bus.jpg") # results list
|
||||||
|
|
||||||
# View results
|
# View results
|
||||||
for r in results:
|
for r in results:
|
||||||
|
|
@ -670,7 +672,7 @@ For more details see the [`Probs` class documentation](../reference/engine/resul
|
||||||
model = YOLO("yolo11n-obb.pt")
|
model = YOLO("yolo11n-obb.pt")
|
||||||
|
|
||||||
# Run inference on an image
|
# Run inference on an image
|
||||||
results = model("boats.jpg") # results list
|
results = model("https://ultralytics.com/images/boats.jpg") # results list
|
||||||
|
|
||||||
# View results
|
# View results
|
||||||
for r in results:
|
for r in results:
|
||||||
|
|
@ -710,7 +712,7 @@ The `plot()` method in `Results` objects facilitates visualization of prediction
|
||||||
model = YOLO("yolo11n.pt")
|
model = YOLO("yolo11n.pt")
|
||||||
|
|
||||||
# Run inference on 'bus.jpg'
|
# Run inference on 'bus.jpg'
|
||||||
results = model(["bus.jpg", "zidane.jpg"]) # results list
|
results = model(["https://ultralytics.com/images/bus.jpg", "https://ultralytics.com/images/zidane.jpg"]) # results list
|
||||||
|
|
||||||
# Visualize the results
|
# Visualize the results
|
||||||
for i, r in enumerate(results):
|
for i, r in enumerate(results):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue