Skip to content

[Feature]: Merge positive and negative prompts into single prompt #4698

@CzBuCHi

Description

@CzBuCHi

Feature description

Currently it is impossible to have dynamic negative prompt based on positive prompt

My proposal is to use negative weights to describe stuff for negative prompt - system would then just extract those for negative prompt:

prompt: foo, (bar:-1)

would be equivalent to current:
positive: foo
negative: bar (or (bar:1) for simplicity)

Reasoning: wildcards

wildcard example: lets say i have wildcard file color.txt

red
green
blue

then currently im unable to specify 'if red is selected add purple to negative prompt'

if prompts got merged i could write my wildcard file like this:

red, (purple:-1)
green
blue

and system would recognized that purple belongs to negative prompt

result would be even more powerful wildcards ...

PS: it would be nice to show final prompt in log not just list of possible wildcards, but that just cosmetic ....

Version Platform Description

windows 11, latest version of sdnext

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions