Skip to content

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