Image-to-Image
Diffusers
Safetensors
English
image-generation
image-editing
flux
flux-3
black-forest-labs
Instructions to use black-forest-labs/flux-3-image-klein-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use black-forest-labs/flux-3-image-klein-base 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("black-forest-labs/flux-3-image-klein-base", 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
Add the prompt upsampler components to modular_model_index.json
#17
by YiYiXu HF Staff - opened
diffusers runs the prompt upsampler (black-forest-labs/flux-3-image-klein-pup) as the first step of the FLUX.3 pipelines (huggingface/diffusers#15058). The pipeline loads its two components, prompt_upsampler and prompt_upsampler_processor, from this index like the others.
maanavdalal changed pull request status to merged