Update README.md
Browse files
README.md
CHANGED
@@ -1,26 +1,29 @@
|
|
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 |
-
await
|
24 |
-
|
25 |
-
|
|
|
|
|
|
|
26 |
![Intro Image](Sample.png)
|
|
|
1 |
+
---
|
2 |
+
pipeline_tag: text-to-image
|
3 |
+
---
|
4 |
+
# RealisticVision Lightning - Onnx Olive DirectML Optimized
|
5 |
+
|
6 |
+
## Original Model
|
7 |
+
https://civitai.com/models/4201?modelVersionId=501240
|
8 |
+
|
9 |
+
## C# Inference Demo
|
10 |
+
https://github.com/TensorStack-AI/OnnxStack
|
11 |
+
|
12 |
+
```csharp
|
13 |
+
// Create Pipeline
|
14 |
+
var pipeline = StableDiffusionXLPipeline.CreatePipeline("D:\\Models\\RealisticVision-Lightning-onnx");
|
15 |
+
|
16 |
+
// Prompt
|
17 |
+
var promptOptions = new PromptOptions
|
18 |
+
{
|
19 |
+
Prompt = "Create a scene of a chef in a bustling kitchen, chopping vegetables and preparing a gourmet meal."
|
20 |
+
};
|
21 |
+
|
22 |
+
// Run pipeline
|
23 |
+
var result = await pipeline.GenerateImageAsync(promptOptions);
|
24 |
+
|
25 |
+
// Save Image Result
|
26 |
+
await result.SaveAsync("Result.png");
|
27 |
+
```
|
28 |
+
## Inference Result
|
29 |
![Intro Image](Sample.png)
|