Update README.md
Browse files
README.md
CHANGED
@@ -1,30 +1,33 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
//
|
18 |
-
var
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
//
|
27 |
-
await
|
28 |
-
|
29 |
-
|
|
|
|
|
|
|
30 |
![Intro Image](Sample.png)
|
|
|
1 |
+
---
|
2 |
+
pipeline_tag: text-to-image
|
3 |
+
---
|
4 |
+
# Stable-Diffusion 3 Lite
|
5 |
+
|
6 |
+
## Original Model
|
7 |
+
https://huggingface.co/stabilityai/stable-diffusion-3-medium
|
8 |
+
### This conversion does not include the T5 models so is defined as "lite" not "medium"
|
9 |
+
|
10 |
+
## C# Inference Demo
|
11 |
+
https://github.com/TensorStack-AI/OnnxStack
|
12 |
+
|
13 |
+
|
14 |
+
|
15 |
+
|
16 |
+
```csharp
|
17 |
+
// Create Pipeline
|
18 |
+
var pipeline = StableDiffusion3Pipeline.CreatePipeline("D:\\Models\\stable-diffusion-3-lite-onnx");
|
19 |
+
|
20 |
+
// Prompt
|
21 |
+
var promptOptions = new PromptOptions
|
22 |
+
{
|
23 |
+
Prompt = "A cat holding a sign that says OnnxStack Stable Diffusion 3"
|
24 |
+
};
|
25 |
+
|
26 |
+
// Run pipeline
|
27 |
+
var result = await pipeline.GenerateImageAsync(promptOptions);
|
28 |
+
|
29 |
+
// Save Image Result
|
30 |
+
await result.SaveAsync("Result.png");
|
31 |
+
```
|
32 |
+
## Inference Result
|
33 |
![Intro Image](Sample.png)
|