diff --git a/modules/impact/config.py b/modules/impact/config.py index 3f45d3c..3d0bd26 100644 --- a/modules/impact/config.py +++ b/modules/impact/config.py @@ -1,7 +1,7 @@ import configparser import os -version_code = [7, 2] +version_code = [7, 2, 1] version = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '') dependency_version = 22 diff --git a/modules/impact/util_nodes.py b/modules/impact/util_nodes.py index 7eaed35..6cb0b4a 100644 --- a/modules/impact/util_nodes.py +++ b/modules/impact/util_nodes.py @@ -15,7 +15,7 @@ import inspect class GeneralSwitch: @classmethod def INPUT_TYPES(s): - dyn_inputs = {"input1": (any_typ, {"lazy": True}), } + dyn_inputs = {"input1": (any_typ, {"lazy": True, "tooltip": "Any input. When connected, one more input slot is added."}), } if core.is_execution_model_version_supported(): stack = inspect.stack() if stack[2].function == 'get_input_info' and stack[3].function == 'add_node': @@ -23,8 +23,9 @@ class GeneralSwitch: dyn_inputs[f"input{x}"] = (any_typ, {"lazy": True}) inputs = {"required": { - "select": ("INT", {"default": 1, "min": 1, "max": 999999, "step": 1}), - "sel_mode": ("BOOLEAN", {"default": False, "label_on": "select_on_prompt", "label_off": "select_on_execution", "forceInput": False}), + "select": ("INT", {"default": 1, "min": 1, "max": 999999, "step": 1, "tooltip": "The input number you want to output among the inputs"}), + "sel_mode": ("BOOLEAN", {"default": False, "label_on": "select_on_prompt", "label_off": "select_on_execution", "forceInput": False, + "tooltip": "In the case of 'select_on_execution', the selection is dynamically determined at the time of workflow execution. 'select_on_prompt' is an option that exists for older versions of ComfyUI, and it makes the decision before the workflow execution."}), }, "optional": dyn_inputs, "hidden": {"unique_id": "UNIQUE_ID", "extra_pnginfo": "EXTRA_PNGINFO"} @@ -34,6 +35,7 @@ class GeneralSwitch: RETURN_TYPES = (any_typ, "STRING", "INT") RETURN_NAMES = ("selected_value", "selected_label", "selected_index") + OUTPUT_TOOLTIPS = ("Output is generated only from the input chosen by the 'select' value.", "Slot label of the selected input slot", "Outputs the select value as is") FUNCTION = "doit" CATEGORY = "ImpactPack/Util" @@ -144,17 +146,19 @@ class GeneralInversedSwitch: @classmethod def INPUT_TYPES(s): return {"required": { - "select": ("INT", {"default": 1, "min": 1, "max": 999999, "step": 1}), - "input": (any_typ,), + "select": ("INT", {"default": 1, "min": 1, "max": 999999, "step": 1, "tooltip": "The output number you want to send from the input"}), + "input": (any_typ, {"tooltip": "Any input. When connected, one more input slot is added."}), }, "optional": { - "sel_mode": ("BOOLEAN", {"default": False, "label_on": "select_on_prompt", "label_off": "select_on_execution", "forceInput": False}), + "sel_mode": ("BOOLEAN", {"default": False, "label_on": "select_on_prompt", "label_off": "select_on_execution", "forceInput": False, + "tooltip": "In the case of 'select_on_execution', the selection is dynamically determined at the time of workflow execution. 'select_on_prompt' is an option that exists for older versions of ComfyUI, and it makes the decision before the workflow execution."}), }, "hidden": {"prompt": "PROMPT", "unique_id": "UNIQUE_ID"}, } RETURN_TYPES = ByPassTypeTuple((any_typ, )) + OUTPUT_TOOLTIPS = ("Output occurs only from the output selected by the 'select' value.\nWhen slots are connected, additional slots are created.", ) FUNCTION = "doit" CATEGORY = "ImpactPack/Util" diff --git a/pyproject.toml b/pyproject.toml index 5706e75..1935387 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-impact-pack" description = "This extension offers various detector nodes and detailer nodes that allow you to configure a workflow that automatically enhances facial details. And provide iterative upscaler." -version = "7.2" +version = "7.2.1" license = { file = "LICENSE.txt" } dependencies = ["segment-anything", "scikit-image", "piexif", "transformers", "opencv-python-headless", "GitPython", "scipy>=1.11.4"]