Skip to content

how Flux.2 Klein support both T2I and TI2I #12989

Open

Description

@Bili-Sakura

Currently, we already support Flux.2 Klein Text2Image Generation, I want to let it support image editing as well.

#12982

Activity

  1. yiyixuxu commented on Jan 16, 2026

    @yiyixuxu
    Collaborator
  2. Bili-Sakura commented on Jan 17, 2026

    @Bili-Sakura
    Author

    hey @Bili-Sakura flux2 klein support image input https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/flux2/pipeline_flux2_klein.py#L611

    Got it. But could you refactor with explicit Text2Image and Image2Image pipeline class inherit from that for better readability.

    As to my understanding, most T2I model support this sort of I2I by simply replace noise to input image latent which is more likely to an inversion style. However, the image editing model behaves differently.

  3. changed the title [-]Add Flux.2 Klein Image2Image Pipeline[/-] [+]how Flux.2 Klein support both T2I and TI2I[/+] on Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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