mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-01-26 19:29:54 +00:00
fix: ad_model typing
This commit is contained in:
@@ -1 +1 @@
|
||||
__version__ = "24.3.1-dev.0"
|
||||
__version__ = "24.3.1-dev.1"
|
||||
|
||||
@@ -44,7 +44,7 @@ def scan_model_dir(path_: str | Path) -> list[Path]:
|
||||
|
||||
def get_models(
|
||||
model_dir: str | Path, extra_dir: str | Path = "", huggingface: bool = True
|
||||
) -> OrderedDict[str, str | None]:
|
||||
) -> OrderedDict[str, str]:
|
||||
model_paths = [*scan_model_dir(model_dir), *scan_model_dir(extra_dir)]
|
||||
|
||||
models = OrderedDict()
|
||||
@@ -63,10 +63,10 @@ def get_models(
|
||||
)
|
||||
models.update(
|
||||
{
|
||||
"mediapipe_face_full": None,
|
||||
"mediapipe_face_short": None,
|
||||
"mediapipe_face_mesh": None,
|
||||
"mediapipe_face_mesh_eyes_only": None,
|
||||
"mediapipe_face_full": "mediapipe_face_full",
|
||||
"mediapipe_face_short": "mediapipe_face_short",
|
||||
"mediapipe_face_mesh": "mediapipe_face_mesh",
|
||||
"mediapipe_face_mesh_eyes_only": "mediapipe_face_mesh_eyes_only",
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user