saddam213 commited on
Commit
ecf0592
·
verified ·
1 Parent(s): 3ef7dbe

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +29 -0
README.md ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #FLUX.1-schnell - Onnx Olive DirectML Optimized
2
+
3
+ ## Original Model
4
+ https://huggingface.co/black-forest-labs/FLUX.1-schnell
5
+
6
+ ## C# Inference Demo
7
+ https://github.com/TensorStack-AI/OnnxStack
8
+
9
+ ```csharp
10
+ // Create Pipeline
11
+ var pipeline = FluxPipeline.CreatePipeline("D:\\Models\\Flux_schnell-f32-onnx");
12
+
13
+ // Prompt
14
+ var promptOptions = new PromptOptions
15
+ {
16
+ GuidanceScale = 0f,
17
+ InferenceSteps = 4,
18
+ SchedulerType = SchedulerType.FlowMatchEulerDiscrete,
19
+ Prompt = "Create an image of a wise old wizard with a long white beard, holding a staff topped with a crystal and casting a spell"
20
+ };
21
+
22
+ // Run pipeline
23
+ var result = await pipeline.GenerateImageAsync(promptOptions);
24
+
25
+ // Save Image Result
26
+ await result.SaveAsync("Result.png");
27
+ ```
28
+ ## Inference Result
29
+ ![Intro Image](Sample.png)