Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,37 @@
|
|
1 |
-
---
|
2 |
-
license: apache-2.0
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model:
|
4 |
+
- black-forest-labs/FLUX.1-schnell
|
5 |
+
pipeline_tag: text-to-image
|
6 |
+
library_name: diffusers
|
7 |
+
libraries: ONNX
|
8 |
+
---
|
9 |
+
---
|
10 |
+
pipeline_tag: text-to-image
|
11 |
+
---
|
12 |
+
# black-forest-labs/FLUX.1-schnell - AMD Optimized ONNX
|
13 |
+
|
14 |
+
## Original Model
|
15 |
+
https://huggingface.co/black-forest-labs/FLUX.1-schnell
|
16 |
+
|
17 |
+
## _io32/16
|
18 |
+
_io32: model input is fp32, model will convert the input to fp16, perform ops in fp16 and write the final result in fp32
|
19 |
+
|
20 |
+
_io16: model input is fp16, perform ops in fp16 and write the final result in fp16
|
21 |
+
|
22 |
+
```csharp
|
23 |
+
// csharp example
|
24 |
+
// Create Pipeline
|
25 |
+
var pipeline = StableDiffusionPipeline.CreatePipeline("D:\\Models\\FLUX.1-schnell_io32_amdgpu");
|
26 |
+
// Prompt
|
27 |
+
var promptOptions = new PromptOptions
|
28 |
+
{
|
29 |
+
Prompt = "a majestic Royal Bengal Tiger on the mountain top overlooking beatiful Lake Tahoe snowy mountains and deep blue lake, deep blue sky, ultra hd, 8k, photorealistic"
|
30 |
+
};
|
31 |
+
// Run pipeline
|
32 |
+
var result = await pipeline.GenerateImageAsync(promptOptions, schedulerOptions);
|
33 |
+
// Save Image Result
|
34 |
+
await result.SaveAsync("Result.png");
|
35 |
+
```
|
36 |
+
## Inference Result
|
37 |
+

|