mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(nodes): fix TI loading
This commit is contained in:
parent
82925e1539
commit
20a56bc757
@ -86,7 +86,7 @@ class CompelInvocation(BaseInvocation):
|
|||||||
for trigger in extract_ti_triggers_from_prompt(self.prompt):
|
for trigger in extract_ti_triggers_from_prompt(self.prompt):
|
||||||
name = trigger[1:-1]
|
name = trigger[1:-1]
|
||||||
try:
|
try:
|
||||||
loaded_model = context.models.load(**self.clip.text_encoder.model_dump()).model
|
loaded_model = context.models.load(key=name).model
|
||||||
assert isinstance(loaded_model, TextualInversionModelRaw)
|
assert isinstance(loaded_model, TextualInversionModelRaw)
|
||||||
ti_list.append((name, loaded_model))
|
ti_list.append((name, loaded_model))
|
||||||
except UnknownModelException:
|
except UnknownModelException:
|
||||||
|
Loading…
Reference in New Issue
Block a user