From 16f066fc64115c3f3b8532be28b5767ab4c899f7 Mon Sep 17 00:00:00 2001 From: DorotaL <865804595@qq.com> Date: Wed, 11 Oct 2023 15:17:24 +0800 Subject: [PATCH] make boolean options be boolean --- nodes.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nodes.py b/nodes.py index d1517b1..2bfba08 100644 --- a/nodes.py +++ b/nodes.py @@ -27,7 +27,7 @@ class ScaledSoftControlNetWeights: return { "required": { "base_multiplier": ("FLOAT", {"default": 0.825, "min": 0.0, "max": 10.0, "step": 0.001}, ), - "flip_weights": ([False, True], ), + "flip_weights": ("BOOLEAN", {"default": False}), }, } @@ -61,7 +61,7 @@ class SoftControlNetWeights: "weight_10": ("FLOAT", {"default": 0.6806249999999999, "min": 0.0, "max": 10.0, "step": 0.001}, ), "weight_11": ("FLOAT", {"default": 0.825, "min": 0.0, "max": 10.0, "step": 0.001}, ), "weight_12": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.001}, ), - "flip_weights": ([False, True], ), + "flip_weights": ("BOOLEAN", {"default": False}), }, } @@ -97,7 +97,7 @@ class CustomControlNetWeights: "weight_10": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.001}, ), "weight_11": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.001}, ), "weight_12": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.001}, ), - "flip_weights": ([False, True], ), + "flip_weights": ("BOOLEAN", {"default": False}), } } @@ -124,7 +124,7 @@ class SoftT2IAdapterWeights: "weight_01": ("FLOAT", {"default": 0.62, "min": 0.0, "max": 10.0, "step": 0.001}, ), "weight_02": ("FLOAT", {"default": 0.825, "min": 0.0, "max": 10.0, "step": 0.001}, ), "weight_03": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.001}, ), - "flip_weights": ([False, True], ), + "flip_weights": ("BOOLEAN", {"default": False}), }, } @@ -150,7 +150,7 @@ class CustomT2IAdapterWeights: "weight_01": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.001}, ), "weight_02": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.001}, ), "weight_03": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.001}, ), - "flip_weights": ([False, True], ), + "flip_weights": ("BOOLEAN", {"default": False}), }, }