diff --git a/__init__.py b/__init__.py index f432dbd..ad3990d 100644 --- a/__init__.py +++ b/__init__.py @@ -1,17 +1,23 @@ from .flux_resolution_cal_node import FluxResolutionNode from .flux_sampler_node import FluxSampler from .flux_controlnet_node import FluxControlNetApply +from .boolean_basic_node import BooleanBasic +from .boolean_reverse_node import BooleanReverse -print("Initializing Flux Resolution Node, Flux Sampler Node, and Flux ControlNet Apply Node") +print("Initializing ControlAltAI Nodes") NODE_CLASS_MAPPINGS = { "FluxResolutionNode": FluxResolutionNode, "FluxSampler": FluxSampler, "FluxControlNetApply": FluxControlNetApply, + "BooleanBasic": BooleanBasic, + "BooleanReverse": BooleanReverse, } NODE_DISPLAY_NAME_MAPPINGS = { "FluxResolutionNode": "Flux Resolution Calculator", "FluxSampler": "Flux Sampler", "FluxControlNetApply": "Flux ControlNet", + "BooleanBasic": "Boolean Basic", + "BooleanReverse": "Boolean Reverse", } \ No newline at end of file diff --git a/boolean_basic_node.py b/boolean_basic_node.py new file mode 100644 index 0000000..7da6dc3 --- /dev/null +++ b/boolean_basic_node.py @@ -0,0 +1,23 @@ +class BooleanBasic: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "boolean": ("BOOLEAN", {"default": False}), + }, + } + + RETURN_TYPES = ("BOOLEAN",) + FUNCTION = "process_boolean" + CATEGORY = "ControlAltAI Nodes/Logic" + + def process_boolean(self, boolean): + return (boolean,) + +NODE_CLASS_MAPPINGS = { + "BooleanBasic": BooleanBasic, +} + +NODE_DISPLAY_NAME_MAPPINGS = { + "BooleanBasic": "Boolean Basic", +} \ No newline at end of file diff --git a/boolean_reverse_node.py b/boolean_reverse_node.py new file mode 100644 index 0000000..454700a --- /dev/null +++ b/boolean_reverse_node.py @@ -0,0 +1,23 @@ +class BooleanReverse: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "boolean": ("BOOLEAN", {"default": True}), + }, + } + + RETURN_TYPES = ("BOOLEAN",) + FUNCTION = "reverse_boolean" + CATEGORY = "ControlAltAI Nodes/Logic" + + def reverse_boolean(self, boolean): + return (not boolean,) + +NODE_CLASS_MAPPINGS = { + "BooleanReverse": BooleanReverse, +} + +NODE_DISPLAY_NAME_MAPPINGS = { + "BooleanReverse": "Boolean Reverse", +} \ No newline at end of file diff --git a/flux_sampler_node.py b/flux_sampler_node.py index 2cd3449..fb0da4f 100644 --- a/flux_sampler_node.py +++ b/flux_sampler_node.py @@ -18,9 +18,9 @@ class FluxSampler: "model": ("MODEL",), "conditioning": ("CONDITIONING",), "latent_image": ("LATENT",), - "sampler_name": (FLUX_SAMPLER_NAMES, {"default": "heunpp2"}), + "sampler_name": (FLUX_SAMPLER_NAMES, {"default": "euler"}), "scheduler": (FLUX_SCHEDULER_NAMES, {"default": "beta"}), - "steps": ("INT", {"default": 42, "min": 1, "max": 10000}), + "steps": ("INT", {"default": 30, "min": 1, "max": 10000}), "denoise": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.01}), "noise_seed": ("INT", {"default": 143220275975594, "min": 0, "max": 0xffffffffffffffff}), }