Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prompt example being truncated #6

Open
khimaros opened this issue Mar 2, 2023 · 1 comment
Open

prompt example being truncated #6

khimaros opened this issue Mar 2, 2023 · 1 comment

Comments

@khimaros
Copy link

khimaros commented Mar 2, 2023

with stable-diffusion-v1-5, the default tokenizer only allows 77 tokens. are you having desired results with the prompt included in your wanostyle example? i'm seeing this warning and poor image results:

The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['_ offset : 1 >, closed shirt, anime screencap, scar under eye, ready to fight, black eyes']
@haofanwang
Copy link
Owner

This is the limitation of fixed CLIP text encoder. Try a more compact prompt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants