Skip to content

Commit ca71e54

Browse files
Lower cfg step to 0.1 in sampler nodes.
1 parent 72e3feb commit ca71e54

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

comfy_extras/nodes_custom_sampler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def INPUT_TYPES(s):
188188
{"model": ("MODEL",),
189189
"add_noise": ("BOOLEAN", {"default": True}),
190190
"noise_seed": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff}),
191-
"cfg": ("FLOAT", {"default": 8.0, "min": 0.0, "max": 100.0, "step":0.5, "round": 0.01}),
191+
"cfg": ("FLOAT", {"default": 8.0, "min": 0.0, "max": 100.0, "step":0.1, "round": 0.01}),
192192
"positive": ("CONDITIONING", ),
193193
"negative": ("CONDITIONING", ),
194194
"sampler": ("SAMPLER", ),

nodes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@ def INPUT_TYPES(s):
12181218
{"model": ("MODEL",),
12191219
"seed": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff}),
12201220
"steps": ("INT", {"default": 20, "min": 1, "max": 10000}),
1221-
"cfg": ("FLOAT", {"default": 8.0, "min": 0.0, "max": 100.0, "step":0.5, "round": 0.01}),
1221+
"cfg": ("FLOAT", {"default": 8.0, "min": 0.0, "max": 100.0, "step":0.1, "round": 0.01}),
12221222
"sampler_name": (comfy.samplers.KSampler.SAMPLERS, ),
12231223
"scheduler": (comfy.samplers.KSampler.SCHEDULERS, ),
12241224
"positive": ("CONDITIONING", ),
@@ -1244,7 +1244,7 @@ def INPUT_TYPES(s):
12441244
"add_noise": (["enable", "disable"], ),
12451245
"noise_seed": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff}),
12461246
"steps": ("INT", {"default": 20, "min": 1, "max": 10000}),
1247-
"cfg": ("FLOAT", {"default": 8.0, "min": 0.0, "max": 100.0, "step":0.5, "round": 0.01}),
1247+
"cfg": ("FLOAT", {"default": 8.0, "min": 0.0, "max": 100.0, "step":0.1, "round": 0.01}),
12481248
"sampler_name": (comfy.samplers.KSampler.SAMPLERS, ),
12491249
"scheduler": (comfy.samplers.KSampler.SCHEDULERS, ),
12501250
"positive": ("CONDITIONING", ),

0 commit comments

Comments
 (0)