mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
@@ -18,8 +18,7 @@ from facexlib.parsing import init_parsing_model
|
||||
from facexlib.utils.face_restoration_helper import FaceRestoreHelper
|
||||
from insightface.app import FaceAnalysis
|
||||
|
||||
from .pulid_utils import img2tensor, tensor2img
|
||||
|
||||
from pulid_utils import img2tensor, tensor2img
|
||||
from eva_clip import create_model_and_transforms
|
||||
from eva_clip.constants import OPENAI_DATASET_MEAN, OPENAI_DATASET_STD
|
||||
from encoders_transformer import IDFormer, IDEncoder
|
||||
|
||||
@@ -30,10 +30,9 @@ class PulIDScript(scripts_manager.Script):
|
||||
|
||||
def dependencies(self):
|
||||
from installer import installed, install, install_insightface
|
||||
if not installed('insightface', quiet=True) and not installed('insightfacex', quiet=True):
|
||||
install_insightface()
|
||||
if not installed('torchdiffeq'):
|
||||
install('torchdiffeq')
|
||||
install_insightface()
|
||||
install('torchdiffeq', quiet=True)
|
||||
install('torchsde==0.2.6', 'torchsde', quiet=True)
|
||||
|
||||
def register(self): # register xyz grid elements
|
||||
global registered # pylint: disable=global-statement
|
||||
|
||||
Reference in New Issue
Block a user