Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
Bing-su committed Mar 25, 2024
2 parents 0a07045 + 4fab926 commit 31b8122
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion adetailer/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "24.3.2"
__version__ = "24.3.3"
9 changes: 8 additions & 1 deletion scripts/!adetailer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 31b8122

Please sign in to comment.