From 2e9b51640f604c501597734be8599bd9a7c7f07f Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Tue, 25 Jun 2024 21:15:29 +0900 Subject: [PATCH] fix: browser frozen when ultralytics dir isn't exists. https://github.com/ltdrdata/ComfyUI-Impact-Pack/issues/648#issuecomment-2188453263 --- js/impact-pack.js | 2 +- modules/impact/config.py | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/impact-pack.js b/js/impact-pack.js index 053d056..233a333 100644 --- a/js/impact-pack.js +++ b/js/impact-pack.js @@ -598,7 +598,7 @@ app.registerExtension({ node.onDrawForeground = function (ctx) { const r = orig_draw?.apply?.(this, arguments); - let is_seg = model_name_widget.value.startsWith('segm/') || model_name_widget.value.includes('-seg'); + let is_seg = model_name_widget.value?.startsWith('segm/') || model_name_widget.value?.includes('-seg'); if(!is_seg) { var slot_pos = new Float32Array(2); var pos = node.getConnectionPos(false, 1, slot_pos); diff --git a/modules/impact/config.py b/modules/impact/config.py index 709da6d..265a29d 100644 --- a/modules/impact/config.py +++ b/modules/impact/config.py @@ -1,7 +1,7 @@ import configparser import os -version_code = [5, 18] +version_code = [5, 18, 1] version = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '') dependency_version = 21 diff --git a/pyproject.toml b/pyproject.toml index 4bc2449..0c83da9 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 = "5.18" +version = "5.18.1" license = "LICENSE" dependencies = ["segment-anything", "scikit-image", "piexif", "transformers", "opencv-python-headless", "GitPython", "scipy>=1.11.4"]