Skip to content

[SD-XL] Ability to easily split prompt over the two text encoders #4004

Closed
@bghira

Description

@bghira

Is your feature request related to a problem? Please describe.
SDXL 0.9 comes with a new dual text encoder pipeline.

OpenCLIP ViT-bigG/14 and CLIP-L are both paired up in this pipeline. When running through ComfyUI, the CLIP nodes allow for inputting different pieces of the prompt, to different encoders. The default configuration is like ours, and the same prompt is handed to both encoders.

However, the creative outcome of having additional flexibility of treating the entire embed space as a single concat over the whole prompt's context, drastically alters the results.

Describe the solution you'd like
We are interested in adding optional parameters to the SDXL Base and Img2Img pipelines to allow this flexibility.

  • prompt_2 and negative_prompt_2 would be great names, as they match the naming convention of text_encoder_2/tokenizer_2

Describe alternatives you've considered

  • Creating a custom pipeline, which does not force-multiply our efforts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      close