Skip to content

how to use zimage and flux2 with negative prompt? #13416

@chaowenguo

Description

@chaowenguo

Describe the bug

from pipeline_flux_with_cfg import FluxCFGPipeline

it allows to use negative prompt with flux, is there any similar stuff with zimage and flux2?

I means diffusers.ZImagePipeline with Tongyi-MAI/Z-Image-Turbo and diffusers.flux2kleinpipeline with black-forest-labs/FLUX.2-klein-9B I see there is negative_prompt_embeds: str | list[str] | None = None, in the call() function but how to convert negative_prompt to negative_prompt_embeds?

Reproduction

N/A

Logs

System Info

ubuntu22.04-cuda12.4.0-py311-torch2.8.0

Who can help?

@yiyixuxu @DN6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions