We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35c7c59 commit c66201cCopy full SHA for c66201c
invokeai/backend/model_patcher.py
@@ -46,6 +46,10 @@ def apply_ti(
46
text_encoder: Union[CLIPTextModel, CLIPTextModelWithProjection],
47
ti_list: List[Tuple[str, TextualInversionModelRaw]],
48
) -> Iterator[Tuple[CLIPTokenizer, TextualInversionManager]]:
49
+ if len(ti_list) == 0:
50
+ yield tokenizer, TextualInversionManager(tokenizer)
51
+ return
52
+
53
init_tokens_count = None
54
new_tokens_added = None
55
0 commit comments