add --new flag

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-09-04 16:00:56 -04:00
parent 5160034b5a
commit aec30cc063
8 changed files with 20 additions and 15 deletions
+2 -3
View File
@@ -13,12 +13,11 @@ orig_pipeline, orig_prompt_attention = None, None
def verify_insightface():
from installer import installed, install, reload
from installer import installed, install, install_pydantic
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==1.10.21', ignore=False, reinstall=True, force=True)
reload('pydantic')
install_pydantic()
def load_infiniteyou(model: str):
+2 -3
View File
@@ -28,12 +28,11 @@ class Script(scripts_manager.Script):
return True
def dependencies(self):
from installer import install, installed, reload
from installer import install, installed, install_pydantic
if not installed('insightface==0.7.3', 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==1.10.21', ignore=False, reinstall=True, force=True)
reload('pydantic')
install_pydantic()
def register(self): # register xyz grid elements
global registered # pylint: disable=global-statement