Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,27 @@
|
|
1 |
-
---
|
2 |
-
license: apache-2.0
|
3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
---
|
4 |
+
|
5 |
+
---
|
6 |
+
pipeline_tag: text-to-image
|
7 |
+
---
|
8 |
+
# Stable-Diffusion XL Base 1.0 - AMD Optimized ONNX
|
9 |
+
|
10 |
+
## Original Model
|
11 |
+
https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0
|
12 |
+
|
13 |
+
```csharp
|
14 |
+
// Create Pipeline
|
15 |
+
var pipeline = StableDiffusionPipeline.CreatePipeline("D:\\Models\\Stable-Diffusion-v1-5-onnx");
|
16 |
+
// Prompt
|
17 |
+
var promptOptions = new PromptOptions
|
18 |
+
{
|
19 |
+
Prompt = "a beautiful castle in the mountains of Lake Tahoe snow, deep blue lake, ultra hd, cartoonish style"
|
20 |
+
};
|
21 |
+
// Run pipeline
|
22 |
+
var result = await pipeline.GenerateImageAsync(promptOptions, schedulerOptions);
|
23 |
+
// Save Image Result
|
24 |
+
await result.SaveAsync("Result.png");
|
25 |
+
```
|
26 |
+
## Inference Result
|
27 |
+

|