saddam213 commited on
Commit
61ec4be
·
verified ·
1 Parent(s): ff0ccfc

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +24 -0
README.md ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 = "photo of a cat"
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
+ ```