Instructions to use InstantX/FLUX.1-dev-Controlnet-Canny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use InstantX/FLUX.1-dev-Controlnet-Canny 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-Canny", 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
ModuleNotFoundError
#6
by K4HiJacKer - opened
My Env:
python==3.10.14
torch==2.4.0+cu121
diffusers==0.30.0
I try the code in the ModelCard but it shows:
No module named 'diffusers.pipelines.flux.pipeline_flux_controlnet'
No module named 'diffusers.models.controlnet_flux'
Is there anything I should modify to run the code successfully?
same
pip install -U diffusers
wangqixun changed discussion status to closed
I tried "pip install -U diffusers", but same error occurs.
wangqixun changed discussion status to open
hi @K4HiJacKer pip install git+https://github.com/huggingface/diffusers.git@1a92bc05a7c22d600ecadc775b31f4d8b0be27b9
@radames Your command works, thank you.
pip install git+https://github.com/huggingface/diffusers.git@1a92bc05a7c22d600ecadc775b31f4d8b0be27b9
K4HiJacKer changed discussion status to closed