|
|
--- |
|
|
license: other |
|
|
license_name: flux-non-commercial-license |
|
|
license_link: >- |
|
|
https://huggingface.co/black-forest-labs/FLUX.2-klein-base-9B/blob/main/LICENSE.md |
|
|
language: |
|
|
- en |
|
|
base_model: |
|
|
- black-forest-labs/FLUX.2-klein-base-9B |
|
|
pipeline_tag: image-to-image |
|
|
library_name: diffusers |
|
|
tags: |
|
|
- art |
|
|
- lora |
|
|
- Cinematic |
|
|
- FlatLog |
|
|
--- |
|
|
|
|
|
 |
|
|
|
|
|
# **Flux2-Klein-Cinematic-FlatLog-Control** |
|
|
|
|
|
> **Flux2-Klein-Cinematic-FlatLog-Control** is an adapter LoRA developed for **FLUX.2-klein-base-9B**, designed to transform images into a cinematic flat log look. The model reduces contrast and saturation to achieve a neutral, log-style tonal response while preserving the original identity, composition, textures, and geometry. It enables consistent cinematic grading workflows with smooth highlight roll-off, controlled shadows, and artifact-free results. |
|
|
|
|
|
## **Quick Start with Diffusers** |
|
|
|
|
|
> Compatible with versions **2509** and **2511**. |
|
|
|
|
|
```bash |
|
|
pip install -U diffusers transformers accelerate |
|
|
``` |
|
|
|
|
|
```python |
|
|
import torch |
|
|
from diffusers import Flux2KleinPipeline |
|
|
from diffusers.utils import load_image |
|
|
|
|
|
# Switch to "mps" for Apple devices |
|
|
pipe = Flux2KleinPipeline.from_pretrained( |
|
|
"black-forest-labs/FLUX.2-klein-base-9B", |
|
|
torch_dtype=torch.bfloat16, |
|
|
device_map="cuda" |
|
|
) |
|
|
|
|
|
pipe.load_lora_weights("prithivMLmods/Flux2-Klein-Cinematic-FlatLog-Control") |
|
|
|
|
|
prompt = "Transform into a cinematic flat log" |
|
|
|
|
|
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] |
|
|
``` |
|
|
|
|
|
**Trained on [ModelScope.cn](https://modelscope.cn)** |
|
|
|
|
|
## **Trigger Prompt** |
|
|
|
|
|
Use the following prompt to activate the cinematic flat log behavior: |
|
|
|
|
|
``` |
|
|
Transform into a cinematic flat log |
|
|
``` |
|
|
|
|
|
## **Download Model** |
|
|
|
|
|
You can download the model files from the **Files & versions** tab: |
|
|
[Download](https://huggingface.co/prithivMLmods/Flux2-Klein-Cinematic-FlatLog-Control/tree/main) |