YOLOv8 / yolov8-test.py
qqc1989's picture
initial the models of yolov8 using ax650&ax620e
a725ece verified
raw
history blame contribute delete
295 Bytes
from ultralytics import YOLO
# Load a model
model = YOLO("yolov8s.pt")
model.info()
# Use the model
results = model("./images/ssd_horse.jpg")
# Save the results
results[0].save("yolov8s-result.jpg")
# Export to onnx with simplify
model.export(format='onnx', simplify=True)