-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
103 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
from __future__ import annotations | ||
|
||
from PIL import Image | ||
from rich import print | ||
msg = "[-] ADetailer: WebUI versions below 1.6.0 are not supported." | ||
|
||
try: | ||
from modules.processing import create_binary_mask | ||
except ImportError: | ||
msg = "[-] ADetailer: Support for webui versions below 1.6.0 will be discontinued." | ||
print(msg) | ||
from modules.processing import create_binary_mask # noqa: F401 | ||
except ImportError as e: | ||
raise RuntimeError(msg) from e | ||
|
||
|
||
def create_binary_mask(image: Image.Image): | ||
return image.convert("L") | ||
try: | ||
from modules.ui_components import InputAccordion # noqa: F401 | ||
except ImportError as e: | ||
raise RuntimeError(msg) from e | ||
|
||
|
||
try: | ||
from modules.sd_schedulers import schedulers | ||
except ImportError: | ||
# webui < 1.9.0 | ||
schedulers = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "24.5.1" | ||
__version__ = "24.6.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
name = "adetailer" | ||
description = "An object detection and auto-mask extension for stable diffusion webui." | ||
authors = [{ name = "dowon", email = "[email protected]" }] | ||
requires-python = ">=3.8" | ||
requires-python = ">=3.9" | ||
readme = "README.md" | ||
license = { text = "AGPL-3.0" } | ||
dependencies = [ | ||
"ultralytics>=8.2", | ||
"mediapipe>=0.10", | ||
"mediapipe>=0.10.13", | ||
"pydantic<3", | ||
"rich>=13", | ||
"huggingface_hub", | ||
|
@@ -39,7 +39,7 @@ profile = "black" | |
known_first_party = ["launch", "modules"] | ||
|
||
[tool.ruff] | ||
target-version = "py38" | ||
target-version = "py39" | ||
|
||
[tool.ruff.lint] | ||
select = [ | ||
|
Oops, something went wrong.