c# onnxruntime 运行过程报错
onnxruntime 运行过程报错“onnxruntime::Model::Model Unknown model file format version“
修改yolov5导出onnx版本,或者升级c# onnxruntime版本
check_requirements('onnx>=1.12.0')
修改后,再次导出
或者
System.ArgumentException: A Graphics object cannot be created from an image that has an indexed pixe
转成RBG图像:
string imgPath = @"D:\test.jpg";
Bitmap bitmap = new Bitmap(imgPath);
bitmap.Save("test2.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
欢迎讨论,相互学习。
cdtxw@foxmail.com