![]() |
VOOZH | about |
dotnet add package JYPPX.DeploySharp --version 0.0.9.2
NuGet\Install-Package JYPPX.DeploySharp -Version 0.0.9.2
<PackageReference Include="JYPPX.DeploySharp" Version="0.0.9.2" />
<PackageVersion Include="JYPPX.DeploySharp" Version="0.0.9.2" />Directory.Packages.props
<PackageReference Include="JYPPX.DeploySharp" />Project file
paket add JYPPX.DeploySharp --version 0.0.9.2
#r "nuget: JYPPX.DeploySharp, 0.0.9.2"
#:package JYPPX.DeploySharp@0.0.9.2
#addin nuget:?package=JYPPX.DeploySharp&version=0.0.9.2Install as a Cake Addin
#tool nuget:?package=JYPPX.DeploySharp&version=0.0.9.2Install as a Cake Tool
<p align="center">
<a href="./LICENSE.txt">
<img src="https://img.shields.io/github/license/guojin-yan/openvinosharp.svg">
</a>
<a >
<img src="https://img.shields.io/badge/Framework-.NET 8.0%2C%20.NET 6.0%2C%20.NET 5.0%2C%20.NET Framework 4.8%2C%20.NET Framework 4.7.2%2C%20.NET Framework 4.6%2C%20.NET Core 3.1-pink.svg">
</a>
</p>
| English
DeploySharp is a cross-platform model deployment framework designed for C# developers, offering end-to-end solutions from model loading and configuration management to inference execution. Its modular namespace architecture significantly reduces the complexity of integrating deep learning models into the C# ecosystem.
DeploySharp serves as a unified entry point for core features (model loading, inference, etc.).DeploySharp.Engine) enable clear functional layers.OpenVinoSharp) and ONNX Runtime.System.Threading.Tasks).log4net logging (error/warning/debug levels).Licensed under Apache License 2.0. Future updates will expand TensorRT support and optimize heterogenous computing.
| Model Name | Model Type | OpenVINO | ONNX Runtime | TensorRT |
|---|---|---|---|---|
| YOLOCls | Classification (YOLO) | ✅ | ✅ | ✅ |
| YOLOv5 | Detection | ✅ | ✅ | ✅ |
| YOLOv5 | Segmentation | ✅ | ✅ | ✅ |
| YOLOv6 | Detection | ✅ | ✅ | ✅ |
| YOLOv7 | Detection | ✅ | ✅ | ✅ |
| YOLOv8 | Detection | ✅ | ✅ | ✅ |
| YOLOv8 | Segmentation | ✅ | ✅ | ✅ |
| YOLOv8 | Pose | ✅ | ✅ | ✅ |
| YOLOv8 | Oriented Bounding Boxes | ✅ | ✅ | ✅ |
| YOLOv9 | Detection | ✅ | ✅ | ✅ |
| YOLOv9 | Segmentation | ✅ | ✅ | ✅ |
| YOLOv10 | Detection | ✅ | ✅ | ✅ |
| YOLOv11 | Detection | ✅ | ✅ | ✅ |
| YOLOv11 | Segmentation | ✅ | ✅ | ✅ |
| YOLOv11 | Pose | ✅ | ✅ | ✅ |
| YOLOv11 | Oriented Bounding Boxes | ✅ | ✅ | ✅ |
| YOLOv12 | Detection | ✅ | ✅ | ✅ |
| YOLO26 | Detection | ✅ | ✅ | ✅ |
| YOLO26 | Segmentation | ✅ | ✅ | ✅ |
| YOLO26 | Pose | ✅ | ✅ | ✅ |
| YOLO26 | Oriented Bounding Boxes | ✅ | ✅ | ✅ |
| Anomalib | Segmentation | ✅ | ✅ | ✅ |
| PP-YOLOE | Detection | ✅ | ✅ | ✅ |
| DEIMv2 | Detection | ✅ | ✅ | ✅ |
| RFDETR | Detection | ✅ | ✅ | ✅ |
| RFDETR | Segmentation | ✅ | ✅ | ✅ |
| RTDETR | Detection | ✅ | ✅ | ✅ |
| PP-OCR v5 | Detection | ✅ | ✅ | ✅ |
| PP-OCR v5 | Classification | ✅ | ✅ | ✅ |
| PP-OCR v5 | Recognize | ✅ | ✅ | ✅ |
| PP-OCR v5 | Det+Cls+Rec | ✅ | ✅ | ✅ |
| PP-OCR v4 | Detection | ✅ | ✅ | ✅ |
| PP-OCR v4 | Classification | ✅ | ✅ | ✅ |
| PP-OCR v4 | Recognize | ✅ | ✅ | ✅ |
| PP-OCR v4 | Det+Cls+Rec | ✅ | ✅ | ✅ |
| BRIA | Bria-RMBG v1.4,v2.0 | ✅ | ✅ | ✅ |
| Package | Description | Link |
|---|---|---|
| JYPPX.DeploySharp | DeploySharp API core libraries | 👁 NuGet Gallery |
| Package | Description | Link |
|---|---|---|
| JYPPX.DeploySharp.ImageSharp | An assembly that uses ImageSharp as an image processing tool. | 👁 NuGet Gallery |
| JYPPX.DeploySharp.OpenCvSharp | An assembly that uses OpenCvSharp as an image processing tool. | 👁 NuGet Gallery |
DeploySharp includes image processing methods such as OpenCvSharp and ImageSharp, as well as support for OpenVINO and ONNX Runtime model deployment engines. Therefore, users can combine them according to their own needs and install the corresponding VNet Package to use them out of the box. The following summarizes some commonly used scenarios for installing VNet Package:
JYPPX.DeploySharp
JYPPX.DeploySharp.OpenCvSharp
OpenVINO.runtime.win
OpenCvSharp4.runtime.win
JYPPX.DeploySharp
JYPPX.DeploySharp.ImageSharp
OpenVINO.runtime.win
JYPPX.DeploySharp
JYPPX.DeploySharp.OpenCvSharp
OpenCvSharp4.runtime.win
JYPPX.DeploySharp
JYPPX.DeploySharp.OpenCvSharp
JYPPX.DeploySharp
JYPPX.DeploySharp.ImageSharp
Intel.ML.OnnxRuntime.OpenVino
JYPPX.DeploySharp
JYPPX.DeploySharp.ImageSharp
Microsoft.ML.OnnxRuntime.DirectML
JYPPX.DeploySharp
JYPPX.DeploySharp.ImageSharp
Microsoft.ML.OnnxRuntime.DirectML
Due to the influence of GPU device model and software version on using CUDA to accelerate ONNX Runtime, it is necessary to download and use according to the official version correspondence provided by ONNX Runtime. Please refer to the following link for the correspondence between ONNX Runtime, CUDA, and cuDNN:
https://runtime.onnx.org.cn/docs/execution-providers/CUDA-ExecutionProvider.html#requirements
The usage methods listed above can all be installed with just one click through the VNet Package. Similarly, ONNX Runtime also supports more acceleration methods, but users need to build their own code. For the construction process and method, please refer to the official tutorial. The link is:
https://runtime.onnx.org.cn/docs/execution-providers/
If you don't know how to use it, use the following code to briefly understand how to use it.
using DeploySharp.Data;
using DeploySharp.Engine;
using DeploySharp.Model;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.PixelFormats;
using System;
namespace DeploySharp.ImageSharp.Demo
{
public class YOLOv5DetDemo
{
public static void Run()
{
//The model and test images can be downloaded from the QQ group (945057948)
//Replace the following model path with your own model path
string modelPath = @"E:\Model\Yolo\yolov5s.onnx";
//Replace the image path below with your own image path
string imagePath = @"E:\Data\image\bus.jpg";
Yolov5DetConfig config = new Yolov5DetConfig(modelPath);
//config.SetTargetInferenceBackend(InferenceBackend.OnnxRuntime);
Yolov5DetModel model = new Yolov5DetModel(config);
var img = Image.Load(imagePath);
var result = model.Predict(img);
model.ModelInferenceProfiler.PrintAllRecords();
var resultImg = Visualize.DrawDetResult(result, img as Image<Rgb24>, new VisualizeOptions(1.0f));
resultImg.Save(@$"./result_{ModelType.YOLOv5Det.ToString()}.jpg");
}
}
}
using OpenCvSharp;
using System.Diagnostics;
using DeploySharp.Model;
using DeploySharp.Data;
using DeploySharp.Engine;
using DeploySharp;
using System.Net.Http.Headers;
namespace DeploySharp.OpenCvSharp.Demo
{
public class YOLOv5DetDemo
{
public static void Run()
{
//The model and test images can be downloaded from the QQ group (945057948)
//Replace the following model path with your own model path
string modelPath = @"E:\Model\Yolo\yolov5s.onnx";
//Replace the image path below with your own image path
string imagePath = @"E:\Data\image\bus.jpg";
Yolov5DetConfig config = new Yolov5DetConfig(modelPath);
config.SetTargetInferenceBackend(InferenceBackend.OnnxRuntime);
Yolov5DetModel model = new Yolov5DetModel(config);
Mat img = Cv2.ImRead(imagePath);
var result = model.Predict(img);
model.ModelInferenceProfiler.PrintAllRecords();
var resultImg = Visualize.DrawDetResult(result, img, new VisualizeOptions(1.0f));
Cv2.ImShow("image", resultImg);
Cv2.WaitKey();
}
}
}
For more application cases, please refer to:
| Type | Framework | Link |
|---|---|---|
| Desktop App | .NET Framework 4.8 | DeploySharp.ImageSharp-ApplicationPlatform |
| Desktop App | .NET 6.0 | DeploySharp.OpenCvSharp-ApplicationPlatform |
| Console App | .NET Framework 4.8、.NET 6.0-9.0 | DeploySharp.samples |
| Desktop App | .NET 8.0 | [JYPPX.DeploySharp.OpenCvSharp.PaddleOcr ](https://github.com/guojin-yan/DeploySharp/tree/DeploySharpV1.0/applications/.NET 8.0/JYPPX.DeploySharp.OpenCvSharp.PaddleOcr) |
Explore the full API: DeploySharp API Documented
If you are interested in using Deploy Sharp in C # and are interested in contributing to the open source community, please join us to develop Deploy Sharp together.
If you have any ideas or improvement strategies for this project, please feel free to contact us for guidance on our work.
The release of this project is certified under the Apache 2.0 license.
If you have any questions or suggestions, feel free to reach out via the following channels:
1. Open Source License Statement
All open source project code of the author follows the Apache License 2.0 open source agreement.
Special Note: This project integrates several third-party libraries. If the license terms of any third-party library conflict with or are inconsistent with the Apache License 2.0, the original license terms of the specific third-party library shall prevail. This project does not include nor represent the authorization declarations of these third-party libraries. Please be sure to read and comply with the relevant licenses of the third-party libraries before use.
2. Code Development and Quality Description
3. Disclaimer (Important)
Please perform detailed and rigorous self-testing and verification before applying this code to any actual project (especially commercial, industrial, or critical mission environments). In view of the potential code defects and insufficient test coverage mentioned above, the author assumes no responsibility for any direct or indirect losses caused by the use of this code (including but not limited to equipment failure, data loss, system paralysis, or loss of profits). Once you start using this code, it indicates that you are aware of the above risks and agree to bear all consequences yourself; related issues have nothing to do with the author.
4. Open Source Scope
This project commits to fully open-sourcing the core logic code. However, the binary files, source code, or related resources of the "third-party libraries" mentioned above are not within the scope of this project's open-source obligation; please obtain them according to their respective guidelines.
5. Community and Feedback
Despite the aforementioned shortcomings, we still welcome everyone to download, use, submit Issues, or participate in testing to improve the project together. If you discover bugs, memory overflows, or have suggestions for improvement during use, please contact the author via the contact information provided on the project homepage, and we will do our best to assist within our limited time.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 is compatible. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 is compatible. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp3.1 netcoreapp3.1 is compatible. |
| .NET Framework | net48 net48 is compatible. net481 net481 is compatible. |
Showing the top 2 NuGet packages that depend on JYPPX.DeploySharp:
| Package | Downloads |
|---|---|
|
JYPPX.DeploySharp.OpenCvSharp
DeploySharp is a cross-platform model deployment framework designed for C# developers, offering end-to-end solutions from model loading and configuration management to inference execution. Its modular namespace architecture significantly reduces the complexity of integrating deep learning models into the C# ecosystem. |
|
|
JYPPX.DeploySharp.ImageSharp
DeploySharp is a cross-platform model deployment framework designed for C# developers, offering end-to-end solutions from model loading and configuration management to inference execution. Its modular namespace architecture significantly reduces the complexity of integrating deep learning models into the C# ecosystem. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.9.2 | 227 | 5/8/2026 |
| 0.0.9 | 271 | 4/12/2026 |
| 0.0.8.2 | 228 | 3/7/2026 |
| 0.0.8.1 | 232 | 2/5/2026 |
| 0.0.8 | 255 | 2/4/2026 |
| 0.0.7 | 200 | 2/1/2026 |
| 0.0.6.3 | 203 | 1/29/2026 |
| 0.0.6.2 | 184 | 1/20/2026 |
| 0.0.6.1 | 206 | 1/16/2026 |
| 0.0.6 | 191 | 1/14/2026 |
| 0.0.5.1 | 228 | 11/23/2025 |
| 0.0.5 | 267 | 11/23/2025 |
| 0.0.4.2 | 273 | 10/15/2025 |
| 0.0.4.1 | 202 | 10/12/2025 |
| 0.0.4 | 499 | 10/2/2025 |
| 0.0.3 | 362 | 9/15/2025 |
| 0.0.2-beta | 262 | 9/14/2025 |
| 0.0.1-beta | 285 | 9/9/2025 |