NickSwardh/YoloDotNet

System.NotSupportedException:“Onnx model not supported!”

Opened this issue · 5 comments

System.NotSupportedException:“Onnx model not supported!”

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

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.

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,

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

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