How to run yolow ONNX locally?

#10
by nospotfer - opened

Hi! is there any snippet anywhere about how to load and run inference in yolow-l.onnx locally with onnxruntime?
It is necessary to know the image and text preprocessing steps.
Thank you!

I can save and predict my own custom classes with custom prompts with ultralytics, but I can't do that here.

Load the exported ONNX model

from ultralytics import YOLO
onnx_model = YOLO("yolov8x-worldv2.onnx", task="detect")

Run inference

results = onnx_model("https://ultralytics.com/images/bus.jpg")

Sign up or log in to comment