Machine Learning Notes - Classification Inference Based on ONNX Runtime of C# + .net framework 4.8

        This example is copied from the official website and demonstrates how to use the Onnx Runtime C# API to run the pre-trained ResNet50 v2 ONNX model.

        My environment here is based on a winform project of .net framework 4.8, which mainly relies on the following versions of related libraries.

        Microsoft.Bcl.Numerics.8.0.0

        Microsoft.ML.OnnxRuntime.Gpu.1.16.3

        SixLabors.ImageSharp.2.1.1

        ResNet50 model download address.

https://github.com/onnx/models/blob/master/vision/classification/resnet/model/resnet50-v2-7.onnx

        If we have all the dependencies installed, we can start adding code and running the model on the image.

 

Guess you like

Origin blog.csdn.net/bashendixie5/article/details/134858431