mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-06-10 16:27:33 +08:00
Change default to false
This commit is contained in:
parent
fac894fe1e
commit
3594a0f6c2
@ -124,10 +124,7 @@ class Quantize:
|
||||
"max": 256,
|
||||
"step": 1
|
||||
}),
|
||||
"dither": ("BOOL", {
|
||||
"off": "none",
|
||||
"on": "floyd-steinberg"
|
||||
}),
|
||||
"dither": ("BOOL", {"default": True, "on": "floyd-steinberg", "off": "none"}),
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
10
nodes.py
10
nodes.py
@ -519,7 +519,7 @@ class LatentUpscale:
|
||||
return {"required": { "samples": ("LATENT",), "upscale_method": (s.upscale_methods,),
|
||||
"width": ("INT", {"default": 512, "min": 64, "max": MAX_RESOLUTION, "step": 64}),
|
||||
"height": ("INT", {"default": 512, "min": 64, "max": MAX_RESOLUTION, "step": 64}),
|
||||
"crop": ("BOOL", {"default": False, "on": "center", "off": "disabled"}),}}
|
||||
"crop": ("BOOL", {"on": "center", "off": "disabled"}),}}
|
||||
RETURN_TYPES = ("LATENT",)
|
||||
FUNCTION = "upscale"
|
||||
|
||||
@ -559,7 +559,7 @@ class LatentFlip:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {"required": { "samples": ("LATENT",),
|
||||
"flip_method": ("BOOL", {"on": "x-axis: vertically", "off": "y-axis: horizontally"}),
|
||||
"flip_method": ("BOOL", {"default": True, "on": "x-axis: vertically", "off": "y-axis: horizontally"}),
|
||||
}}
|
||||
RETURN_TYPES = ("LATENT",)
|
||||
FUNCTION = "flip"
|
||||
@ -772,7 +772,7 @@ class KSamplerAdvanced:
|
||||
def INPUT_TYPES(s):
|
||||
return {"required":
|
||||
{"model": ("MODEL",),
|
||||
"add_noise": ("BOOL", {"on": "enable", "off": "disable"}),
|
||||
"add_noise": ("BOOL", {"default": True, "on": "enable", "off": "disable"}),
|
||||
"noise_seed": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff}),
|
||||
"steps": ("INT", {"default": 20, "min": 1, "max": 10000}),
|
||||
"cfg": ("FLOAT", {"default": 8.0, "min": 0.0, "max": 100.0}),
|
||||
@ -783,7 +783,7 @@ class KSamplerAdvanced:
|
||||
"latent_image": ("LATENT", ),
|
||||
"start_at_step": ("INT", {"default": 0, "min": 0, "max": 10000}),
|
||||
"end_at_step": ("INT", {"default": 10000, "min": 0, "max": 10000}),
|
||||
"return_with_leftover_noise": ("BOOL", {"default": False, "on": "enable", "off": "disable"}),
|
||||
"return_with_leftover_noise": ("BOOL", {"on": "enable", "off": "disable"}),
|
||||
}}
|
||||
|
||||
RETURN_TYPES = ("LATENT",)
|
||||
@ -966,7 +966,7 @@ class ImageScale:
|
||||
return {"required": { "image": ("IMAGE",), "upscale_method": (s.upscale_methods,),
|
||||
"width": ("INT", {"default": 512, "min": 1, "max": MAX_RESOLUTION, "step": 1}),
|
||||
"height": ("INT", {"default": 512, "min": 1, "max": MAX_RESOLUTION, "step": 1}),
|
||||
"crop": ("BOOL", {"default": False, "on": "center", "off": "disabled"})}}
|
||||
"crop": ("BOOL", {"on": "center", "off": "disabled"})}}
|
||||
RETURN_TYPES = ("IMAGE",)
|
||||
FUNCTION = "upscale"
|
||||
|
||||
|
||||
@ -366,10 +366,10 @@ export const ComfyWidgets = {
|
||||
return { widget: uploadWidget };
|
||||
},
|
||||
BOOL(node, inputName, inputData) {
|
||||
let defaultVal = true;
|
||||
let defaultVal = false;
|
||||
let defaultOn = "true";
|
||||
let defaultOff = "false";
|
||||
if (inputData[1] && "default" in inputData[1]) {
|
||||
if (inputData[1] && inputData[1].default) {
|
||||
defaultVal = inputData[1].default
|
||||
}
|
||||
if (inputData[1] && inputData[1].on) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user