[fixed] Weighted prompts #78
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Overview
This pull-request adds prompt-weighting to Deforum. Gently borrowed from webui.
At this time, only numeric weight values are supported. You can set them by adding colons after the prompt's parts.
Example:
painting of bacon:0.75 eggs:0.25 by greg rutkowski.Then they are normalized by the total sum.
You can also use weights as math functions from the frame number t if you frame them with `-characters
Showcase
Positive prompt weighting
Negative prompt weighting
Negative weights are used to reduce the presence of features
a beautiful portrait of a woman:0.75 in forest:0.25, hair:-1, green dress, by Artgerm, Asher Brown Durand, trending on Artstation
a beautiful portrait of a woman:0.25 in forest:0.75, hair:2, green dress, by Artgerm, Asher Brown Durand, trending on Artstation
TODO
As more quality of life enhancements have been proposed for this feature, it is still considered WIP with the plan as follows:
bracket weightinglater