owenzhangzhengzhong commited on
Commit
5050502
·
verified ·
1 Parent(s): b15e215

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +32 -0
README.md ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ ---
4
+ ---
5
+ pipeline_tag: text-to-image
6
+ ---
7
+ # Stable-Diffusion XL Base 1.0 - AMD Optimized ONNX
8
+
9
+ ## Original Model
10
+ https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0
11
+
12
+ ## _io32/16
13
+ _io32: model input is fp32, model will convert the input to fp16, perform ops in fp16 and write the final result in fp32
14
+
15
+ _io16: model input is fp16, perform ops in fp16 and write the final result in fp16
16
+
17
+ ```csharp
18
+ // csharp example
19
+ // Create Pipeline
20
+ var pipeline = StableDiffusionPipeline.CreatePipeline("D:\\Models\\stable-diffusion-xl-base-1.0_amdgpu");
21
+ // Prompt
22
+ var promptOptions = new PromptOptions
23
+ {
24
+ Prompt = "a beautiful castle in the mountains of Lake Tahoe snow, deep blue lake, ultra hd, cartoonish style"
25
+ };
26
+ // Run pipeline
27
+ var result = await pipeline.GenerateImageAsync(promptOptions, schedulerOptions);
28
+ // Save Image Result
29
+ await result.SaveAsync("Result.png");
30
+ ```
31
+ ## Inference Result
32
+ ![Intro Image](sampleImg-sdxl.png)