fix: browser frozen when ultralytics dir isn't exists.

https://github.com/ltdrdata/ComfyUI-Impact-Pack/issues/648#issuecomment-2188453263
This commit is contained in:
Dr.Lt.Data
2024-06-25 21:15:29 +09:00
parent 4ecce73bf7
commit 2e9b51640f
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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"]