Skip to content

[Flux ControlNet] Add img2img and inpaint pipelines #9402

Closed

Description

@asomoza

We recently added img2img and inpainting pipelines for Flux thanks to @Gothos contribution.

We also have controlnet support for Flux thanks to @wangqixun.

It'd be nice to have controlnet versions of these pipelines since there's been requests to have them.

Basically, we need to create two new pipelines that add the controlnet support from this pipeline to the corresponding pipellines.

Related issue: #9158

Let me know if someone is interested in contributing this.

Activity

  1. changed the title [-][Flux ControlNet] Add Image to Image pipeline[/-] [+][Flux ControlNet] Add img2img and inpaint pipelines[/+] on Sep 10, 2024
  2. ighoshsubho commented on Sep 10, 2024

    @ighoshsubho
    Contributor

    Hi @asomoza
    I would like to work on this 🙏

  3. asomoza commented on Sep 10, 2024

    @asomoza
    MemberAuthor

    thanks a lot @ighoshsubho

  4. peki12345 commented on Sep 11, 2024

    @peki12345

    Hi, I found that Flux+ControlNet works very well, but it always takes up 40GB+ of my GPU memory. Is there a way for me to run it on a 24GB 3090 or 4090 GPU?

  5. asomoza commented on Sep 11, 2024

    @asomoza
    MemberAuthor

    Hi, you'll need quantization support or maybe something like control lora, we don't have neither at the moment.

    ccing @sayakpaul for awareness

  6. basit-MT commented on Sep 13, 2024

    @basit-MT

    Hi, is there some documentation on training flux+ControlNet on custom data?

  7. shridharathi commented on Oct 24, 2024

    @shridharathi

    Hi, trying to apply lora to FluxImg2ImgPipeline but keep receiving the following error: RuntimeError: cuDNN Frontend error: [cudnn_frontend] Error: No execution plans support the graph.

  8. asomoza commented on Oct 25, 2024

    @asomoza
    MemberAuthor

    Hi, @shridharathi there's an ongoing issue with your problem just search for the error you're getting. You probably need to downgrade your pytorch version.

  9. shridharathi commented on Oct 25, 2024

    @shridharathi

    @asomoza I tried downgrading torch to 2.4, but still facing the same error

  10. asomoza commented on Oct 25, 2024

    @asomoza
    MemberAuthor

    oh ok, just to be sure, this error doesn't happen if you use other pipelines?

  11. shridharathi commented on Oct 25, 2024

    @shridharathi

    yes, it works with FluxPipeline if i apply the lora on text to image

  12. asomoza commented on Oct 25, 2024

    @asomoza
    MemberAuthor

    mhm so you're doing more than just running a test with the pipeline. If you want help, it would be better if you post a new issue about this with a reproducible snippet of the code and your environment, that way we can try to pinpoint the error.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions