conradlocke commited on
Commit
9185a19
·
verified ·
1 Parent(s): 13b3e7c

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +102 -0
README.md ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: krea-2-community-license
4
+ license_link: https://krea.ai/krea-2-licensing
5
+ base_model: krea/Krea-2-Raw
6
+ tags:
7
+ - image-editing
8
+ - lora
9
+ - comfyui
10
+ - krea-2
11
+ ---
12
+
13
+ # Krea 2 Identity Edit
14
+
15
+ **Instruction-based, identity-preserving image editing for Krea 2** (12.9B
16
+ single-stream MMDiT). Give it an image and a plain-language instruction; it
17
+ edits while preserving what you didn't ask to change — including the person.
18
+
19
+ *An unofficial community fine-tune of [Krea 2 Raw](https://huggingface.co/krea/Krea-2-Raw).
20
+ Not an official Krea product; not affiliated with or endorsed by Krea.ai, Inc.*
21
+
22
+ **Requires the [ComfyUI-Krea2Edit node pack](https://github.com/lbouaraba/comfyui-krea2edit)** — the LoRA is
23
+ trained with dual conditioning (in-context VAE tokens + image-grounded Qwen3-VL
24
+ encoding) that stock nodes don't provide. Two ready-made workflows ship with it.
25
+
26
+ ## What it does
27
+
28
+ - **Person re-staging with likeness:** "create a photo of this person at a
29
+ night market" — same face, same outfit down to individual moles and marks,
30
+ fully relit to the new scene. New camera angles and poses included.
31
+ - **Local edits:** recolor, add/remove/replace objects, attribute and outfit
32
+ changes, with near-pixel preservation of the rest of the frame.
33
+ - **Replace-with-reference:** "replace the woman with a big orangutan" — the
34
+ replace verb is trained, locality holds.
35
+ - **Full-image restyles:** global style with preserved composition.
36
+ - **Two-input edits (experimental):** scene + person as separate references.
37
+ Outfits and placement work well; see limitations for faces.
38
+ - **Composes with your LoRAs:** character/body/style LoRAs stack on top and
39
+ steer the prior — something closed editors structurally can't offer.
40
+
41
+ ## Recommended settings
42
+
43
+ | Task type | Model | Steps | CFG |
44
+ |---|---|---|---|
45
+ | Most edits (add, recolor, restyle, re-stage) | Turbo | 8 | 1.0 |
46
+ | Removals / large deletions | Raw | 20 | 3.0 |
47
+
48
+ - **Match the output aspect ratio to the source image.** Training pairs are
49
+ same-size; AR mismatch degrades preservation (edits may apply to only part
50
+ of the frame).
51
+ - **Generate at ≤2MP.** Above that, source content can bleed or subjects
52
+ duplicate (training was 768/1024-class).
53
+ - **`grounding_px` is a real dial** (trained range 512–1536): lower values =
54
+ stronger edit adherence and more uniform scene changes; higher values =
55
+ stronger identity/likeness. 768 is a balanced default; try 1024+ for people.
56
+ - At CFG > 1, ground the negative too (empty prompt + same image).
57
+ - LoRA strength 1.0.
58
+
59
+ ## Known limitations (honest list)
60
+
61
+ - **Likeness is texture-faithful, proportion-conservative.** Moles, skin
62
+ character, hair, and lighting adapt beautifully; strongly distinctive facial
63
+ *geometry* (unusual nose, eye spacing, face length) regresses toward typical
64
+ proportions. People whose identity lives in texture and structure transfer
65
+ best; geometry-defined faces read as a "close relative."
66
+ - **Two-person inputs keep outfits distinct but faces drift toward each
67
+ other.** Workaround that works today: chain single-ref inserts (place person
68
+ A, then a second edit pass adding person B from their reference).
69
+ - **Removal works but is not yet reliable** — always use the Raw/CFG 3 recipe;
70
+ expect occasional re-renders instead of deletions.
71
+ - **Outfit swaps are hit-or-miss** — changing what a person wears sometimes
72
+ works cleanly and sometimes doesn't apply; reroll or rephrase.
73
+ - **Local edits aren't always perfectly local** — add/remove/replace operations
74
+ can sometimes alter other parts of the frame or shift the overall color
75
+ grade. If preservation matters, compare against the source and reroll.
76
+ - Highly unusual visual content (extravagant hairstyles, extreme body types)
77
+ can drift toward the base prior — a subject LoRA stacked on top fixes this.
78
+
79
+ ## License
80
+
81
+ The LoRA weights are a **Derivative Model of Krea 2** and are distributed under
82
+ the **[Krea 2 Community License Agreement](LICENSE.pdf)** (see also `NOTICE`).
83
+ Key points for users: commercial use is permitted under the license's revenue
84
+ threshold (§2.3, currently <$1M/yr — above that, contact Krea for an enterprise
85
+ license); deployments must implement reasonable content moderation (§4.2); AI
86
+ disclosure obligations apply where required (§4.3). This repository modifies
87
+ the Krea Model as permitted by §3; it is not endorsed by Krea.
88
+
89
+ Research/portfolio release by a self-funded hobbyist.
90
+
91
+ ## Showcase
92
+
93
+ All reference people below are themselves AI-generated — no real likenesses.
94
+ Prompts are embedded in each image.
95
+
96
+ ![Two-reference composition](showcase/release_1.png)
97
+ ![Outfit swap + scene + weather](showcase/release_2.png)
98
+ ![Person re-staging with relight](showcase/release_3.png)
99
+ ![New camera angle](showcase/release_4.png)
100
+ ![Replace with preservation](showcase/release_5.png)
101
+ ![Full-image restyle](showcase/release_6.png)
102
+ ![Object addition](showcase/release_7.png)