Update README.md
Browse files
README.md
CHANGED
|
@@ -1,34 +1,37 @@
|
|
| 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 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
//
|
| 31 |
-
await
|
| 32 |
-
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
| 34 |

|
|
|
|
| 1 |
+
---
|
| 2 |
+
pipeline_tag: text-to-image
|
| 3 |
+
---
|
| 4 |
+
# Juggernaut XL Hyper - Onnx Olive DirectML Optimized
|
| 5 |
+
|
| 6 |
+
## Original Model
|
| 7 |
+
https://civitai.com/models/133005?modelVersionId=471120
|
| 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\\Juggernaut-X-Hyper-onnx");
|
| 15 |
+
|
| 16 |
+
// Prompt
|
| 17 |
+
var promptOptions = new PromptOptions
|
| 18 |
+
{
|
| 19 |
+
Prompt = "Illustrate a cheerful barista preparing a cup of coffee behind the counter of a cozy cafe."
|
| 20 |
+
};
|
| 21 |
+
|
| 22 |
+
// Scheduler Options
|
| 23 |
+
var schedulerOptions = pipeline.DefaultSchedulerOptions with
|
| 24 |
+
{
|
| 25 |
+
SchedulerType = SchedulerType.Euler,
|
| 26 |
+
InferenceSteps = 8,
|
| 27 |
+
GuidanceScale = 0
|
| 28 |
+
};
|
| 29 |
+
|
| 30 |
+
// Run pipeline
|
| 31 |
+
var result = await pipeline.GenerateImageAsync(promptOptions, schedulerOptions);
|
| 32 |
+
|
| 33 |
+
// Save Image Result
|
| 34 |
+
await result.SaveAsync("Result.png");
|
| 35 |
+
```
|
| 36 |
+
## Inference Result
|
| 37 |

|