Instructions to use alimama-creative/FLUX.1-dev-Controlnet-Inpainting-Alpha with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use alimama-creative/FLUX.1-dev-Controlnet-Inpainting-Alpha with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("alimama-creative/FLUX.1-dev-Controlnet-Inpainting-Alpha", 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
Ctrl+K
- 322 kB
- 474 kB
- 1.81 MB xet
- 1.25 MB xet
- 1.22 MB xet
- 196 kB
- 553 kB
- 1.12 MB xet
- 1.07 MB xet
- 556 kB
- 466 kB
- 1.32 MB xet
- 674 kB
- 1.05 MB xet
- 1.29 MB xet
- 1.27 MB xet
- 1.62 MB xet
- 1.91 MB xet
- 1.89 MB xet
- 1.83 MB xet
- 2.26 MB xet
- 2.25 MB xet
- 13 kB
- 28.1 kB
- 30.8 kB
- 30.2 kB
- 593 kB
- 70.6 kB
- 1.59 MB xet
- 392 kB
- 1.21 MB xet
- 1.01 MB xet
- 1.8 MB xet
- 451 kB
- 1.64 MB xet
- 1.21 MB xet
- 160 kB
- 210 kB
- 287 kB