Instructions to use krea/Krea-2-LoRA-sunsetblur with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use krea/Krea-2-LoRA-sunsetblur 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-sunsetblur") prompt = "two samurais in flowing robes doing a muay thai fight, one throws a high kick while the other leans back. ethereal motion blur style" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Add Krea 2 sunsetblur LoRA: weights, Turbo previews, model card
Browse files- .gitattributes +8 -0
- README.md +68 -3
- 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
- sunsetblur.safetensors +3 -0
.gitattributes
CHANGED
|
@@ -34,3 +34,11 @@ saved_model/**/* 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 |
LICENSE.pdf 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 |
LICENSE.pdf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
images/00_turbo.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
images/01_turbo.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
images/02_turbo.png filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
images/03_turbo.png filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
images/04_turbo.png filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
images/05_turbo.png filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
images/06_turbo.png filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
images/07_turbo.png filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -1,5 +1,70 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
base_model:
|
| 5 |
+
- krea/Krea-2-Turbo
|
| 6 |
+
pipeline_tag: text-to-image
|
| 7 |
+
library_name: diffusers
|
| 8 |
+
widget:
|
| 9 |
+
- text: A golden labrador running in a farm, while a pickup truck is driving across
|
| 10 |
+
a dusty road in the background far away. While a plane flies in the sky. ethereal
|
| 11 |
+
motion blur style
|
| 12 |
+
output:
|
| 13 |
+
url: images/00_turbo.png
|
| 14 |
+
- text: A cat wearing glasses holding a stick to a board with the text 'He who lives
|
| 15 |
+
in glass houses shall not throw stones at others', while sitting on a stool. ethereal
|
| 16 |
+
motion blur style
|
| 17 |
+
output:
|
| 18 |
+
url: images/01_turbo.png
|
| 19 |
+
- text: A man dressed in elegant knight armour and holding a sword pointing at the
|
| 20 |
+
sky while the ground around him cracks. ethereal motion blur style
|
| 21 |
+
output:
|
| 22 |
+
url: images/02_turbo.png
|
| 23 |
+
- text: Two Nissan GT cars drifting by each other at a sharp corner in the road. ethereal
|
| 24 |
+
motion blur style
|
| 25 |
+
output:
|
| 26 |
+
url: images/03_turbo.png
|
| 27 |
+
- text: A deer grazing in the forest surrounded by dense trees and the sun bright
|
| 28 |
+
in the sky. ethereal motion blur style
|
| 29 |
+
output:
|
| 30 |
+
url: images/04_turbo.png
|
| 31 |
+
- text: A highspeed train going through a mountain tunnel in the distant background,
|
| 32 |
+
rice fields in the foreground. Zoomed out shot. ethereal motion blur style
|
| 33 |
+
output:
|
| 34 |
+
url: images/05_turbo.png
|
| 35 |
+
- text: A snake wrapped around a katana with its eyes closed. ethereal motion blur
|
| 36 |
+
style
|
| 37 |
+
output:
|
| 38 |
+
url: images/06_turbo.png
|
| 39 |
+
- text: A photographer holding his camera and leaning out of his jeep on a grassy
|
| 40 |
+
plain. ethereal motion blur style
|
| 41 |
+
output:
|
| 42 |
+
url: images/07_turbo.png
|
| 43 |
+
tags:
|
| 44 |
+
- lora
|
| 45 |
---
|
| 46 |
+
|
| 47 |
+
# Krea 2 LoRA — Sunsetblur
|
| 48 |
+
|
| 49 |
+
A LoRA for [Krea 2](https://huggingface.co/krea) — Sunsetblur (trigger: `ethereal motion blur style`).
|
| 50 |
+
|
| 51 |
+
- **Trigger word:** `ethereal motion blur style`
|
| 52 |
+
- **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.
|
| 53 |
+
- **Trained on:** [`krea/Krea-2-Raw`](https://huggingface.co/krea/Krea-2-Raw) (the base / midtrain checkpoint).
|
| 54 |
+
- **Weights:** `sunsetblur.safetensors`
|
| 55 |
+
- **Previews:** rendered on Turbo at 8 steps, guidance 0.0, LoRA weight `0.8`.
|
| 56 |
+
|
| 57 |
+
## Usage
|
| 58 |
+
|
| 59 |
+
```python
|
| 60 |
+
import torch
|
| 61 |
+
from diffusers import Krea2Pipeline
|
| 62 |
+
|
| 63 |
+
pipe = Krea2Pipeline.from_pretrained("krea/Krea-2-Turbo", torch_dtype=torch.bfloat16).to("cuda")
|
| 64 |
+
pipe.transformer.load_lora_adapter("krea/Krea-2-LoRA-sunsetblur", weight_name="sunsetblur.safetensors")
|
| 65 |
+
pipe.transformer.set_adapters("default", weights=0.8)
|
| 66 |
+
|
| 67 |
+
prompt = "A deer grazing in the forest, ethereal motion blur style"
|
| 68 |
+
image = pipe(prompt, num_inference_steps=8, guidance_scale=0.0).images[0]
|
| 69 |
+
image.save("sunsetblur.png")
|
| 70 |
+
```
|
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
|
sunsetblur.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b2b5dfd4c9bcdd027e5b932d480b4a5bcce65d2db9de22be9556b417d79f51e7
|
| 3 |
+
size 469291992
|