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

Interpret weighted prompts #79

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

0x2b3bfa0
Copy link
Contributor

This pull request ports the weighted subprompts syntax mentioned at #35 (comment) from sd-webui/stable-diffusion-webui.

grabs all text up to the first occurrence of : uses the grabbed text as a sub-prompt, and takes the value following : as weight if : has no value defined, defaults to 1.0 repeats until no text remaining

Source

Warning
Admittedly, ldm.util is not the best place to paste that function; feel free to suggest a better place.

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