From b015ee8aaeadbaf3242afc5b36249b38f2c6f7cd Mon Sep 17 00:00:00 2001 From: systemd Date: Tue, 24 Feb 2026 13:17:06 +0000 Subject: [PATCH] Update README.md (batch 1/1) --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bed2fed..8baff23 100644 --- a/README.md +++ b/README.md @@ -40,11 +40,11 @@ FLUX.2 [klein] 4B Base is also available in both [ComfyUI](https://github.com/co To use FLUX.2 [klein] 4B Base with the 🧨 Diffusers python library, first install or upgrade diffusers: -```python -pip install -U diffusers - +```shell +pip install git+https://github.com/huggingface/diffusers.git +``` Then you can use Flux2KleinPipeline to run the model: - +```python import torch from diffusers import Flux2KleinPipeline @@ -56,7 +56,7 @@ pipe.enable_model_cpu_offload() # save some VRAM by offloading the model to CPU prompt = "A cat holding a sign that says hello world" image = pipe( - prompt, + prompt=prompt, height=1024, width=1024, guidance_scale=4.0,