Skip to content

Adding support for ControlNet pipeline for img2img flows #2562

Closed

Description

@mikegarts

It would be nice to achieve a somewhat feature parity with automatic1111 in terms using controlnet with img2img flows.
Current ControlNet pipeline doesn't allow an input source image (if I understand correctly the image parameter goes to controlnet as condition and not as src image for diffusion).

I think I might try and implement this myself, but wondering how this could be achieved best?

  • To add an optional src_image parameter to the ControlNet pipeline?
  • To create a separate file with ControlNetImg2Img?
  • Something else?

@takuma104 - since you implemented the StableDiffusionControlNetPipeline what are your thoughts?

Activity

  1. takuma104 commented on Mar 6, 2023

    @takuma104
    Contributor

    Hi @mikegarts , How about #2561 that was opened a few hours ago?

  2. realimposter commented on Mar 6, 2023

    @realimposter

    @takuma104 looks like that pipeline is for inpainting + img2img, any idea how to modify it just for img2img?

  3. mikegarts commented on Mar 6, 2023

    @mikegarts
    ContributorAuthor

    Indeed #2561 is for inpainting models :)
    But I think that I might be able to write something similar for img2img and submit it as a community pipeline.

  4. pd-brian-mccrindle commented on Mar 6, 2023

    @pd-brian-mccrindle

    @mikegarts
    I'm also interested in getting ControlNet working with just Img2Img. If you have a branch implementing this, I can try and support where I can

  5. mikegarts commented on Mar 7, 2023

    @mikegarts
    ContributorAuthor

    @pd-brian-mccrindle Thanks lot, I will run some tests and open a pr later today.

  6. mikegarts commented on Mar 7, 2023

    @mikegarts
    ContributorAuthor

    @pedrogengo here it is: #2584

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