fix: 1.1.0 compat

master
Bingsu 2023-05-01 23:34:53 +09:00
parent e3cd0fa6e5
commit 54a022a861
3 changed files with 14 additions and 14 deletions

View File

@ -5,13 +5,15 @@ from textwrap import dedent
from packaging import version
from launch import (
is_installed,
python,
run,
run_pip,
skip_install,
)
import launch
from launch import is_installed, run, run_pip
try:
skip_install = getattr(launch.args, "skip_install")
except Exception:
skip_install = getattr(launch, "skip_install", False)
python = sys.executable
pycocotools = {
"Windows": {
@ -35,10 +37,9 @@ def check_ddetailer() -> bool:
extensions_path = Path(extensions_dir)
except ImportError:
from launch import data_path, dir_extensions
from launch import data_path
extensions_path = Path(data_path, dir_extensions)
UserWarning("[-] dddetailer: You are not using the latest version of stable-diffusion-webui.")
extensions_path = Path(data_path, "extensions")
ddetailer_exists = any(p.is_dir() and p.name.startswith("ddetailer") for p in extensions_path.iterdir())
return not ddetailer_exists

View File

@ -1,6 +1,6 @@
[project]
name = "dddetailer"
version = "23.4.6"
version = "23.5.0"
description = "An object detection and auto-mask extension for Stable Diffusion web UI."
authors = [
{name = "dowon", email = "ks2515@naver.com"},

View File

@ -39,10 +39,9 @@ def check_ddetailer() -> bool:
extensions_path = Path(extensions_dir)
except ImportError:
from launch import data_path, dir_extensions
from launch import data_path
extensions_path = Path(data_path, dir_extensions)
UserWarning("[-] dddetailer: You are not using the latest version of stable-diffusion-webui.")
extensions_path = Path(data_path, "extensions")
ddetailer_exists = any(p.is_dir() and p.name.startswith("ddetailer") for p in extensions_path.iterdir())
return not ddetailer_exists