mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-01-26 19:29:54 +00:00
Merge branch 'dev'
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1 +1 @@
|
||||
__version__ = "24.3.2"
|
||||
__version__ = "24.3.3"
|
||||
|
||||
@@ -50,13 +50,20 @@ from modules.devices import NansException
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user