Open darhsu opened 1 month ago
hey sorry we will merge this one soon https://github.com/huggingface/diffusers/pull/9507 that will fix this
@yiyixuxu any I seem to be encountering this with FluxControlNetInpaintPipeline
with latest main
diffusers
yes! would you be interested in helping us fix it for inpaint? would need similar change to this I think https://github.com/huggingface/diffusers/pull/9586/files
@darhsu try this: base_model = 'black-forest-labs/FLUX.1-dev' controlnet_model_union = 'InstantX/FLUX.1-dev-Controlnet-Union'
controlnet_union = FluxControlNetModel.from_pretrained(controlnet_model_union, torch_dtype=torch.bfloat16) controlnet = FluxMultiControlNetModel([controlnet_union]) # we always recommend loading via FluxMultiControlNetModel
controlnet.config = controlnet_union.config
pipe = FluxControlNetPipeline.from_pretrained(base_model, controlnet=controlnet, torch_dtype=torch.bfloat16)
Describe the bug
This commit on main https://github.com/huggingface/diffusers/commit/14a1b86fc7de53ff1dbf803f616cbb16ad530e45 seems to have broke FluxMultiControlNetModel. Reverting this commit fixes the issue on line
pipeline_flux_controlnet.py:844
Referencing this issue: https://huggingface.co/Shakker-Labs/FLUX.1-dev-ControlNet-Union-Pro/discussions/20
Reproduction
Logs
System Info
Who can help?
@sayakpaul @yiyixuxu @DN6
also @liamdonnellymv for the original issue on huggingface