diff --git a/CHANGELOG.md b/CHANGELOG.md index e2054d6..91a2f73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2024-03-25 + +- v24.3.3 +- webui 1.6.0 미만 버전에서 create_binary_mask 함수에 대해 ImportError가 발생하는 것 수정 + ## 2024-03-21 - v24.3.2 diff --git a/adetailer/__version__.py b/adetailer/__version__.py index c5ff941..5f5467a 100644 --- a/adetailer/__version__.py +++ b/adetailer/__version__.py @@ -1 +1 @@ -__version__ = "24.3.2" +__version__ = "24.3.3" diff --git a/scripts/!adetailer.py b/scripts/!adetailer.py index 7c0bd31..4af26d9 100644 --- a/scripts/!adetailer.py +++ b/scripts/!adetailer.py @@ -50,13 +50,20 @@ from modules.processing import ( Processed, StableDiffusionProcessingImg2Img, - create_binary_mask, create_infotext, process_images, ) from modules.sd_samplers import all_samplers from modules.shared import cmd_opts, opts, state +try: + from modules.processing import create_binary_mask +except ImportError: + + def create_binary_mask(image: Image.Image): + return image.convert("L") + + if TYPE_CHECKING: from fastapi import FastAPI