add alternative insightfacex

This commit is contained in:
Vladimir Mandic
2026-02-20 21:09:43 +01:00
parent fce682f1d6
commit 58fe1f59ff
6 changed files with 24 additions and 22 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ def get_app(mp_name, threshold=0.5, resolution=640):
global insightface_app, instightface_mp # pylint: disable=global-statement
from installer import install, installed, install_insightface
if not installed('insightface', quiet=True):
if not installed('insightface', quiet=True) and not installed('insightfacex', quiet=True):
install_insightface()
if not installed('ip_adapter', quiet=True):
install('git+https://github.com/tencent-ailab/IP-Adapter.git', 'ip_adapter', ignore=False)