Upload 6 files
Browse files- .gitattributes +4 -0
- Icon.png +0 -0
- README.md +26 -27
- Sample.png +3 -0
- Sample2.png +3 -0
- Sample3.png +3 -0
- Sample4.png +3 -0
.gitattributes
CHANGED
@@ -35,3 +35,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
controlnet/model.onnx.data filter=lfs diff=lfs merge=lfs -text
|
37 |
unet/model.onnx.data filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
controlnet/model.onnx.data filter=lfs diff=lfs merge=lfs -text
|
37 |
unet/model.onnx.data filter=lfs diff=lfs merge=lfs -text
|
38 |
+
Sample.png filter=lfs diff=lfs merge=lfs -text
|
39 |
+
Sample2.png filter=lfs diff=lfs merge=lfs -text
|
40 |
+
Sample3.png filter=lfs diff=lfs merge=lfs -text
|
41 |
+
Sample4.png filter=lfs diff=lfs merge=lfs -text
|
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 XL Base 1.0 - Onnx Olive DirectML Optimized
|
2 |
+
|
3 |
+
## Original Model
|
4 |
+
https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0
|
5 |
+
|
6 |
+
## C# Inference Demo
|
7 |
+
https://github.com/saddam213/OnnxStack
|
8 |
+
|
9 |
+
```csharp
|
10 |
+
// Create Pipeline
|
11 |
+
var pipeline = StableDiffusionXLPipeline.CreatePipeline("D:\\Models\\stable-diffusion-xl-base-1.0-onnx");
|
12 |
+
|
13 |
+
// Prompt
|
14 |
+
var promptOptions = new PromptOptions
|
15 |
+
{
|
16 |
+
Prompt = "Illustrate a fierce barbarian man, with muscles rippling and wielding a massive axe, roaring in triumph."
|
17 |
+
};
|
18 |
+
|
19 |
+
// Run pipeline
|
20 |
+
var result = await pipeline.GenerateImageAsync(promptOptions);
|
21 |
+
|
22 |
+
// Save Image Result
|
23 |
+
await result.SaveAsync("Result.png");
|
24 |
+
```
|
25 |
+
## Inference Result
|
26 |
+

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