Skip to content

Commit b103c67

Browse files
committed
Fix for issue #712
1 parent e5c9744 commit b103c67

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

IPAdapterPlus.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,15 @@ def load_models(self, model, preset, lora_strength=0.0, provider="CPU", ipadapte
570570
if ipadapter is not None:
571571
pipeline = ipadapter
572572

573+
if 'insightface' not in pipeline:
574+
pipeline['insightface'] = { 'provider': None, 'model': None }
575+
576+
if 'ipadapter' not in pipeline:
577+
pipeline['ipadapter'] = { 'file': None, 'model': None }
578+
579+
if 'clipvision' not in pipeline:
580+
pipeline['clipvision'] = { 'file': None, 'model': None }
581+
573582
# 1. Load the clipvision model
574583
clipvision_file = get_clipvision_file(preset)
575584
if clipvision_file is None:

0 commit comments

Comments
 (0)