mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
force pydantic reinstall/reload
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -10,11 +10,12 @@ 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
|
||||
from installer import install, installed, reload
|
||||
if not installed('insightface', reload=False, quiet=True):
|
||||
install('insightface', 'insightface', ignore=False)
|
||||
install('albumentations==1.4.3', 'albumentations', ignore=False, reinstall=True)
|
||||
install('pydantic==1.10.21', 'pydantic', ignore=False, reinstall=True)
|
||||
install('insightface==0.7.3', ignore=False)
|
||||
install('albumentations==1.4.3', ignore=False, reinstall=True)
|
||||
install('pydantic==1.10.21', ignore=False, reinstall=True, force=True)
|
||||
reload('pydantic')
|
||||
if not installed('ip_adapter', reload=False, quiet=True):
|
||||
install('git+https://github.com/tencent-ailab/IP-Adapter.git', 'ip_adapter', ignore=False)
|
||||
|
||||
|
||||
+1
-1
@@ -140,4 +140,4 @@ except ImportError:
|
||||
pass # shrug...
|
||||
|
||||
errors.log.info(f'Torch: torch=={torch.__version__} torchvision=={torchvision.__version__}')
|
||||
errors.log.info(f'Packages: diffusers=={diffusers.__version__} transformers=={transformers.__version__} accelerate=={accelerate.__version__} gradio=={gradio.__version__}')
|
||||
errors.log.info(f'Packages: diffusers=={diffusers.__version__} transformers=={transformers.__version__} accelerate=={accelerate.__version__} gradio=={gradio.__version__} pydantic=={pydantic.__version__}')
|
||||
|
||||
Reference in New Issue
Block a user