Instructions to use Dekonstruktio/12 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Dekonstruktio/12 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("Dekonstruktio/12") prompt = "a desert dune at sunset. emerald noir oil style" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Commit ·
7216f1b
0
Parent(s):
Duplicate from ilkerzgi/krea-2-emerald-noir-oil-lora
Browse filesCo-authored-by: ilkerizgi <ilkerzgi@users.noreply.huggingface.co>
- .gitattributes +41 -0
- README.md +124 -0
- emerald-noir-oil-comfy.safetensors +3 -0
- emerald-noir-oil.safetensors +3 -0
- fal-dark.png +0 -0
- fal-light.png +0 -0
- images/ex_1.png +3 -0
- images/ex_2.png +3 -0
- images/ex_3.png +3 -0
- images/ex_4.png +3 -0
- images/ex_5.png +3 -0
- images/ex_6.png +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.xz 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/ex_1.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
images/ex_2.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
images/ex_3.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
images/ex_4.png filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
images/ex_5.png filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
images/ex_6.png filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
instance_prompt: emerald noir oil style
|
| 12 |
+
tags:
|
| 13 |
+
- lora
|
| 14 |
+
- text-to-image
|
| 15 |
+
- krea
|
| 16 |
+
- krea-2
|
| 17 |
+
- fal-ai
|
| 18 |
+
- template:diffusion-lora
|
| 19 |
+
- cinematic
|
| 20 |
+
widget:
|
| 21 |
+
- text: "a desert dune at sunset. emerald noir oil style"
|
| 22 |
+
output:
|
| 23 |
+
url: images/ex_1.png
|
| 24 |
+
- text: "a desert dune at sunset. emerald noir oil style"
|
| 25 |
+
output:
|
| 26 |
+
url: images/ex_2.png
|
| 27 |
+
- text: "a busy market street. emerald noir oil style"
|
| 28 |
+
output:
|
| 29 |
+
url: images/ex_3.png
|
| 30 |
+
- text: "a portrait of an old man. emerald noir oil style"
|
| 31 |
+
output:
|
| 32 |
+
url: images/ex_4.png
|
| 33 |
+
- text: "a snowy mountain village. emerald noir oil style"
|
| 34 |
+
output:
|
| 35 |
+
url: images/ex_5.png
|
| 36 |
+
- text: "a portrait of a woman. emerald noir oil style"
|
| 37 |
+
output:
|
| 38 |
+
url: images/ex_6.png
|
| 39 |
+
---
|
| 40 |
+
<picture>
|
| 41 |
+
<source media="(prefers-color-scheme: dark)" srcset="https://huggingface.co/ilkerzgi/krea-2-emerald-noir-oil-lora/resolve/main/fal-dark.png">
|
| 42 |
+
<img src="https://huggingface.co/ilkerzgi/krea-2-emerald-noir-oil-lora/resolve/main/fal-light.png" alt="fal" height="18">
|
| 43 |
+
</picture>
|
| 44 |
+
|
| 45 |
+
# Emerald Noir Oil
|
| 46 |
+
|
| 47 |
+
**fal · Krea 2 Style LoRA series.** One of 1600+ style LoRAs trained on [fal](https://fal.ai).
|
| 48 |
+
|
| 49 |
+
A **Krea 2** style LoRA. Add the trigger **`emerald noir oil style`** to the end of your prompt.
|
| 50 |
+
|
| 51 |
+
[](https://fal.ai/models/fal-ai/krea-2/turbo/lora) [](https://fal.ai/models/fal-ai/krea-2-trainer) [](https://huggingface.co/krea/Krea-2-Turbo)
|
| 52 |
+
|
| 53 |
+
<Gallery />
|
| 54 |
+
|
| 55 |
+
## Quick start
|
| 56 |
+
|
| 57 |
+
| Parameter | Value |
|
| 58 |
+
|-----------|-------|
|
| 59 |
+
| Trigger | `emerald noir oil style` |
|
| 60 |
+
| Recommended LoRA scale | `1.0` to `1.25` |
|
| 61 |
+
| Base model | `krea/Krea-2-Turbo` |
|
| 62 |
+
| Trained on | [fal-ai/krea-2-trainer](https://fal.ai/models/fal-ai/krea-2-trainer) |
|
| 63 |
+
|
| 64 |
+
## Inference on fal
|
| 65 |
+
|
| 66 |
+
### Python
|
| 67 |
+
```python
|
| 68 |
+
import fal_client
|
| 69 |
+
|
| 70 |
+
result = fal_client.subscribe(
|
| 71 |
+
"fal-ai/krea-2/turbo/lora",
|
| 72 |
+
arguments={
|
| 73 |
+
"prompt": "a lighthouse on a rocky cliff. emerald noir oil style",
|
| 74 |
+
"loras": [{"path": "https://huggingface.co/ilkerzgi/krea-2-emerald-noir-oil-lora/resolve/main/emerald-noir-oil.safetensors", "scale": 1.0}],
|
| 75 |
+
"image_size": {"width": 1024, "height": 1280},
|
| 76 |
+
},
|
| 77 |
+
)
|
| 78 |
+
print(result["images"][0]["url"])
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
### JavaScript
|
| 82 |
+
```js
|
| 83 |
+
import { fal } from "@fal-ai/client";
|
| 84 |
+
|
| 85 |
+
const { data } = await fal.subscribe("fal-ai/krea-2/turbo/lora", {
|
| 86 |
+
input: {
|
| 87 |
+
prompt: "a lighthouse on a rocky cliff. emerald noir oil style",
|
| 88 |
+
loras: [{ path: "https://huggingface.co/ilkerzgi/krea-2-emerald-noir-oil-lora/resolve/main/emerald-noir-oil.safetensors", scale: 1.0 }],
|
| 89 |
+
image_size: { width: 1024, height: 1280 },
|
| 90 |
+
},
|
| 91 |
+
});
|
| 92 |
+
console.log(data.images[0].url);
|
| 93 |
+
```
|
| 94 |
+
|
| 95 |
+
## Train your own on fal
|
| 96 |
+
|
| 97 |
+
Every LoRA in this series is trained on [`fal-ai/krea-2-trainer`](https://fal.ai/models/fal-ai/krea-2-trainer) (100 steps, learning rate 3.5e-4). Train your own style from 4 to 10 reference images:
|
| 98 |
+
|
| 99 |
+
```python
|
| 100 |
+
import fal_client
|
| 101 |
+
|
| 102 |
+
result = fal_client.subscribe(
|
| 103 |
+
"fal-ai/krea-2-trainer",
|
| 104 |
+
arguments={
|
| 105 |
+
"images_data_url": "https://.../your-dataset.zip",
|
| 106 |
+
"trigger_phrase": "emerald noir oil style",
|
| 107 |
+
"steps": 100,
|
| 108 |
+
"learning_rate": 0.00035,
|
| 109 |
+
},
|
| 110 |
+
)
|
| 111 |
+
print(result)
|
| 112 |
+
```
|
| 113 |
+
|
| 114 |
+
## License
|
| 115 |
+
|
| 116 |
+
Krea 2 Community License. See the [license](https://huggingface.co/krea/Krea-2-LoRA-impressionist/blob/main/LICENSE.pdf).
|
| 117 |
+
|
| 118 |
+
## ComfyUI
|
| 119 |
+
|
| 120 |
+
A ComfyUI-compatible copy of the weights is included in this repo: **`emerald-noir-oil-comfy.safetensors`**. It is the
|
| 121 |
+
exact same LoRA with the key prefix remapped (`base_model.model.` to `diffusion_model.`) so
|
| 122 |
+
ComfyUI loads it directly. Download that file into `ComfyUI/models/loras/` and use it like
|
| 123 |
+
any other LoRA. The original `emerald-noir-oil.safetensors` is for [fal](https://fal.ai) / diffusers.
|
| 124 |
+
|
emerald-noir-oil-comfy.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:986b1cad0913bbf111e86e1dc8b499d25f71f3e5c00a2af96a098d7b0bc3257e
|
| 3 |
+
size 469288008
|
emerald-noir-oil.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e054a7f07f1a8613187c21683b068758fa7846226d71348132e8954998c778b0
|
| 3 |
+
size 469288536
|
fal-dark.png
ADDED
|
fal-light.png
ADDED
|
images/ex_1.png
ADDED
|
Git LFS Details
|
images/ex_2.png
ADDED
|
Git LFS Details
|
images/ex_3.png
ADDED
|
Git LFS Details
|
images/ex_4.png
ADDED
|
Git LFS Details
|
images/ex_5.png
ADDED
|
Git LFS Details
|
images/ex_6.png
ADDED
|
Git LFS Details
|