From 798776838e1cfd006717d2ddd18755faa0cf074e Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Tue, 4 Mar 2025 12:43:03 +0900 Subject: [PATCH] remove sample_error_enhancer --- __init__.py | 1 - modules/impact/config.py | 2 +- modules/impact/sample_error_enhancer.py | 25 ------------------------- pyproject.toml | 2 +- 4 files changed, 2 insertions(+), 28 deletions(-) delete mode 100644 modules/impact/sample_error_enhancer.py diff --git a/__init__.py b/__init__.py index 6bbad38..97460b9 100644 --- a/__init__.py +++ b/__init__.py @@ -18,7 +18,6 @@ modules_path = os.path.join(os.path.dirname(__file__), "modules") sys.path.append(modules_path) import impact.config -import impact.sample_error_enhancer print(f"### Loading: ComfyUI-Impact-Pack ({impact.config.version})") # Core diff --git a/modules/impact/config.py b/modules/impact/config.py index f34fecb..e366a86 100644 --- a/modules/impact/config.py +++ b/modules/impact/config.py @@ -1,7 +1,7 @@ import configparser import os -version_code = [8, 8, 2] +version_code = [8, 8, 3] 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/modules/impact/sample_error_enhancer.py b/modules/impact/sample_error_enhancer.py deleted file mode 100644 index 01b5600..0000000 --- a/modules/impact/sample_error_enhancer.py +++ /dev/null @@ -1,25 +0,0 @@ -import comfy.sample -import traceback - -original_sample = comfy.sample.sample - - -def informative_sample(*args, **kwargs): - try: - return original_sample(*args, **kwargs) # This code helps interpret error messages that occur within exceptions but does not have any impact on other operations. - except RuntimeError as e: - is_model_mix_issue = False - try: - if 'mat1 and mat2 shapes cannot be multiplied' in e.args[0]: - if 'torch.nn.functional.linear' in traceback.format_exc().strip().split('\n')[-3]: - is_model_mix_issue = True - except: - pass - - if is_model_mix_issue: - raise RuntimeError("\n\n#### It seems that models and clips are mixed and interconnected between SDXL Base, SDXL Refiner, SD1.x, and SD2.x. Please verify. ####\n\n") - else: - raise e - - -comfy.sample.sample = informative_sample diff --git a/pyproject.toml b/pyproject.toml index 4495538..c0121c4 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.8.2" +version = "8.8.3" license = { file = "LICENSE.txt" } dependencies = ["segment-anything", "scikit-image", "piexif", "transformers", "opencv-python-headless", "GitPython", "scipy>=1.11.4"]