Skip to content
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

Support for YOLO-Worldv2 models alongside currently supported YOLO-like ONNX model files #281

Open
2 tasks done
TimC2225 opened this issue Nov 28, 2024 · 2 comments
Open
2 tasks done
Labels
feature_request New feature or request

Comments

@TimC2225
Copy link

Preliminary Checks

  • This issue is not a duplicate. Before opening a new issue, please search existing issues.
  • This issue is not a question, bug report, or anything other than a feature request directly related to this project.

Proposal

Support for YOLO-Worldv2 models could be added to the "Custom Object Detection with YOLO-like ONNX model file" feature. I have tried using persisting models saved using the following method provided by Ultralytics, but it fails to detect any objects when launching display_zed_cam.launch.py. The PT file saved was exported as ONNX through the CLI as given in the README.

from ultralytics import YOLO

# Initialize a YOLO-World model
model = YOLO("yolov8s-worldv2.pt")  # or select yolov8m/l-worldv2.pt

# Define custom classes
model.set_classes(["person", "bus"])

# Save the model with the defined offline vocabulary
model.save("custom_yolov8s.pt")

Ultralytics' documentation for YOLO-World states that the models saved using the above method behave like any other pre-trained YOLOv8 model, so I am unsure if the saved persisting YOLO-Worldv2 models should already work with the ZED ROS2 wrapper once exported as ONNX.

Use-Case

This would allow persisting YOLO-World models to display objects detected through the ROS 2 plugin used to visualize the results of the Object Detection, hopefully making zero-shot detection with dynamic custom classes possible with the ZED stereo cameras.

Anything else?

No response

@TimC2225 TimC2225 added the feature_request New feature or request label Nov 28, 2024
@Myzhar
Copy link
Member

Myzhar commented Nov 28, 2024

Hi @TimC2225
can you try if your model works using native ZED SDK?
You can use these examples: https://github.com/stereolabs/zed-sdk/tree/master/object%20detection/custom%20detector

@TimC2225
Copy link
Author

From my previous experience with the detector.py example, the YOLO-Worldv2 models work using the native ZED SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature_request New feature or request
Development

No branches or pull requests

2 participants