From d8738eee2f6c8c9a17ca42ab71f47ce35ccca3e7 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Sun, 19 Jan 2025 18:08:59 +0900 Subject: [PATCH] hotfix: front - robustness fix https://github.com/ltdrdata/ComfyUI-Impact-Pack/issues/886#issuecomment-2600716281 --- js/impact-pack.js | 6 +++++- modules/impact/config.py | 2 +- pyproject.toml | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/js/impact-pack.js b/js/impact-pack.js index 55ca5bc..efd816c 100644 --- a/js/impact-pack.js +++ b/js/impact-pack.js @@ -365,7 +365,11 @@ app.registerExtension({ // connect input if(this.inputs[0].type == '*'){ const node = app.graph.getNodeById(link_info.origin_id); - let origin_type = node.outputs[link_info.origin_slot].type; + let origin_type = node.outputs[link_info.origin_slot]?.type; + + if(origin_type==undefined) { + return; // fallback + } if(origin_type == '*') { this.disconnectInput(link_info.target_slot); diff --git a/modules/impact/config.py b/modules/impact/config.py index 2c810f3..d4411df 100644 --- a/modules/impact/config.py +++ b/modules/impact/config.py @@ -1,7 +1,7 @@ import configparser import os -version_code = [8, 4] +version_code = [8, 4, 1] version = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '') dependency_version = 24 diff --git a/pyproject.toml b/pyproject.toml index e68690c..162d6ef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-impact-pack" description = "This node pack offers various detector nodes and detailer nodes that allow you to configure a workflow that automatically enhances facial details. And provide iterative upscaler." -version = "8.4" +version = "8.4.1" license = { file = "LICENSE.txt" } dependencies = ["segment-anything", "scikit-image", "piexif", "transformers", "opencv-python-headless", "GitPython", "scipy>=1.11.4"]