Skip to content
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

MultiControlNet support? #6

Open
oxysoft opened this issue Apr 15, 2023 · 3 comments
Open

MultiControlNet support? #6

oxysoft opened this issue Apr 15, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@oxysoft
Copy link

oxysoft commented Apr 15, 2023

In the original ControlNet pipeline, we can pass a list of controlnet models like this

        self.ptxt = StableDiffusionControlNetPipeline.from_pretrained(
                "runwayml/stable-diffusion-v1-5",
                safety_checker=None,
                requires_safety_checker=False,
                controlnet=[
                    ControlNetModel.from_pretrained("lllyasviel/sd-controlnet-canny", torch_dtype=torch.float16),
                    ControlNetModel.from_pretrained("lllyasviel/sd-controlnet-depth", torch_dtype=torch.float16)
                ],
                torch_dtype=torch.float16).to("cuda")

Is this supported in this pipeline?

Cheers

@mikonvergence
Copy link
Owner

I believe that's a feature introduced in diffusers==0.15.0?

It will be possible to do that, but there are currently still some interface inconsistencies with the latest version of diffusers (as mentioned in #7).

Once that's sorted out, I will also make sure that multi-ControlNet approach is also possible within this tool.

@mikonvergence mikonvergence added the enhancement New feature or request label Apr 16, 2023
@FeiyanWu9
Copy link

hi,Can ControlNet-Inpaint be used in combination with other ControlNets now?

@mikonvergence
Copy link
Owner

Hi @FeiyanWu9 - unfortunately I haven't had time to work on this and won't be able to do it in the near future. Anyone is welcome to contribute though, as long as it stays within the original environment versions (upgrading the codebase to a newer version of diffusers is not foreseen).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants