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

YOLOv8 support #177

Open
tv-gc opened this issue Nov 30, 2023 · 7 comments
Open

YOLOv8 support #177

tv-gc opened this issue Nov 30, 2023 · 7 comments

Comments

@tv-gc
Copy link

tv-gc commented Nov 30, 2023

Hi!

I would like to ask if OpenCVForUnity will support YOLO version 8 and if so, when will the example be shared?

Cheers!

@dragan07-07
Copy link

it is already supported!

@tv-gc
Copy link
Author

tv-gc commented Dec 4, 2023

Oh really? I thought you had to make predictors and detectors for it because YoloV5 is on a different repository.

Is there references on how to use v8 that you could share?

Thanks!

@EnoxSoftware
Copy link
Owner

Sorry for the delay in responding.
It seems that opencv's dnn module is capable of inferring yolov8 models in onnx format.
opencv/opencv#24611

We have a YOLOv5 example repository on our OpenCVForUnity GitHub, but that example is not applicable to yolov8 models.
The data structure of the inference results is different between yolov5 and yolov8, so you need to implement yolov8-specific code.
We have created a new repository containing examples of yolov8 object detection models. Please try it out.
https://github.com/EnoxSoftware/YOLOv8WithOpenCVForUnityExample

@EnoxSoftware
Copy link
Owner

Examples of Segmentation and Classification models have also been added!

@dragan07-07
Copy link

Tnx it is very useful!

@wimvanhenden-tool
Copy link

wimvanhenden-tool commented Dec 23, 2023

It seems when using CUDA backend with dnn, the returned bounding boxes are all 0.
Using inference on CPU works fine. That seems to be an OpenCV 4.2.8 problem.

@EnoxSoftware
Copy link
Owner

@wimvanhenden-tool This problem seems to have been reported in the opencv repository.
opencv/opencv#23977

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants