inlinestudio commited on
Commit
7b3e1dd
·
verified ·
1 Parent(s): 516e48a

Add model card

Browse files
Files changed (1) hide show
  1. README.md +167 -0
README.md ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Comfy-Org/Krea-2
3
+ tags:
4
+ - text-to-image
5
+ - lora
6
+ - krea
7
+ - krea-2
8
+ - photorealistic
9
+ - skin-texture
10
+ - portrait
11
+ - realism
12
+ - inline-studio
13
+ license: other
14
+ license_name: krea-2
15
+ license_link: https://huggingface.co/Comfy-Org/Krea-2
16
+ instance_prompt: inline-skin-lora
17
+ pipeline_tag: text-to-image
18
+ widget:
19
+ - text: >-
20
+ inline-skin-lora, detailed skin texture, extreme macro beauty close-up,
21
+ fair skin densely covered in freckles, visible pores and vellus peach fuzz,
22
+ editorial beauty photography, unretouched
23
+ output:
24
+ url: samples/01-beauty-macro_1_seed90100.png
25
+ - text: >-
26
+ inline-skin-lora, detailed skin texture, portrait in soft window light,
27
+ olive skin, dewy highlights, natural micro-texture, no beauty filter
28
+ output:
29
+ url: samples/02-window-light_1_seed90200.png
30
+ - text: >-
31
+ inline-skin-lora, detailed skin texture, elderly face, deep creases and
32
+ crepe texture, age spots, harsh midday sun, documentary photograph
33
+ output:
34
+ url: samples/07-mature-skin_1_seed90700.png
35
+ ---
36
+
37
+ # Inline Skin LoRA - Krea 2 (RAW)
38
+
39
+ A photorealistic **skin texture** LoRA for [Krea 2](https://huggingface.co/Comfy-Org/Krea-2). It pushes the base toward real, unretouched skin: visible pores, fine vellus hair, natural subsurface scattering, and honest imperfection, instead of the airbrushed plastic look diffusion models drift into. It is a texture and realism adapter, not a specific person.
40
+
41
+ Trained on the **RAW** base with [Inline Studio](https://github.com/inlineresearch/Inline-Studio). The LoRA carries over to Krea 2 Turbo at generation time if you prefer the 8-step path.
42
+
43
+ ## Samples by condition
44
+
45
+ Eight conditions, four seeds each, on the RAW base. Every sheet prints the prompt and settings under each render, so you can read the recipe straight off the image. The first three are in-distribution; the rest push the adapter out of what it trained on.
46
+
47
+ ### 01. Beauty macro, extreme close-up
48
+
49
+ In-distribution control: the framing and light the adapter was trained on.
50
+
51
+ ![Beauty macro](samples/sets/01-beauty-macro.png)
52
+
53
+ ### 02. Soft window light, bare face
54
+
55
+ Gentle directional daylight, no makeup. Does texture survive low contrast?
56
+
57
+ ![Soft window light](samples/sets/02-window-light.png)
58
+
59
+ ### 03. Hard midday sun, high contrast
60
+
61
+ Specular sweat and blown highlights. Does the adapter hold under harsh light? Pores stay resolved inside the blown areas instead of clipping to flat white.
62
+
63
+ ![Hard midday sun](samples/sets/03-hard-sun.png)
64
+
65
+ ### 04. Direct on-camera flash
66
+
67
+ Worst case for skin: flat harsh flash flattens texture and exaggerates shine.
68
+
69
+ ![Direct on-camera flash](samples/sets/04-direct-flash.png)
70
+
71
+ ### 05. Environmental candid, half body
72
+
73
+ Pulled back to half-body. Does skin detail survive when the face is small in frame?
74
+
75
+ ![Environmental candid](samples/sets/05-environmental.png)
76
+
77
+ ### 06. Deep skin tones, studio
78
+
79
+ Tone generalisation. The training set skewed fair, so this is the honest test. Deep tones keep specular sheen without turning to latex.
80
+
81
+ ![Deep skin tones](samples/sets/06-deep-tones-studio.png)
82
+
83
+ ### 07. Mature skin, out of distribution
84
+
85
+ Stress test: the dataset was all young faces. Renders deep creases, crepe texture, and age spots rather than forcing youth.
86
+
87
+ ![Mature skin](samples/sets/07-mature-skin.png)
88
+
89
+ ### 08. Male stubble, out of distribution
90
+
91
+ Stress test: coarse hair and heavy texture the training set never contained. Individual follicles and razor detail hold up.
92
+
93
+ ![Male stubble](samples/sets/08-male-stubble.png)
94
+
95
+ ## Trigger
96
+
97
+ Put this at the front of your prompt:
98
+
99
+ ```
100
+ inline-skin-lora, detailed skin texture
101
+ ```
102
+
103
+ `inline-skin-lora` is the trigger word; `detailed skin texture` is the phrase every training caption led with. Then describe the subject, framing, and light as usual.
104
+
105
+ ## Recommended settings
106
+
107
+ | | |
108
+ | --- | --- |
109
+ | Base | Krea 2 **RAW** (`krea2_raw_bf16`); also works on Krea 2 Turbo |
110
+ | Strength | 1.0 |
111
+ | Resolution | 1024x1024 |
112
+ | Steps / guidance | 28 steps, CFG 4.5, euler / simple (RAW defaults) |
113
+ | Negative prompt | see below |
114
+
115
+ Negative prompt used for every sample here:
116
+
117
+ ```
118
+ airbrushed, plastic skin, waxy, plastic doll, smooth featureless skin, cgi, 3d render,
119
+ digital painting, illustration, cartoon, anime, over-retouched, beauty filter, instagram
120
+ filter, oversaturated, blurry, soft focus, low resolution, jpeg artifacts, watermark, text,
121
+ deformed, extra fingers, mutated hands
122
+ ```
123
+
124
+ ## Using it
125
+
126
+ **Inline Studio** (easiest): drop `inline-skin-lora-krea-2-raw.safetensors` into `models/loras/`, add a LoRA loader node on the canvas, and wire it into a Krea 2 node. See the [repo](https://github.com/inlineresearch/Inline-Studio).
127
+
128
+ **ComfyUI / diffusers**: load it as a standard LoRA on top of Krea 2. It is a PEFT adapter (rank 16) over the Krea 2 transformer; the keys are the diffusers module names, no prefix rewriting needed.
129
+
130
+ ## What it does well, and where it does not
131
+
132
+ From a 32-render sweep (8 conditions x 4 seeds) on the RAW base:
133
+
134
+ - **Texture holds everywhere.** No plastic or waxy failure in any of the 32, including hard midday sun (pores stay resolved inside blown highlights) and deep skin tones (specular sheen without turning to latex). All four seeds hold per condition, so it is not seed luck.
135
+ - **It generalises past the training set.** Elderly faces (~83) and male stubble were never in the 26 training images, and both render convincingly. Not overfit to young female faces.
136
+
137
+ Known limitations, worth knowing before you prompt:
138
+
139
+ - **Age skews older.** Prompts for 22 to 29 tend to render 35 to 45. Prompt younger than you want.
140
+ - **Framing pulls toward head-and-shoulders.** A "face filling the frame" instruction often comes back wider.
141
+ - **Lighting-style adherence is weak.** It nails the skin, but a specific lighting character (e.g. harsh on-camera flash) can soften toward studio light.
142
+ - **Dark studio backdrops can matte the subject** inside a border on Krea 2 RAW. Spell the backdrop out as full-bleed if you hit it.
143
+
144
+ ## Training
145
+
146
+ | | |
147
+ | --- | --- |
148
+ | Base | Krea 2 RAW (bf16) |
149
+ | Method | LoRA (PEFT), rank 16, alpha 16, full scope (attention + feed-forward) |
150
+ | Steps | 1500, batch 1, lr 1e-4, resolution 1024 |
151
+ | Caption dropout | 0.05, no flip augmentation |
152
+ | Dataset | 26 image + caption pairs (see the dataset link below) |
153
+ | Tool | [Inline Studio](https://github.com/inlineresearch/Inline-Studio) Trainer |
154
+
155
+ **Dataset:** [inlineresearch/krea2-skin-lora](https://huggingface.co/datasets/inlineresearch/krea2-skin-lora)
156
+
157
+ ## About Inline Studio
158
+
159
+ This LoRA was trained with **Inline Studio**, a free, open-source app for AI filmmaking on a node canvas. Its Trainer tab turns the whole pipeline into nodes you wire together: load a dataset, caption it, run the training, watch the loss curve. The finished LoRA drops straight into the app to generate with. Krea 2 generation and LoRA training both run locally on your own GPU, one file per model, no external server.
160
+
161
+ - Website: https://inlinestudio.art
162
+ - GitHub: https://github.com/inlineresearch/Inline-Studio
163
+ - Dataset for this LoRA: https://huggingface.co/datasets/inlineresearch/krea2-skin-lora
164
+
165
+ ## License and use
166
+
167
+ The base model is Krea 2; this adapter inherits its terms. Check the [base model license](https://huggingface.co/Comfy-Org/Krea-2) and set this repo's license to match before relying on it commercially. This LoRA generates realistic human skin and faces: use it responsibly, and do not use it to impersonate real people or produce non-consensual imagery.