Upload 6 files
Browse files- Icon.png +0 -0
- README.md +26 -27
- Sample.png +0 -0
- Sample2.png +0 -0
- Sample3.png +0 -0
- Sample4.png +0 -0
Icon.png
ADDED
![]() |
README.md
CHANGED
@@ -1,27 +1,26 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
##
|
7 |
-
https://
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
//
|
14 |
-
var
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
//
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
```
|
|
|
1 |
+
# Stable-Diffusion v1-5 - Onnx Olive DirectML Optimized
|
2 |
+
|
3 |
+
## Original Model
|
4 |
+
https://huggingface.co/runwayml/stable-diffusion-v1-5
|
5 |
+
|
6 |
+
## C# Inference Demo
|
7 |
+
https://github.com/saddam213/OnnxStack
|
8 |
+
|
9 |
+
```csharp
|
10 |
+
// Create Pipeline
|
11 |
+
var pipeline = StableDiffusionPipeline.CreatePipeline("D:\\Models\\Stable-Diffusion-v1-5-onnx);
|
12 |
+
|
13 |
+
// Prompt
|
14 |
+
var promptOptions = new PromptOptions
|
15 |
+
{
|
16 |
+
Prompt = "Illustrate a collection of colorful hot air balloons drifting in a bright blue sky, carried by a gentle breeze."
|
17 |
+
};
|
18 |
+
|
19 |
+
// Run pipeline
|
20 |
+
var result = await pipeline.GenerateImageAsync(promptOptions, schedulerOptions);
|
21 |
+
|
22 |
+
// Save Image Result
|
23 |
+
await result.SaveAsync("Result.png");
|
24 |
+
```
|
25 |
+
## Inference Result
|
26 |
+

|
|
Sample.png
ADDED
![]() |
Sample2.png
ADDED
![]() |
Sample3.png
ADDED
![]() |
Sample4.png
ADDED
![]() |