Skip to content

Add support for FLUX ControlNet models (XLabs and InstantX) #7070

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 125 commits into from
Oct 10, 2024

Conversation

RyanJDick
Copy link
Contributor

@RyanJDick RyanJDick commented Oct 8, 2024

Summary

Add support for FLUX ControlNet models (XLabs and InstantX).

QA Instructions

  • SD1 and SDXL ControlNets, since the ModelLoaderRegistry calls were changed.
  • Single Xlabs controlnet
  • Single InstantX union controlnet
  • Single InstantX controlnet
  • Single Shakker Labs Union controlnet
  • Multiple controlnets
  • Weight, start, end params all work as expected
  • Can be used with image-to-image and inpainting.
  • Clear error message if no VAE is passed when using InstantX controlnet.
  • Install InstantX ControlNet in diffusers format from HF repo (InstantX/FLUX.1-dev-Controlnet-Union)
  • Test all FLUX ControlNet starter models

Merge Plan

No special instructions.

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)

@github-actions github-actions bot added python PRs that change python files invocations PRs that change invocations backend PRs that change backend files python-tests PRs that change python tests labels Oct 8, 2024
@RyanJDick RyanJDick changed the title Add support for FLUX ControlNet models (XLabs and InstantX) Draft: Add support for FLUX ControlNet models (XLabs and InstantX) Oct 8, 2024
@RyanJDick RyanJDick changed the title Draft: Add support for FLUX ControlNet models (XLabs and InstantX) DRAFT: Add support for FLUX ControlNet models (XLabs and InstantX) Oct 8, 2024
@RyanJDick RyanJDick marked this pull request as draft October 8, 2024 21:57
@RyanJDick RyanJDick changed the title DRAFT: Add support for FLUX ControlNet models (XLabs and InstantX) Add support for FLUX ControlNet models (XLabs and InstantX) Oct 8, 2024
RyanJDick and others added 20 commits October 10, 2024 07:59
… extensions and make the FLUX model controlnet-type-agnostic.
@hipsterusername hipsterusername force-pushed the ryan/flux-controlnet-xlabs-instantx branch from 4aace24 to f37c501 Compare October 10, 2024 11:59
@hipsterusername
Copy link
Member

We should remove all of the starter controlnets and add the Shakker Pro Union.

Let's discuss the addition of control mode today - That seems to be the only controlnet that's worthwhile atm, so might want to make it as fully usable as we can

@RyanJDick RyanJDick merged commit 2d82e69 into main Oct 10, 2024
14 checks passed
@RyanJDick RyanJDick deleted the ryan/flux-controlnet-xlabs-instantx branch October 10, 2024 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend PRs that change backend files frontend PRs that change frontend files invocations PRs that change invocations python PRs that change python files python-tests PRs that change python tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants