Update README.md
Browse files
README.md
CHANGED
|
@@ -7,28 +7,7 @@ pipeline_tag: text-to-image
|
|
| 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 |

|
| 34 |
|
|
|
|
| 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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
## Inference Result
|
| 12 |

|
| 13 |
|