diff --git a/modules/impact/config.py b/modules/impact/config.py index d0ea014..2c5ea5e 100644 --- a/modules/impact/config.py +++ b/modules/impact/config.py @@ -1,7 +1,7 @@ import configparser import os -version_code = [7, 10, 2] +version_code = [7, 10, 3] version = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '') dependency_version = 23 diff --git a/modules/impact/util_nodes.py b/modules/impact/util_nodes.py index 2431b50..8a533e5 100644 --- a/modules/impact/util_nodes.py +++ b/modules/impact/util_nodes.py @@ -17,9 +17,16 @@ class GeneralSwitch: 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': - for x in range(2, 200): - dyn_inputs[f"input{x}"] = (any_typ, {"lazy": True}) + if stack[2].function == 'get_input_info': + # bypass validation + class AllContainer: + def __contains__(self, item): + return True + + def __getitem__(self, key): + return any_typ, {"lazy": True} + + dyn_inputs = AllContainer() inputs = {"required": { "select": ("INT", {"default": 1, "min": 1, "max": 999999, "step": 1, "tooltip": "The input number you want to output among the inputs"}), diff --git a/pyproject.toml b/pyproject.toml index d0cf3f4..8177611 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.10.2" +version = "7.10.3" license = { file = "LICENSE.txt" } dependencies = ["segment-anything", "scikit-image", "piexif", "transformers", "opencv-python-headless", "GitPython", "scipy>=1.11.4"]