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

Remove spaces, parens and numbers from prompts only when trailing #5

Open
wants to merge 1 commit into
base: updt
Choose a base branch
from

Conversation

flesler
Copy link

@flesler flesler commented Jan 2, 2023

Initially reported here TheLastBen/fast-stable-diffusion#1174 (comment)

This keeps dashes, for things words like x-men, t-shirt, or wanting a trigger like wa-vy or mdjrny-v4 style (real high profile examples).
It also preserves numbers unless they are at the end. For prompts like analog style 1970's bar or, again, mdjrny-v4 style

I see absolutely no downside to this over the current state, except for people expecting those to get trimmed, which I don't see as being frequent or useful. The current solution also leaves dup spaces when wiping numbers, dashes, etc.

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

Successfully merging this pull request may close these issues.

1 participant