How to use from the
Use from the
Diffusers library
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.2-klein-9B", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("24aittl/klein-9b-outpaint")

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]

klein-9b-outpaint

Merged checkpoint:

  • Base: black-forest-labs/FLUX.2-klein-9B
  • LoRA: outpaint_lora.safetensors
  • LoRA weight: 1.0
  • Merge method: Diffusers fuse_lora()

This is a derivative of FLUX.2 [klein] 9B and should follow the original FLUX Non-Commercial License / acceptable use requirements.

Downloads last month
17
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for 24aittl/klein-9b-outpaint

Adapter
(104)
this model