Instructions to use alimama-creative/FLUX.1-dev-Controlnet-Inpainting-Beta 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-Beta with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("alimama-creative/FLUX.1-dev-Controlnet-Inpainting-Beta", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
| { | |
| "model_index": [ | |
| { | |
| "name": "FLUX 1.0 Dev ControlNet Inpainting Beta", | |
| "description": "A model for inpainting tasks using ControlNet architecture. Developed for advanced diffusion inpainting workflows.", | |
| "tags": [ | |
| "inpainting", | |
| "diffusion", | |
| "controlnet", | |
| "comfyui", | |
| "beta" | |
| ], | |
| "architecture": "ControlNet", | |
| "framework": "PyTorch", | |
| "files": [ | |
| { | |
| "file_name": "diffusion_pytorch_model.safetensors", | |
| "description": "Main model weights in safetensors format.", | |
| "lfs": true | |
| }, | |
| { | |
| "file_name": "config.json", | |
| "description": "Configuration file for the model." | |
| }, | |
| { | |
| "file_name": "README.md", | |
| "description": "Documentation and usage instructions in English." | |
| }, | |
| { | |
| "file_name": "README_ZH.md", | |
| "description": "Documentation and usage instructions in Chinese." | |
| }, | |
| { | |
| "file_name": ".gitattributes", | |
| "description": "Defines LFS-tracked files and ensures correct handling of large files." | |
| } | |
| ] | |
| } | |
| ] | |
| } | |