Instructions to use xocialize/zoom-FLUX.2-klein-4B-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use xocialize/zoom-FLUX.2-klein-4B-lora 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.2-klein-4B", torch_dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("xocialize/zoom-FLUX.2-klein-4B-lora") prompt = "Zoom into the red highlighted area" 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
- Local Apps Settings
- Draw Things
| license: apache-2.0 | |
| base_model: black-forest-labs/FLUX.2-klein-4B | |
| tags: | |
| - lora | |
| - flux.2 | |
| - flux2-klein | |
| - zoom | |
| - image-editing | |
| - image-to-image | |
| - mirror | |
| library_name: diffusers | |
| pipeline_tag: image-to-image | |
| instance_prompt: Zoom into the red highlighted area | |
| # Flux Red Zoom — FLUX.2-klein-4B LoRA (mirror) | |
| A rank-16 edit LoRA for **FLUX.2-klein-4B** that zooms into and enhances a **red-highlighted** | |
| region of an image, generating a detailed close-up of the marked area. | |
| > **This is a verbatim mirror, not original work.** All credit belongs to the original | |
| > author, **fal** (fal.ai). This repository exists so downstream code can depend on a stable, | |
| > long-lived URL; the file is byte-for-byte identical to the source (verify the SHA-256 below). | |
| ## Attribution & source | |
| - **Original author:** **fal** (fal.ai) | |
| - **Source:** https://huggingface.co/fal/flux-2-klein-4B-zoom-lora | |
| - **Live demo (author):** https://fal.ai/models/fal-ai/flux-2/klein/4b/base/edit/lora | |
| - **License:** **Apache-2.0**, as published by fal on the source repository. Mirrored here | |
| under those terms with attribution retained (see `NOTICE`). If you are the author and want | |
| this mirror changed or removed, open a discussion and it will be actioned promptly. | |
| ## Provenance (verify the mirror) | |
| | | | | |
| |---|---| | |
| | File | `flux-red-zoom-lora.safetensors` | | |
| | Size | 76,039,072 bytes (~76 MB) | | |
| | SHA-256 | `A435808332F495450F203786A45C337163E2D6E8253043035B1202CC7A4F915B` | | |
| | Tensors | 136 (f32) | | |
| | Rank | 16 | | |
| | Base model | `black-forest-labs/FLUX.2-klein-4B` | | |
| | Key dialect | BFL-fused with PEFT `base_model.model.` prefix | | |
| The source repo also ships a ComfyUI-converted variant (`..._comfy_converted.safetensors`, | |
| `diffusion_model.` prefix); this mirror carries the canonical diffusers/PEFT file. Both map | |
| to the same 40 double + 40 single (80) targets. | |
| ## Usage | |
| - **Base:** FLUX.2-klein-4B (image edit). Mark the region to zoom into with a red highlight. | |
| - **Prompt:** `Zoom into the red highlighted area` | |
| - **Strength (scale):** ~1.1 (per the author's fal.ai SDK example). | |
| ## Disclaimer | |
| Mirrored in good faith based on fal's Apache-2.0 release. No affiliation with or endorsement | |
| by fal is implied. | |