-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example for YOLO-World - ONNX #12674
Comments
👋 Hello @AtiChetsurakul, thank you for your interest in Ultralytics YOLOv8 🚀! We recommend a visit to the Docs for new users where you can find many Python and CLI usage examples and where many of the most common questions may already be answered. If this is a 🐛 Bug Report, please provide a minimum reproducible example to help us debug it. If this is a custom training ❓ Question, please provide as much information as possible, including dataset image examples and training logs, and verify you are following our Tips for Best Training Results. Join the vibrant Ultralytics Discord 🎧 community for real-time conversations and collaborations. This platform offers a perfect space to inquire, showcase your work, and connect with fellow Ultralytics users. InstallPip install the pip install ultralytics EnvironmentsYOLOv8 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
StatusIf this badge is green, all Ultralytics CI tests are currently passing. CI tests verify correct operation of all YOLOv8 Modes and Tasks on macOS, Windows, and Ubuntu every 24 hours and on every commit. |
Hello! Thanks for reaching out with your request for an ONNX example with YOLO-World. Here's a quick example of how you can use the ONNX format of the YOLO-World model: import onnxruntime as ort
import numpy as np
# Load the ONNX model
session = ort.InferenceSession("path_to_yolo-world.onnx")
# Assuming you have a preprocessed image
img = np.random.rand(1, 3, 640, 640).astype("float32")
# Run inference
outputs = session.run(None, {'input': img})
# Process outputs
print(outputs) This simple script loads the YOLO-World model in ONNX format, executes inference on a dummy image, and prints the outputs. Make sure to replace I hope this helps! If you need more details or have any other questions, feel free to ask. 😊 |
Search before asking
Description
In
examples
directories, I would like to request a example on how to use a ONNX format of yolo-world. Thank you.Use case
Just like the Yolo- V8 example.
Additional
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: