This repository is for only yolov5-seg inference using onnx (NOT FOR TRAIN)
-
You have to train in python or libtorch
-
Convert pt or pth file to onnx
-
Load onnx file and insert images
-
You have to rewrite Labelmap.cs for your class
-
YOU CAN USE IT!!
OpenCvSharp3 => OpenCvSharp4 4.2.0.20191223
Microsoft.ML.OnnxRuntime 1.7.0 => Microsoft.ML.OnnxRuntime.GPU 1.11.0
Microsoft.ML.OnnxRuntime.Managed is upgraded to 1.11.0 automatically
OpenCvSharpExtern.dll and OpenCvSharpExtern.pdb is necessary for build
You can download these files on https://github.com/shimat/opencvsharp/releases with your vesrion
https://github.com/singetta/OnnxSample
Permission to share granted by the original author