|
1 | 1 | # OnnxStack
|
2 | 2 | ONNX Runtime Projects for .NET Applications
|
3 | 3 |
|
4 |
| -## Hardware Requirements |
5 |
| -You can choose between `Cpu` and `DirectML`(GPU) for inference, |
6 |
| -Other `Microsoft.ML.OnnxRuntime.*` executors like `Cuda` may work but are untested |
7 |
| - |
8 |
| -`Cpu` > 12GB RAM |
9 |
| - |
10 |
| -`DirectML` > 10GB VRAM |
11 |
| - |
12 |
| - |
13 |
| -## ONNX Model Download |
14 |
| -You will need an ONNX compatible model to use, Hugging Face is a great place to download the Stable Diffusion models |
15 |
| - |
16 |
| -Download the [ONNX Stable Diffusion models from Hugging Face](https://huggingface.co/models?sort=downloads&search=Stable+Diffusion). |
17 |
| - |
18 |
| -- [Stable Diffusion Models v1.4](https://huggingface.co/CompVis/stable-diffusion-v1-4/tree/onnx) |
19 |
| -- [Stable Diffusion Models v1.5](https://huggingface.co/runwayml/stable-diffusion-v1-5/tree/onnx) |
20 |
| - |
21 |
| - |
22 |
| -Once you have selected a model version repo, click `Files and Versions`, then select the `ONNX` branch. If there isn't an ONNX model branch available, use the `main` branch and convert it to ONNX. See the [ONNX conversion tutorial for PyTorch](https://learn.microsoft.com/windows/ai/windows-ml/tutorials/pytorch-convert-model) for more information. |
23 |
| - |
24 |
| -Clone the model repo: |
25 |
| -```text |
26 |
| -git lfs install |
27 |
| -git clone https://huggingface.co/runwayml/stable-diffusion-v1-5 -b onnx |
28 |
| -``` |
| 4 | +This repository harnesses the capabilities of both `ONNX Runtime` and `Microsoft ML`, offering a comprehensive solution that empowers developers to build, deploy, and execute machine learning models seamlessly in .NET environments, unlocking a world of possibilities for intelligent applications. |
29 | 5 |
|
30 | 6 |
|
31 | 7 | # Projects
|
@@ -78,28 +54,67 @@ Image To Image Stable Diffusion is an advanced image processing and generation m
|
78 | 54 | | :--- | :--- | :--- |
|
79 | 55 | <img src="Assets/Samples/Img2Img_Start.bmp" width="256" alt="Image of browser inferencing on sample images."/> | <img src="Assets/Samples/Img2Img_End.png" width="256" alt="Image of browser inferencing on sample images."/> |<img src="Assets/Samples/Img2Img_Animation.webp" width="256" alt="Image of browser inferencing on sample images."/> |
|
80 | 56 |
|
| 57 | +``` |
| 58 | + Prompt: Dog wearing storm trooper helmet, head shot |
| 59 | +``` |
81 | 60 |
|
82 | 61 | More information and Examples can be found in the `OnnxStack.StableDiffusion` project **[README](OnnxStack.StableDiffusion/README.md)**
|
83 | 62 |
|
84 | 63 | __________________________
|
85 | 64 |
|
86 | 65 |
|
87 | 66 | __________________________
|
88 |
| -## `OnnxStack.ImageRecognition` |
89 |
| -Image recognition with ResNet50v2 with C# and ONNX Runtime |
| 67 | +## **[OnnxStack.ImageRecognition]()** |
| 68 | +**Image recognition with ResNet50v2 and ONNX Runtime** |
90 | 69 |
|
91 |
| -~WIP~ |
| 70 | +Harness the accuracy of the ResNet50v2 deep learning model for image recognition, seamlessly integrated with ONNX for efficient deployment. This combination empowers your applications to classify images with precision, making it ideal for tasks like object detection, content filtering, and image tagging across various platforms and hardware accelerators. Achieve high-quality image recognition effortlessly with ResNet50v2 and ONNX integration. |
| 71 | + |
| 72 | + |
| 73 | +***work in progress*** |
92 | 74 | __________________________
|
93 | 75 |
|
94 | 76 |
|
95 | 77 | __________________________
|
96 |
| -## `OnnxStack.ObjectDetection` |
97 |
| -Object detection with Faster RCNN Deep Learning with C# and ONNX Runtime |
| 78 | +## **[OnnxStack.ObjectDetection]()** |
| 79 | +**Object detection with Faster RCNN Deep Learning with C# and ONNX Runtime** |
| 80 | + |
| 81 | +Enable robust object detection in your applications using RCNN (Region-based Convolutional Neural Network) integrated with ONNX. This powerful combination allows you to accurately locate and classify objects within images. Whether for surveillance, autonomous vehicles, or content analysis, RCNN and ONNX integration offers efficient and precise object detection across various platforms and hardware, ensuring your solutions excel in recognizing and localizing objects in images. |
98 | 82 |
|
99 |
| -~WIP~ |
| 83 | +***work in progress*** |
100 | 84 | __________________________
|
101 | 85 |
|
102 | 86 |
|
| 87 | +# Getting Started |
| 88 | + |
| 89 | + |
| 90 | +## ONNX Model Download |
| 91 | +You will need an ONNX compatible model to use, Hugging Face is a great place to download the Stable Diffusion models |
| 92 | + |
| 93 | +Download the [ONNX Stable Diffusion models from Hugging Face](https://huggingface.co/models?sort=downloads&search=Stable+Diffusion). |
| 94 | + |
| 95 | +- [Stable Diffusion Models v1.4](https://huggingface.co/CompVis/stable-diffusion-v1-4/tree/onnx) |
| 96 | +- [Stable Diffusion Models v1.5](https://huggingface.co/runwayml/stable-diffusion-v1-5/tree/onnx) |
| 97 | + |
| 98 | + |
| 99 | +Once you have selected a model version repo, click `Files and Versions`, then select the `ONNX` branch. If there isn't an ONNX model branch available, use the `main` branch and convert it to ONNX. See the [ONNX conversion tutorial for PyTorch](https://learn.microsoft.com/windows/ai/windows-ml/tutorials/pytorch-convert-model) for more information. |
| 100 | + |
| 101 | +Clone the model repo: |
| 102 | +```text |
| 103 | +git lfs install |
| 104 | +git clone https://huggingface.co/runwayml/stable-diffusion-v1-5 -b onnx |
| 105 | +``` |
| 106 | + |
| 107 | + |
| 108 | +## Hardware Requirements |
| 109 | +You can choose between `Cpu` and `DirectML`(GPU) for inference, |
| 110 | +Other `Microsoft.ML.OnnxRuntime.*` executors like `Cuda` may work but are untested |
| 111 | + |
| 112 | +`Cpu` > 12GB RAM |
| 113 | + |
| 114 | +`DirectML` > 10GB VRAM |
| 115 | + |
| 116 | + |
| 117 | + |
103 | 118 | ## Contribution
|
104 | 119 |
|
105 | 120 | We welcome contributions to OnnxStack! If you have any ideas, bug reports, or improvements, feel free to open an issue or submit a pull request.
|
|
0 commit comments