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

Custom model and problem. #75

Open
magicsoft75 opened this issue Oct 23, 2022 · 1 comment
Open

Custom model and problem. #75

magicsoft75 opened this issue Oct 23, 2022 · 1 comment

Comments

@magicsoft75
Copy link

Hi.
Thank you for the solution - it looks good :-)
Unfortunately, I have a problem.
I trained a model (4 classes), converted to onnx - works with detect.py but doesn't work with Yolov5Net.
Model input/output: images/output0.
I changed Dimmensions to 9 - what else do I have to change?
Thank you
errOnnx
errOnnx2

@magicsoft75
Copy link
Author

Ok, I have it ;-)
In file YoloCocoP5Model.cs we have to change:
public override int Dimensions { get; set; } = 9; //Number of class + 5
public override List Labels { get; set; } = new List()
{ to own labels
and
public override string[] Outputs { get; set; } = new[] { "output0" };

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

1 participant