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

System.NotSupportedException:“Onnx model not supported!” #20

Open
256387110 opened this issue Aug 5, 2024 · 5 comments
Open

System.NotSupportedException:“Onnx model not supported!” #20

256387110 opened this issue Aug 5, 2024 · 5 comments

Comments

@256387110
Copy link

System.NotSupportedException:“Onnx model not supported!”

@NgTuanAnh162
Copy link

2024-08-06_103929
your model version needs to contain 'yolov8' or 'yolov10'

@NgTuanAnh162
Copy link

2024-08-06_104253
This is a custom dataset model. Its version does not include 'yolov8' or 'yolov10'. Before training, rename the folder containing the data.yaml file to either yolov8/data.yaml or yolov10/data.yaml.

@NgTuanAnh162
Copy link

Alternatively, download the YoloDotNet source code and add it to the project dependencies. Then, edit the command line to match your v8 and v10 names:

var version when version.Contains("yourV8Name") => ModelVersion.V8,
var version when version.Contains("yourV10Name") => ModelVersion.V10,

@256387110
Copy link
Author

Thank you very much for your reply to my question! But I'm sorry I didn't see your reply until today. My model was modified based on YOLOv8, and the name of the model was given an extra name during training. You mean I need to name the model yolov8 before training, or add a custom model name to the code

@NgTuanAnh162
Copy link

Screenshot 2024-08-15 155707
This error can be easily resolved by adding your custom model name to the code.

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

2 participants