Skip to content
This repository was archived by the owner on Nov 27, 2024. It is now read-only.

Commit a7d7463

Browse files
committed
Limit GuidanceScale to 30f
1 parent 564baf5 commit a7d7463

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

OnnxStack.StableDiffusion/Config/SchedulerOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public class SchedulerOptions
4848
/// <value>
4949
/// The scale for the classifier-free guidance. The higher the number the more it will try to look like the prompt but the image quality may suffer.
5050
/// </value>
51-
[Range(0f, 40f)]
51+
[Range(0f, 30f)]
5252
public float GuidanceScale { get; set; } = 7.5f;
5353

5454
/// <summary>

OnnxStack.WebUI/Pages/Shared/_SchedulerOptionsForm.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<div class="d-flex flex-column mb-2 w-100">
5656
<small>Guidance</small>
5757
<div class="d-flex flex-row slider-container">
58-
@Html.TextBoxFor(m => m.GuidanceScale, new { @type="range", @class = "slider", min="0", max="40", step="0.1" })
58+
@Html.TextBoxFor(m => m.GuidanceScale, new { @type="range", @class = "slider", min="0", max="30", step="0.1" })
5959
<label>0</label>
6060
</div>
6161
</div>

0 commit comments

Comments
 (0)