Instructions to use InstantX/FLUX.1-dev-Controlnet-Union with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use InstantX/FLUX.1-dev-Controlnet-Union with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("InstantX/FLUX.1-dev-Controlnet-Union", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Could not find key 'controlnet_mode_embedder.fc.weight'
Hello, bravo and thank you for this new model.
While the alpha version works correctly, with the new version I get the following error message:
“Error occurred when executing InstantX Flux Union ControlNet Loader: Only InstantX union controlnet supported. Could not find key 'controlnet_mode_embedder.fc.weight' in /Volumes/STABLE/stable-diffusion-webui/models/ControlNet/FLUX/FLUX.1-dev-Controlnet-Union.safetensors”
I too get this error.
I've updated the ComfyUI loader to support the new model format:
https://github.com/EeroHeikkinen/ComfyUI-eesahesNodes/issues/6#issuecomment-2296596508
If you have the previous version installed, you should update ComfyUI-eesaheNodes from the manager or by running git pull inside custom_nodes/ComfyUI-eesaheNodes/
Thank you very much