How can I input a prompt that is longer than 77 tokens?

#60
by StevenKim - opened

Hi, when I input a quite long prompt I got a message: "the following part of your input was truncated because CLIP can only handle sequences up to 77 tokens......". How can I pass the full prompt longer than 77 tokens into the diffusionXL pipeline? Thank you for your help!

Hi, when I input a quite long prompt I got a message: "the following part of your input was truncated because CLIP can only handle sequences up to 77 tokens......". How can I pass the full prompt longer than 77 tokens into the diffusionXL pipeline? Thank you for your help!

@StevenKim Maybe you can use the lib--compel, the link is https://github.com/damian0815/compel/blob/main/README.md, which is suport SDXL, and support for prompts longer than the model's max token length

Sign up or log in to comment