Skip to content

Interpret weighted prompts#79

Open
0x2b3bfa0 wants to merge 2 commits intorinongal:mainfrom
0x2b3bfa0:patch-1
Open

Interpret weighted prompts#79
0x2b3bfa0 wants to merge 2 commits intorinongal:mainfrom
0x2b3bfa0:patch-1

Conversation

@0x2b3bfa0
Copy link
Copy Markdown
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