Skip to content

[Pipelines] On adding Pix2Pix Zero #2328

Description

@sayakpaul

Pix2Pix Zero presents a wonderful idea for editing the objects in a generated image with finer controls. Some really amazing results:

image

image

The code for Pix2Pix Zero is available here: https://github.com/pix2pixzero/pix2pix-zero.

IIUC, to add this pipeline to diffusers we need the following primary things:

  • Changes to cross attention so that the attention weights are book-kept.
  • The DDIM inversion scheduler (especially if we wanted to condition the pipeline on a real input image).
  • Potentially, an inversion pipeline that gives us the inverted noise from the starting image.
  • A pipeline that takes in the inverted latent (or some randomly sampled noise if we're not using a real input image) and gives us the edited image back by actually applying the methodology proposed in Pix2Pix Zero.

I guess it's best to add the following things separately:

  • DDIM inversion scheduler
  • DDIM inversion pipeline
  • Editing pipeline (including changes to attention)

WDYT? @patrickvonplaten @patil-suraj

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

staleIssues that haven't received updates

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions