Instructions to use prithivMLmods/Flux2-Klein-Cinematic-FlatLog-Control with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use prithivMLmods/Flux2-Klein-Cinematic-FlatLog-Control 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-base-9B", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("prithivMLmods/Flux2-Klein-Cinematic-FlatLog-Control") 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] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
| 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) |