Reformat Markdown code blocks (#12795)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
2af71d15a6
commit
fceea033ad
128 changed files with 1067 additions and 1018 deletions
|
|
@ -81,16 +81,16 @@ Before diving into the usage instructions, it's important to note that while all
|
|||
from ultralytics import YOLO
|
||||
|
||||
# Load the YOLOv8 model
|
||||
model = YOLO('yolov8n.pt')
|
||||
model = YOLO("yolov8n.pt")
|
||||
|
||||
# Export the model to TF GraphDef format
|
||||
model.export(format='pb') # creates 'yolov8n.pb'
|
||||
model.export(format="pb") # creates 'yolov8n.pb'
|
||||
|
||||
# Load the exported TF GraphDef model
|
||||
tf_graphdef_model = YOLO('yolov8n.pb')
|
||||
tf_graphdef_model = YOLO("yolov8n.pb")
|
||||
|
||||
# Run inference
|
||||
results = tf_graphdef_model('https://ultralytics.com/images/bus.jpg')
|
||||
results = tf_graphdef_model("https://ultralytics.com/images/bus.jpg")
|
||||
```
|
||||
|
||||
=== "CLI"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue