fix: ad_model typing

This commit is contained in:
Dowon
2024-03-08 22:24:28 +09:00
parent 78ca13ebfa
commit 4d804552df
2 changed files with 6 additions and 6 deletions

View File

@@ -1 +1 @@
__version__ = "24.3.1-dev.0"
__version__ = "24.3.1-dev.1"

View File

@@ -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",
}
)