saddam213 commited on
Commit
af603fc
·
verified ·
1 Parent(s): 9cc561d

Upload 6 files

Browse files
Files changed (7) hide show
  1. .gitattributes +4 -0
  2. Icon.png +0 -0
  3. README.md +26 -27
  4. Sample.png +3 -0
  5. Sample2.png +3 -0
  6. Sample3.png +3 -0
  7. Sample4.png +3 -0
.gitattributes CHANGED
@@ -35,3 +35,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  controlnet/model.onnx.data filter=lfs diff=lfs merge=lfs -text
37
  unet/model.onnx.data filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  controlnet/model.onnx.data filter=lfs diff=lfs merge=lfs -text
37
  unet/model.onnx.data filter=lfs diff=lfs merge=lfs -text
38
+ Sample.png filter=lfs diff=lfs merge=lfs -text
39
+ Sample2.png filter=lfs diff=lfs merge=lfs -text
40
+ Sample3.png filter=lfs diff=lfs merge=lfs -text
41
+ Sample4.png filter=lfs diff=lfs merge=lfs -text
Icon.png ADDED
README.md CHANGED
@@ -1,27 +1,26 @@
1
- ---
2
- pipeline_tag: text-to-image
3
- ---
4
- # Stable-Diffusion XL Base 1.0 - Onnx Olive DirectML Optimized
5
-
6
- ## Original Model
7
- https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0
8
-
9
- ## C# Inference Demo
10
- https://github.com/saddam213/OnnxStack
11
-
12
- ```csharp
13
- // Create Pipeline
14
- var pipeline = StableDiffusionXLPipeline.CreatePipeline("D:\\Models\\stable-diffusion-xl-base-1.0-onnx");
15
-
16
- // Prompt
17
- var promptOptions = new PromptOptions
18
- {
19
- Prompt = "a brain connected with cable and computers, dreamlike, hyperrealistic, 8k, hyperdetailed, steampunk, cyberpunk, cyborg"
20
- };
21
-
22
- // Run pipeline
23
- var result = await pipeline.GenerateImageAsync(promptOptions);
24
-
25
- // Save Image Result
26
- await result.SaveAsync("Result.png");
27
- ```
 
1
+ # Stable-Diffusion XL Base 1.0 - Onnx Olive DirectML Optimized
2
+
3
+ ## Original Model
4
+ https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0
5
+
6
+ ## C# Inference Demo
7
+ https://github.com/saddam213/OnnxStack
8
+
9
+ ```csharp
10
+ // Create Pipeline
11
+ var pipeline = StableDiffusionXLPipeline.CreatePipeline("D:\\Models\\stable-diffusion-xl-base-1.0-onnx");
12
+
13
+ // Prompt
14
+ var promptOptions = new PromptOptions
15
+ {
16
+ Prompt = "Illustrate a fierce barbarian man, with muscles rippling and wielding a massive axe, roaring in triumph."
17
+ };
18
+
19
+ // Run pipeline
20
+ var result = await pipeline.GenerateImageAsync(promptOptions);
21
+
22
+ // Save Image Result
23
+ await result.SaveAsync("Result.png");
24
+ ```
25
+ ## Inference Result
26
+ ![Intro Image](Sample.png)
 
Sample.png ADDED

Git LFS Details

  • SHA256: c00cfb5fd4fda4aff203cdb5279c46f61ecc851c6a50d1f8e293291d7fc29a26
  • Pointer size: 132 Bytes
  • Size of remote file: 2.07 MB
Sample2.png ADDED

Git LFS Details

  • SHA256: f6f1790962e2da778743bfb3c53b713e33f310ba11161a856c958800ff646320
  • Pointer size: 132 Bytes
  • Size of remote file: 1.65 MB
Sample3.png ADDED

Git LFS Details

  • SHA256: fba73fa0865dc10b958dd16df63b008bfc8ca73500257783be0c18fbf8f5716f
  • Pointer size: 132 Bytes
  • Size of remote file: 1.92 MB
Sample4.png ADDED

Git LFS Details

  • SHA256: bb9bfeaf7b38b9dab3ee54d428569b3fe9b875bf11922aa72a63ddd438cf2ba6
  • Pointer size: 132 Bytes
  • Size of remote file: 1.94 MB