saddam213 commited on
Commit
d8b35ea
·
verified ·
1 Parent(s): b7bca04

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +25 -28
README.md CHANGED
@@ -1,29 +1,26 @@
1
- ---
2
- pipeline_tag: text-to-image
3
- ---
4
- # Stable-Diffusion v1-5 - Onnx Olive DirectML Optimized
5
-
6
- ## Original Model
7
- https://huggingface.co/runwayml/stable-diffusion-v1-5
8
-
9
- ## C# Inference Demo
10
- https://github.com/saddam213/OnnxStack
11
-
12
- ```csharp
13
- // Create Pipeline
14
- var pipeline = StableDiffusionPipeline.CreatePipeline("D:\\Models\\Stable-Diffusion-v1-5-onnx);
15
-
16
- // Prompt
17
- var promptOptions = new PromptOptions
18
- {
19
- Prompt = "Illustrate a collection of colorful hot air balloons drifting in a bright blue sky, carried by a gentle breeze."
20
- };
21
-
22
- // Run pipeline
23
- var result = await pipeline.GenerateImageAsync(promptOptions, schedulerOptions);
24
-
25
- // Save Image Result
26
- await result.SaveAsync("Result.png");
27
- ```
28
- ## Inference Result
29
  ![Intro Image](Sample.png)
 
1
+ # Stable-Diffusion v1-5 - Onnx Olive DirectML Optimized
2
+
3
+ ## Original Model
4
+ https://huggingface.co/runwayml/stable-diffusion-v1-5
5
+
6
+ ## C# Inference Demo
7
+ https://github.com/saddam213/OnnxStack
8
+
9
+ ```csharp
10
+ // Create Pipeline
11
+ var pipeline = StableDiffusionPipeline.CreatePipeline("D:\\Models\\Stable-Diffusion-v1-5-onnx");
12
+
13
+ // Prompt
14
+ var promptOptions = new PromptOptions
15
+ {
16
+ Prompt = "Illustrate a collection of colorful hot air balloons drifting in a bright blue sky, carried by a gentle breeze."
17
+ };
18
+
19
+ // Run pipeline
20
+ var result = await pipeline.GenerateImageAsync(promptOptions, schedulerOptions);
21
+
22
+ // Save Image Result
23
+ await result.SaveAsync("Result.png");
24
+ ```
25
+ ## Inference Result
 
 
 
26
  ![Intro Image](Sample.png)