Skip to content

Commit 6a59766

Browse files
w-e-whoblin
andauthored
Add Skip Early CFG to XYZ (#16282)
Co-authored-by: Yevhenii Hurin <[email protected]>
1 parent 65423d2 commit 6a59766

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

modules/shared_options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@
404404
'uni_pc_order': OptionInfo(3, "UniPC order", gr.Slider, {"minimum": 1, "maximum": 50, "step": 1}, infotext='UniPC order').info("must be < sampling steps"),
405405
'uni_pc_lower_order_final': OptionInfo(True, "UniPC lower order final", infotext='UniPC lower order final'),
406406
'sd_noise_schedule': OptionInfo("Default", "Noise schedule for sampling", gr.Radio, {"choices": ["Default", "Zero Terminal SNR"]}, infotext="Noise Schedule").info("for use with zero terminal SNR trained models"),
407-
'skip_early_cond': OptionInfo(0.0, "Ignore negative prompt during early sampling", gr.Slider, {"minimum": 0.0, "maximum": 1.0, "step": 0.01}, infotext="Skip Early CFG").info("disables CFG on a proportion of steps at the beginning of generation; 0=skip none; 1=skip all; can both improve sample diversity/quality and speed up sampling"),
407+
'skip_early_cond': OptionInfo(0.0, "Ignore negative prompt during early sampling", gr.Slider, {"minimum": 0.0, "maximum": 1.0, "step": 0.01}, infotext="Skip Early CFG").info("disables CFG on a proportion of steps at the beginning of generation; 0=skip none; 1=skip all; can both improve sample diversity/quality and speed up sampling; XYZ plot: Skip Early CFG"),
408408
'beta_dist_alpha': OptionInfo(0.6, "Beta scheduler - alpha", gr.Slider, {"minimum": 0.01, "maximum": 1.0, "step": 0.01}, infotext='Beta scheduler alpha').info('Default = 0.6; the alpha parameter of the beta distribution used in Beta sampling'),
409409
'beta_dist_beta': OptionInfo(0.6, "Beta scheduler - beta", gr.Slider, {"minimum": 0.01, "maximum": 1.0, "step": 0.01}, infotext='Beta scheduler beta').info('Default = 0.6; the beta parameter of the beta distribution used in Beta sampling'),
410410
}))

scripts/xyz_grid.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ def __init__(self, *args, **kwargs):
259259
AxisOption("Schedule min sigma", float, apply_override("sigma_min")),
260260
AxisOption("Schedule max sigma", float, apply_override("sigma_max")),
261261
AxisOption("Schedule rho", float, apply_override("rho")),
262+
AxisOption("Skip Early CFG", float, apply_override('skip_early_cond')),
262263
AxisOption("Beta schedule alpha", float, apply_override("beta_dist_alpha")),
263264
AxisOption("Beta schedule beta", float, apply_override("beta_dist_beta")),
264265
AxisOption("Eta", float, apply_field("eta")),

0 commit comments

Comments
 (0)