diff --git a/js/impact-image-util.js b/js/impact-image-util.js index c7df600..4985a9e 100644 --- a/js/impact-image-util.js +++ b/js/impact-image-util.js @@ -181,7 +181,7 @@ app.registerExtension({ Object.defineProperty(node, 'imgs', { set(v) { - if (!v[0].complete) { + if (v && !v[0].complete) { let orig_onload = v[0].onload; v[0].onload = function(v2) { if(orig_onload) diff --git a/modules/impact/config.py b/modules/impact/config.py index cece181..9dc97ea 100644 --- a/modules/impact/config.py +++ b/modules/impact/config.py @@ -1,7 +1,7 @@ import configparser import os -version_code = [5, 18, 5] +version_code = [5, 18, 6] 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/pyproject.toml b/pyproject.toml index 02889cc..d7b79b5 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.5" +version = "5.18.6" license = "LICENSE" dependencies = ["segment-anything", "scikit-image", "piexif", "transformers", "opencv-python-headless", "GitPython", "scipy>=1.11.4"]