Downloads · 30 days
6
9% of all-time downloads
vladimir94/flux2-klein-4b-stamp-filter
flux2-klein-4b-stamp-filter is a image-to-image model from vladimir94. Use it when you need one image transformed into another. It is set up for peft. The card lists the license as apache-2.0.
LoRA adapter for unsloth/FLUX.2-klein-4B that turns a photo into a grainy, print-textured field-notes illustration on a white background.
Downloads · 30 days
6
9% of all-time downloads
All-time downloads
65
Public
Repo size
25.3 MB
Likes
0
Public
Click a slice to open those files.
.safetensors23.6 MB · 93%
From the Hugging Face model README
LoRA adapter for unsloth/FLUX.2-klein-4B that turns a photo into a grainy, print-textured field-notes illustration on a white background.
This is an image-conditioned (image-to-image) adapter. It was trained on photo → illustration pairs with the photo fed to the model as reference tokens, so at inference you must pass a condition image — plain text-to-image with this adapter is not the intended use.
Trigger word: stamp

Input photo (left) and the adapter's output (right), held-out photo, 4 sampling steps.
import torch
from diffusers import Flux2KleinPipeline
from PIL import Image
pipe = Flux2KleinPipeline.from_pretrained(
"unsloth/FLUX.2-klein-4B", torch_dtype=torch.float16
)
pipe.load_lora_weights("vladimir94/flux2-klein-4b-stamp-filter")
pipe.to("mps") # or "cuda"
cond = Image.open("photo.jpg").convert("RGB")
out = pipe(
image=cond,
prompt="stamp",
num_inference_steps=4, # Klein is step-distilled; 4 steps is enough
guidance_scale=1.0, # ignored by step-distilled models anyway
).images[0]
out.save("stamp.png")
Output size follows the condition image's aspect ratio (training used aspect-preserving resize, no cropping).
stampto_qkv_mlp_proj, to_q, to_k, to_v, to_out.0