mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
use new pydantic/albumentations/insightface
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -10,11 +10,9 @@ instightface_mp = None
|
||||
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_pydantic
|
||||
from installer import install, installed, install_insightface
|
||||
if not installed('insightface', reload=False, quiet=True):
|
||||
install('git+https://github.com/deepinsight/insightface@554a05561cb71cfebb4e012dfea48807f845a0c2#subdirectory=python-package', 'insightface') # insightface==0.7.3 with patches
|
||||
install('albumentations==1.4.3', ignore=False, reinstall=True)
|
||||
install_pydantic()
|
||||
install_insightface()
|
||||
if not installed('ip_adapter', reload=False, quiet=True):
|
||||
install('git+https://github.com/tencent-ailab/IP-Adapter.git', 'ip_adapter', ignore=False)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user