Skip to content

Some custom trained models do not work #2

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

Open
Wayne-nulitics opened this issue Jan 2, 2024 · 5 comments
Open

Some custom trained models do not work #2

Wayne-nulitics opened this issue Jan 2, 2024 · 5 comments

Comments

@Wayne-nulitics
Copy link

When I train a model and test it in Python it works, if I then use the same .onnx file in Unity it does not detect the objects.

@Wayne-nulitics
Copy link
Author

I tested the onnx model with Unity Barracude v3 and it also works there, so definatly a problem with OpenCV Yolov8 implementation

@RoadwayVR
Copy link

@Wayne-nulitics have you fixed the issue?

@Wayne-nulitics
Copy link
Author

@Wayne-nulitics have you fixed the issue?

@RoadwayVR yes, I'm using the new new version 1.05, I think, the training is using Ultralytics Yolov8, we do all our models and training offline, no cloud services, due to confidentiality of content/images, for this we use PyTorch and then convert the .pt file to .onnx version 12, this works well in Yolov8 from OpenCV

@Wayne-nulitics
Copy link
Author

Solved by using new version 1.05 of example and Ultralytics YOLOv8.1.30

@dmm489
Copy link

dmm489 commented Jun 5, 2024

What did you change in the scripts to get it working on a custom model? I'm trying to do it myself but am getting errors. I swapped the .onnx and coco.names files and changed the num_classes variable in ObjectDetector.cs but I'm still having trouble. Any help would be appreciated

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

3 participants