WASasquatch / easydiffusion

Easy Diffusion is an advanced Stable Diffusion Notebook with a feature rich image processing suite.
MIT License
103 stars 17 forks source link

longer prompts? #6

Closed gjakuipers closed 2 years ago

gjakuipers commented 2 years ago

how can i use longer prompts?

sometimes i get the message "The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens"

WASasquatch commented 2 years ago

Currently, you can't. This is using diffusers and stable diffusion weights, which is based on ViTL14 CLIP model, with a token limit of 77.

If you are using Prompt Styles, these consume part of your prompts token allowance.

plambe commented 2 years ago

I know in DD you could add multiple prompts, each with a max of 77 tokens. Is this not possible in SD?

WASasquatch commented 2 years ago

I haven't looked to deep into this issue for Diffusers yet, but I would like to be able to do prompt swapping at X steps or whatever.

I've only seen this in AUTOMATIC and the code doesn't seem relevant to diffusers from what I can tell.

On Tue, Oct 18, 2022, 1:39 AM plambe @.***> wrote:

I know in DD you could add multiple prompts, each with a max of 77 tokens. Is this not possible in SD?

— Reply to this email directly, view it on GitHub https://github.com/WASasquatch/easydiffusion/issues/6#issuecomment-1282022226, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIZEZILYJDCURC5Q3FGPZTWDZO4BANCNFSM6AAAAAARE7Z76M . You are receiving this because you commented.Message ID: @.***>

WASasquatch commented 2 years ago

I will be adding the LPW pipeline soon, aka "Long Prompt Weighted" or w/e. It has weights and longer prompts.

WASasquatch commented 2 years ago

@gjakuipers See dev build at: https://github.com/WASasquatch/easydiffusion/blob/dev/Stability_AI_Easy_Diffusion.ipynb

It supports prompt weights, and long prompts.

gjakuipers commented 2 years ago

thanks WASaquatch, it is working.