mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-03-13 09:20:09 +00:00
fix: webui < 1.6.0 import error
This commit is contained in:
@@ -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