saddam213 commited on
Commit
ac0754f
·
verified ·
1 Parent(s): f770adf

Upload 6 files

Browse files
Files changed (7) hide show
  1. .gitattributes +3 -0
  2. Icon.png +0 -0
  3. README.md +34 -37
  4. Sample.png +2 -2
  5. Sample2.png +3 -0
  6. Sample3.png +3 -0
  7. Sample4.png +3 -0
.gitattributes CHANGED
@@ -36,3 +36,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
36
  controlnet/model.onnx.data filter=lfs diff=lfs merge=lfs -text
37
  Sample.png filter=lfs diff=lfs merge=lfs -text
38
  unet/model.onnx.data filter=lfs diff=lfs merge=lfs -text
 
 
 
 
36
  controlnet/model.onnx.data filter=lfs diff=lfs merge=lfs -text
37
  Sample.png filter=lfs diff=lfs merge=lfs -text
38
  unet/model.onnx.data 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,38 +1,35 @@
1
- ---
2
- pipeline_tag: text-to-image
3
- ---
4
- # Hyper-SD - Onnx Olive DirectML Optimized
5
-
6
- ## Original Model
7
- https://huggingface.co/ByteDance/Hyper-SD
8
-
9
- ## C# Inference Demo
10
- https://github.com/saddam213/OnnxStack
11
-
12
- ```csharp
13
- // Create Pipeline
14
- var pipeline = StableDiffusionXLPipeline.CreatePipeline("D:\\Models\\Hyper-SD-onnx");
15
-
16
- // Prompt
17
- var promptOptions = new PromptOptions
18
- {
19
- Prompt = "photo of a cat"
20
- };
21
-
22
- // Scheduler Options
23
- var schedulerOptions = pipeline.DefaultSchedulerOptions with
24
- {
25
- InferenceSteps = 1,
26
- GuidanceScale = 0,
27
- SchedulerType = SchedulerType.DDIM,
28
- Timesteps = new List<int> { 800 }
29
- };
30
-
31
- // Run pipeline
32
- var result = await pipeline.GenerateImageAsync(promptOptions, schedulerOptions);
33
-
34
- // Save Image Result
35
- await result.SaveAsync("Result.png");
36
- ```
37
- ## Inference Result
38
  ![Intro Image](Sample.png)
 
1
+ # Hyper-SD - Onnx Olive DirectML Optimized
2
+
3
+ ## Original Model
4
+ https://huggingface.co/ByteDance/Hyper-SD
5
+
6
+ ## C# Inference Demo
7
+ https://github.com/saddam213/OnnxStack
8
+
9
+ ```csharp
10
+ // Create Pipeline
11
+ var pipeline = StableDiffusionXLPipeline.CreatePipeline("D:\\Models\\Hyper-SD-onnx");
12
+
13
+ // Prompt
14
+ var promptOptions = new PromptOptions
15
+ {
16
+ Prompt = "Generate an image of a cunning thief man, with a hood and a smirk, slipping away with a bag of stolen jewels."
17
+ };
18
+
19
+ // Scheduler Options
20
+ var schedulerOptions = pipeline.DefaultSchedulerOptions with
21
+ {
22
+ InferenceSteps = 1,
23
+ GuidanceScale = 0,
24
+ SchedulerType = SchedulerType.DDIM,
25
+ Timesteps = new List<int> { 800 }
26
+ };
27
+
28
+ // Run pipeline
29
+ var result = await pipeline.GenerateImageAsync(promptOptions, schedulerOptions);
30
+
31
+ // Save Image Result
32
+ await result.SaveAsync("Result.png");
33
+ ```
34
+ ## Inference Result
 
 
 
35
  ![Intro Image](Sample.png)
Sample.png CHANGED

Git LFS Details

  • SHA256: 374145b0d1f8610c59aa01e8b741ebb09e33fc4a70a193dc8c9cb24409d546f0
  • Pointer size: 132 Bytes
  • Size of remote file: 1.47 MB

Git LFS Details

  • SHA256: 2d8a4f934a629e1b48e6a14d51cd20a6f2f5151991813fe67270709304abb7d8
  • Pointer size: 132 Bytes
  • Size of remote file: 1.65 MB
Sample2.png ADDED

Git LFS Details

  • SHA256: 374145b0d1f8610c59aa01e8b741ebb09e33fc4a70a193dc8c9cb24409d546f0
  • Pointer size: 132 Bytes
  • Size of remote file: 1.47 MB
Sample3.png ADDED

Git LFS Details

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

Git LFS Details

  • SHA256: b969f02b67eda5520ffa52586a2fc6312881a508c429a7f23c093424bbd16bde
  • Pointer size: 132 Bytes
  • Size of remote file: 1.44 MB