Instructions to use krea/Krea-2-LoRA-rainywindow with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use krea/Krea-2-LoRA-rainywindow with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("krea/Krea-2-Turbo", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("krea/Krea-2-LoRA-rainywindow") prompt = "two samurais in flowing robes doing a muay thai fight, one throws a high kick while the other leans back. rainy window style" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Publish rainywindow LoRA: weights, Turbo previews (weight 1.0), model card
Browse files- .gitattributes +10 -0
- README.md +80 -0
- images/00_turbo.png +3 -0
- images/01_turbo.png +3 -0
- images/02_turbo.png +3 -0
- images/03_turbo.png +3 -0
- images/04_turbo.png +3 -0
- images/05_turbo.png +3 -0
- images/06_turbo.png +3 -0
- images/07_turbo.png +3 -0
- images/08_turbo.png +3 -0
- images/09_turbo.png +3 -0
- rainywindow.safetensors +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,13 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
images/00_turbo.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
images/01_turbo.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
images/02_turbo.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
images/03_turbo.png filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
images/04_turbo.png filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
images/05_turbo.png filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
images/06_turbo.png filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
images/07_turbo.png filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
images/08_turbo.png filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
images/09_turbo.png filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
base_model:
|
| 5 |
+
- krea/Krea-2-Turbo
|
| 6 |
+
pipeline_tag: text-to-image
|
| 7 |
+
library_name: diffusers
|
| 8 |
+
license: other
|
| 9 |
+
license_name: krea-2-community-license
|
| 10 |
+
license_link: https://huggingface.co/krea/Krea-2-LoRA-impressionist/blob/main/LICENSE.pdf
|
| 11 |
+
widget:
|
| 12 |
+
- text: A view of city lights blurred through a rain-streaked window at night. rainy
|
| 13 |
+
window style
|
| 14 |
+
output:
|
| 15 |
+
url: images/00_turbo.png
|
| 16 |
+
- text: A solitary figure walking under a red umbrella down a glistening empty street.
|
| 17 |
+
rainy window style
|
| 18 |
+
output:
|
| 19 |
+
url: images/01_turbo.png
|
| 20 |
+
- text: A bicycle leaning against a lamppost in heavy rain, puddles forming around
|
| 21 |
+
the wheels. rainy window style
|
| 22 |
+
output:
|
| 23 |
+
url: images/02_turbo.png
|
| 24 |
+
- text: A bus stop sheltering two strangers in raincoats, downpour outside, headlights
|
| 25 |
+
approaching. rainy window style
|
| 26 |
+
output:
|
| 27 |
+
url: images/03_turbo.png
|
| 28 |
+
- text: A close-up of raindrops pattering on the surface of a green pond, lily pads
|
| 29 |
+
gently rocking. rainy window style
|
| 30 |
+
output:
|
| 31 |
+
url: images/04_turbo.png
|
| 32 |
+
- text: A cafe interior seen from the wet sidewalk, condensation on the glass, warm
|
| 33 |
+
yellow lights inside. rainy window style
|
| 34 |
+
output:
|
| 35 |
+
url: images/05_turbo.png
|
| 36 |
+
- text: A black taxi driving through a flooded intersection, water spraying from its
|
| 37 |
+
tires. rainy window style
|
| 38 |
+
output:
|
| 39 |
+
url: images/06_turbo.png
|
| 40 |
+
- text: An open balcony door overlooking a rain-soaked garden, a wet cat watching
|
| 41 |
+
from the threshold. rainy window style
|
| 42 |
+
output:
|
| 43 |
+
url: images/07_turbo.png
|
| 44 |
+
- text: A neon shop sign reflected in a puddle on an empty city street at midnight.
|
| 45 |
+
rainy window style
|
| 46 |
+
output:
|
| 47 |
+
url: images/08_turbo.png
|
| 48 |
+
- text: A child pressing their hand against a foggy bus window streaked with rain.
|
| 49 |
+
rainy window style
|
| 50 |
+
output:
|
| 51 |
+
url: images/09_turbo.png
|
| 52 |
+
tags:
|
| 53 |
+
- lora
|
| 54 |
+
---
|
| 55 |
+
|
| 56 |
+
# Krea 2 LoRA — rainywindow
|
| 57 |
+
|
| 58 |
+
A LoRA for [Krea 2](https://huggingface.co/krea) — rainywindow (trigger: `rainy window style`).
|
| 59 |
+
- **Trigger word:** `rainy window style`
|
| 60 |
+
- **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.
|
| 61 |
+
- **Trained on:** [`krea/Krea-2-Raw`](https://huggingface.co/krea/Krea-2-Raw).
|
| 62 |
+
- **Weights:** `rainywindow.safetensors`
|
| 63 |
+
- **Previews:** rendered on Turbo at 8 steps, guidance 0.0, LoRA weight `1.0`.
|
| 64 |
+
|
| 65 |
+
## Usage
|
| 66 |
+
|
| 67 |
+
```python
|
| 68 |
+
import torch
|
| 69 |
+
from diffusers import Krea2Pipeline
|
| 70 |
+
|
| 71 |
+
pipe = Krea2Pipeline.from_pretrained("krea/Krea-2-Turbo", torch_dtype=torch.bfloat16).to("cuda")
|
| 72 |
+
pipe.transformer.load_lora_adapter("krea/Krea-2-LoRA-rainywindow", weight_name="rainywindow.safetensors")
|
| 73 |
+
pipe.transformer.set_adapters("default", weights=1.0)
|
| 74 |
+
|
| 75 |
+
prompt = "A deer grazing in the forest, rainy window style"
|
| 76 |
+
image = pipe(prompt, num_inference_steps=8, guidance_scale=0.0).images[0]
|
| 77 |
+
image.save("rainywindow.png")
|
| 78 |
+
```
|
| 79 |
+
|
| 80 |
+
<Gallery />
|
images/00_turbo.png
ADDED
|
Git LFS Details
|
images/01_turbo.png
ADDED
|
Git LFS Details
|
images/02_turbo.png
ADDED
|
Git LFS Details
|
images/03_turbo.png
ADDED
|
Git LFS Details
|
images/04_turbo.png
ADDED
|
Git LFS Details
|
images/05_turbo.png
ADDED
|
Git LFS Details
|
images/06_turbo.png
ADDED
|
Git LFS Details
|
images/07_turbo.png
ADDED
|
Git LFS Details
|
images/08_turbo.png
ADDED
|
Git LFS Details
|
images/09_turbo.png
ADDED
|
Git LFS Details
|
rainywindow.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7063a6f15ec6112ad3c06d79097b2a30a3ea7d9072821cb36021010d55989fe5
|
| 3 |
+
size 469291992
|