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
Download images/bucket_mask.jpeg from alimama-creative/FLUX.1-dev-Controlnet-Inpainting-Alpha: direct link, hf CLI and curl.
- Browser
- Download file 70.6 kB
-
https://huggingface.co/alimama-creative/FLUX.1-dev-Controlnet-Inpainting-Alpha/resolve/main/images/bucket_mask.jpeg
- Command line
-
hf download hf://alimama-creative/FLUX.1-dev-Controlnet-Inpainting-Alpha/images/bucket_mask.jpeg
-
curl -L -o bucket_mask.jpeg https://huggingface.co/alimama-creative/FLUX.1-dev-Controlnet-Inpainting-Alpha/resolve/main/images/bucket_mask.jpeg
70.6 kB
