Merge branch 'dev'

This commit is contained in:
Dowon
2024-05-19 21:01:04 +09:00
2 changed files with 7 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ jobs:
python-version:
- "3.10"
- "3.11"
- "3.12"
steps:
- uses: actions/checkout@v4
@@ -22,10 +23,11 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- uses: yezz123/setup-uv@v4
- name: Install dependencies
run: |
pip install .
pip install pytest
uv pip install --system . pytest
- name: Run tests
run: pytest -v

View File

@@ -1,10 +1,13 @@
from __future__ import annotations
from PIL import Image
from rich import print
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)
def create_binary_mask(image: Image.Image):
return image.convert("L")