Spaces:
Running on Zero
Running on Zero
Revert to original (undo accidental overwrite)
Browse files
README.md
CHANGED
|
@@ -1,42 +1,49 @@
|
|
| 1 |
---
|
| 2 |
title: Krea 2 Identity Edit
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 6.20.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
hardware: zero-a10g
|
| 11 |
-
short_description: Instruction-based identity-preserving photo editing
|
| 12 |
python_version: "3.10"
|
| 13 |
-
startup_duration_timeout:
|
|
|
|
| 14 |
models:
|
| 15 |
- krea/Krea-2-Turbo
|
| 16 |
-
- ostris/Krea2OstrisEdit
|
| 17 |
- conradlocke/krea2-identity-edit
|
| 18 |
---
|
| 19 |
|
| 20 |
-
# Krea 2 Identity Edit
|
| 21 |
|
| 22 |
-
Instruction-based, **identity-preserving** image editing
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
## How it works
|
| 27 |
|
| 28 |
-
|
| 29 |
-
dual
|
| 30 |
-
|
| 31 |
-
|
|
|
|
| 32 |
|
| 33 |
-
- **
|
| 34 |
-
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
-
|
|
|
|
|
|
|
| 38 |
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
- Single LoRA replaces the pipeline's default style-reference LoRA (both are the edit brain); other
|
| 42 |
-
style/character LoRAs can stack on top.
|
|
|
|
| 1 |
---
|
| 2 |
title: Krea 2 Identity Edit
|
| 3 |
+
emoji: 🧬
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: gray
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 6.20.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
hardware: zero-a10g
|
|
|
|
| 11 |
python_version: "3.10"
|
| 12 |
+
startup_duration_timeout: 45m
|
| 13 |
+
short_description: Identity-preserving instruction image editing on Krea 2
|
| 14 |
models:
|
| 15 |
- krea/Krea-2-Turbo
|
|
|
|
| 16 |
- conradlocke/krea2-identity-edit
|
| 17 |
---
|
| 18 |
|
| 19 |
+
# 🧬 Krea 2 Identity Edit
|
| 20 |
|
| 21 |
+
Instruction-based, **identity-preserving** image editing built on
|
| 22 |
+
[Krea 2 Turbo](https://huggingface.co/krea/Krea-2-Turbo) with the community LoRA
|
| 23 |
+
[`conradlocke/krea2-identity-edit`](https://huggingface.co/conradlocke/krea2-identity-edit).
|
| 24 |
+
|
| 25 |
+
Give it an image and a plain-language instruction; it edits while preserving what you
|
| 26 |
+
didn't ask to change — including the person's likeness. Person re-staging, local edits
|
| 27 |
+
(recolor / add / remove / replace), replace-with-reference, and full-image restyles.
|
| 28 |
|
| 29 |
## How it works
|
| 30 |
|
| 31 |
+
Krea 2 is a text-to-image MMDiT; this LoRA turns it into an instruction editor via a
|
| 32 |
+
**dual-conditioning** recipe that stock `Krea2Pipeline` does not provide. This Space
|
| 33 |
+
reproduces the two custom pieces from the reference
|
| 34 |
+
[ComfyUI-Krea2Edit](https://github.com/lbouaraba/comfyui-krea2edit) node pack in plain
|
| 35 |
+
diffusers / PyTorch:
|
| 36 |
|
| 37 |
+
- **Grounded encode** — the instruction is encoded *together with the source image*
|
| 38 |
+
through the Qwen3-VL text encoder (image tokens inserted via the grounded chat
|
| 39 |
+
template), tapping the 12 selected decoder layers.
|
| 40 |
+
- **Source patch** — the VAE-encoded source latent is prepended to the transformer
|
| 41 |
+
sequence as clean tokens (RoPE frame index: source = 1, target = 0), so appearance is
|
| 42 |
+
carried in-context and only the target tokens are denoised.
|
| 43 |
|
| 44 |
+
Default recipe: Turbo, 8 steps, guidance off (Krea convention). `grounding_px` trades
|
| 45 |
+
edit adherence (lower) against identity/likeness (higher); 768 is balanced, 1024+ for
|
| 46 |
+
people. For removals / large deletions, raise steps and guidance.
|
| 47 |
|
| 48 |
+
*An unofficial community fine-tune of Krea 2 Raw — not affiliated with or endorsed by
|
| 49 |
+
Krea.ai, Inc. Weights are distributed under the Krea 2 Community License.*
|
|
|
|
|
|