amd
/

Text-to-Image
Diffusers
ONNX
owenzhangzhengzhong commited on
Commit
bc84b73
·
verified ·
1 Parent(s): 1f8970a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +55 -3
README.md CHANGED
@@ -1,3 +1,55 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: flux-1-dev-non-commercial-license
4
+ license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
5
+ base_model:
6
+ - black-forest-labs/FLUX.1-dev
7
+ pipeline_tag: text-to-image
8
+ library_name: diffusers
9
+ ---
10
+
11
+ # black-forest-labs/FLUX.1-dev - AMD Optimized ONNX
12
+
13
+ ## Original Model
14
+ https://huggingface.co/black-forest-labs/FLUX.1-dev
15
+
16
+ ## _io32/16
17
+ _io32: model input is fp32, model will convert the input to fp16, perform ops in fp16 and write the final result in fp32
18
+
19
+ _io16: model input is fp16, perform ops in fp16 and write the final result in fp16
20
+
21
+ ## Running
22
+
23
+ ### 1. Using Amuse GUI Application
24
+ Download and install Amuse GUI application to run it: https://www.amuse-ai.com/
25
+
26
+
27
+ ### 2. C# Inference Demo
28
+ https://github.com/TensorStack-AI/OnnxStack
29
+
30
+ ```
31
+ // csharp example
32
+ // Create Pipeline
33
+ var pipeline = FluxPipeline.CreatePipeline("D:\\Models\\Flux.1-dev_amdgpu");
34
+ // Prompt
35
+ var promptOptions = new PromptOptions
36
+ {
37
+ 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"
38
+ };
39
+ // Scheduler Options
40
+ var schedulerOptions = pipeline.DefaultSchedulerOptions with
41
+ {
42
+ InferenceSteps = 50,
43
+ GuidanceScale = 3.5f,
44
+ SchedulerType = SchedulerType.FlowMatchEulerDiscrete,
45
+ };
46
+
47
+ // Run pipeline
48
+ var result = await pipeline.GenerateImageAsync(promptOptions, schedulerOptions);
49
+
50
+ // Save Image Result
51
+ await result.SaveAsync("Result.png");
52
+ ```
53
+
54
+ ## Inference Result
55
+ ![Intro Image](sample.png)