Update README.md
Browse files
README.md
CHANGED
@@ -1,38 +1,11 @@
|
|
1 |
-
---
|
2 |
-
pipeline_tag: text-to-image
|
3 |
-
---
|
4 |
-
# FLUX.1-schnell - Onnx Olive DirectML Optimized
|
5 |
-
|
6 |
-
## Original Model
|
7 |
-
https://huggingface.co/black-forest-labs/FLUX.1-schnell
|
8 |
-
|
9 |
-
|
10 |
-
##
|
11 |
-
https://github.com/TensorStack-AI/OnnxStack
|
12 |
-
|
13 |
-
```csharp
|
14 |
-
// Create Pipeline
|
15 |
-
var pipeline = FluxPipeline.CreatePipeline("D:\\Models\\Flux_schnell-f16-onnx");
|
16 |
-
|
17 |
-
// Prompt
|
18 |
-
var promptOptions = new PromptOptions
|
19 |
-
{
|
20 |
-
Prompt = "A cow in a suit holding a sign that says 'OnnxStack Flux', intricate design and details, hyperrealism, photorealistic, cinematic."
|
21 |
-
};
|
22 |
-
|
23 |
-
// Scheduler Options
|
24 |
-
var schedulerOptions = pipeline.DefaultSchedulerOptions with
|
25 |
-
{
|
26 |
-
GuidanceScale = 0f,
|
27 |
-
InferenceSteps = 4,
|
28 |
-
SchedulerType = SchedulerType.FlowMatchEulerDiscrete,
|
29 |
-
};
|
30 |
-
|
31 |
-
// Run pipeline
|
32 |
-
var result = await pipeline.GenerateImageAsync(promptOptions, schedulerOptions);
|
33 |
-
|
34 |
-
// Save Image Result
|
35 |
-
await result.SaveAsync("Result.png");
|
36 |
-
```
|
37 |
-
## Inference Result
|
38 |
![Intro Image](Sample.png)
|
|
|
1 |
+
---
|
2 |
+
pipeline_tag: text-to-image
|
3 |
+
---
|
4 |
+
# FLUX.1-schnell - Onnx Olive DirectML Optimized
|
5 |
+
|
6 |
+
## Original Model
|
7 |
+
https://huggingface.co/black-forest-labs/FLUX.1-schnell
|
8 |
+
|
9 |
+
|
10 |
+
## Inference Result
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
![Intro Image](Sample.png)
|