--- language: - en base_model: - krea/Krea-2-Turbo pipeline_tag: text-to-image library_name: diffusers license: other license_name: krea-2-community-license license_link: https://huggingface.co/krea/Krea-2-LoRA-impressionist/blob/main/LICENSE.pdf widget: - text: A view of city lights blurred through a rain-streaked window at night. rainy window style output: url: images/00_turbo.png - text: A solitary figure walking under a red umbrella down a glistening empty street. rainy window style output: url: images/01_turbo.png - text: A bicycle leaning against a lamppost in heavy rain, puddles forming around the wheels. rainy window style output: url: images/02_turbo.png - text: A bus stop sheltering two strangers in raincoats, downpour outside, headlights approaching. rainy window style output: url: images/03_turbo.png - text: A close-up of raindrops pattering on the surface of a green pond, lily pads gently rocking. rainy window style output: url: images/04_turbo.png - text: A cafe interior seen from the wet sidewalk, condensation on the glass, warm yellow lights inside. rainy window style output: url: images/05_turbo.png - text: A black taxi driving through a flooded intersection, water spraying from its tires. rainy window style output: url: images/06_turbo.png - text: An open balcony door overlooking a rain-soaked garden, a wet cat watching from the threshold. rainy window style output: url: images/07_turbo.png - text: A neon shop sign reflected in a puddle on an empty city street at midnight. rainy window style output: url: images/08_turbo.png - text: A child pressing their hand against a foggy bus window streaked with rain. rainy window style output: url: images/09_turbo.png tags: - lora --- # Krea 2 LoRA — rainywindow A LoRA for [Krea 2](https://huggingface.co/krea) — rainywindow (trigger: `rainy window style`). - **Trigger word:** `rainy window style` - **To be used on:** [`krea/Krea-2-Turbo`](https://huggingface.co/krea/Krea-2-Turbo), the few-step distilled checkpoint shown in the previews above. - **Trained on:** [`krea/Krea-2-Raw`](https://huggingface.co/krea/Krea-2-Raw). - **Weights:** `rainywindow.safetensors` - **Previews:** rendered on Turbo at 8 steps, guidance 0.0, LoRA weight `1.0`. ## Usage ```python import torch from diffusers import Krea2Pipeline pipe = Krea2Pipeline.from_pretrained("krea/Krea-2-Turbo", torch_dtype=torch.bfloat16).to("cuda") pipe.transformer.load_lora_adapter("krea/Krea-2-LoRA-rainywindow", weight_name="rainywindow.safetensors") pipe.transformer.set_adapters("default", weights=1.0) prompt = "A deer grazing in the forest, rainy window style" image = pipe(prompt, num_inference_steps=8, guidance_scale=0.0).images[0] image.save("rainywindow.png") ```