truncate long prompts to avoid a crash with controlnet

This commit is contained in:
Lincoln Stein 2023-07-15 23:49:25 -04:00
parent b767b5d44c
commit 5206ddf9b2

View File

@ -100,7 +100,7 @@ class CompelInvocation(BaseInvocation):
text_encoder=text_encoder,
textual_inversion_manager=ti_manager,
dtype_for_device_getter=torch_dtype,
truncate_long_prompts=False,
truncate_long_prompts=True,
)
conjunction = Compel.parse_prompt_string(self.prompt)