Add focused V10 style recipes

This commit is contained in:
Kevin Gilper
2026-07-05 20:30:26 -04:00
parent 5447ebdb52
commit b9190aa9e0
6 changed files with 62 additions and 14 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ cross-connect, and saved V9 workflows keep working unchanged.
| Four more quick recipes | `suggest the color palette`, `use the background/setting`, `copy the camera framing`, and `mood board only` - jobs that previously required manual tuning. |
| Your own recipes | Drop schema-validated YAML/JSON files into [custom_recipes/](custom_recipes/README.md) and they appear in `Use image for` as first-class choices. |
| Aspect-focus recipes | A recipe's `focus` field names **which aspect** of its image to study - "the clothing and garment style, not the person" - so recipes can target clothing, props, or other object-bound aspects. |
| Starter recipes included | Three ready-made custom recipes load out of the box: `borrow the weather`, `borrow the clothing style`, and `cinematic color grade`. |
| Starter recipes included | Ready-made custom recipes load out of the box, including weather, clothing, drawing medium, photo finish, and cinematic color grade examples. |
| Recipe Builder | `web/recipe-builder.html` (also served at `/extensions/<pack folder>/recipe-builder.html`): three plain-language questions become a validated recipe file - no schema knowledge needed. |
| `Guide direction` | A card can steer *away* from its image: a counter-example for a palette, composition, subject, or style you do not want. |
| `When this card guides` | Per-card timing: whole image, early layout only, or final details only. |
+1 -1
View File
@@ -9,7 +9,7 @@ This folder is the complete kit for creating recipes:
| Piece | What it gives you |
| --- | --- |
| [Recipe Builder](../web/recipe-builder.html) (`web/recipe-builder.html`) | Three plain-language questions -> a validated, downloadable recipe file. Also served by a running ComfyUI at `/extensions/<pack folder>/recipe-builder.html`. |
| [starter-pack.yaml](starter-pack.yaml) | Three ready-made recipes, **loaded automatically**: `borrow the weather`, `borrow the clothing style`, `cinematic color grade`. Working examples to copy from; delete or underscore the file to opt out. |
| [starter-pack.yaml](starter-pack.yaml) | Ready-made recipes, **loaded automatically**: `borrow the weather`, `borrow the clothing style`, `borrow drawing medium`, `borrow photo finish`, `cinematic color grade`. Working examples to copy from; delete or underscore the file to opt out. |
| [_example-vintage-postcard.yaml](_example-vintage-postcard.yaml) | A fully-commented single-recipe template (disabled until you rename it). |
| This README | The schema, what every field really does on Krea 2, the `focus` field, the layer math, and the render-validation ritual. |
| [Technical reference](../docs/krea-v10-technical-paper.md) | The standalone V10 paper: every widget, every table, all the math. |
+43 -1
View File
@@ -1,6 +1,6 @@
# Starter recipes - loaded automatically (no leading underscore).
#
# Three ready-to-use custom recipes that showcase what recipe files can do,
# Ready-to-use custom recipes that showcase what recipe files can do,
# including the `focus` field (telling the encoder WHICH aspect of the
# reference to study). Every value here was render-validated on Krea 2;
# delete this file (or prefix it with "_") if you don't want them in your
@@ -53,6 +53,48 @@ recipes:
global: 1.0
focus: the clothing and garment style worn by the person, not the person's identity, face, or the background
- label: borrow drawing medium
description: >-
For sketches, ink drawings, studies, and monochrome artwork: borrow line
quality, hatching, paper tone, and shaded drawing feel without importing
the depicted pose, anatomy, or composition. Start around 0.5.
role: style
treatment: grayscale blur
color: 0.0
detail: 0.45
study: "384"
framing: stack
subject: avoid
early: 0.75
late: 0.9
guard: false
cap: 0.55
shape: 0.7
global: 1.35
layers: [0.04, 0.06, 0.09, 0.13, 0.17, 0.2, 1.2, 2.4, 4.8, 1.44, 3.6, 1.32]
focus: the line quality, hatching, paper texture, tonal shading, and drawing medium, not the depicted subject, anatomy, pose, text, or composition
- label: borrow photo finish
description: >-
For photographic references: borrow tone, contrast, light, grain, lens
softness, and color grade while muting people, objects, landmarks, text,
and scene layout. Start around 0.45.
role: lighting
treatment: strong blur
color: 1.0
detail: 0.2
study: "256"
framing: stack
subject: avoid
early: 0.85
late: 0.7
guard: false
cap: 0.55
shape: 0.65
global: 1.25
layers: [0.04, 0.05, 0.07, 0.1, 0.16, 0.2, 1.0, 2.2, 4.5, 1.4, 4.0, 1.2]
focus: the photographic tone, contrast, lighting, lens softness, grain, and color grade, not people, objects, landmarks, text, or scene layout
- label: cinematic color grade
description: >-
A bolder sibling of "suggest the color palette": pulls the reference's
+6 -6
View File
@@ -446,12 +446,12 @@ skipped with a logged reason; the node always loads. Saved workflows
reference custom recipes **by label**; a missing label falls back to
`balanced` with a warning (§6.2).
**Starter pack.** `custom_recipes/starter-pack.yaml` auto-loads three
render-validated recipes — `borrow the weather` (strong blur + detail 0.15
keeps the reference's objects out while the sky mood arrives),
`borrow the clothing style` (focus-driven, §9), and
`cinematic color grade` (a bolder palette sibling, cap 1.2). Delete or
underscore the file to opt out.
**Starter pack.** `custom_recipes/starter-pack.yaml` auto-loads
render-validated recipes including `borrow the weather` (strong blur + detail
0.15 keeps the reference's objects out while the sky mood arrives), `borrow
the clothing style` (focus-driven, §9), `borrow drawing medium`, `borrow photo
finish`, and `cinematic color grade` (a bolder palette sibling, cap 1.2).
Delete or underscore the file to opt out.
**Recipe Builder.** `web/recipe-builder.html` (also served by ComfyUI at
`/extensions/<pack folder>/recipe-builder.html`) generates validated recipe
+4 -4
View File
@@ -35,10 +35,10 @@ after the built-ins, picked up on node-definition refresh without a restart.
The bundled [Recipe Builder](../../web/recipe-builder.html)
(`web/recipe-builder.html`, also served at
`/extensions/<pack folder>/recipe-builder.html`) generates these files from
three plain-language questions - no schema knowledge needed. Three starter
recipes ship enabled in `custom_recipes/starter-pack.yaml` (`borrow the
weather`, `borrow the clothing style`, `cinematic color grade`), and the
`focus` recipe field lets a recipe study **one named aspect** of its image
three plain-language questions - no schema knowledge needed. Starter recipes
ship enabled in `custom_recipes/starter-pack.yaml`, including weather,
clothing, drawing medium, photo finish, and cinematic color grade examples.
The `focus` recipe field lets a recipe study **one named aspect** of its image
("the clothing and garment style, not the person") - see the
[recipe kit README](../../custom_recipes/README.md).
Only `label` and `role` are required; everything else defaults from the
+7 -1
View File
@@ -812,7 +812,13 @@ class KreaV10CustomRecipeTests(unittest.TestCase):
self.assertEqual(errors, [])
self.assertEqual(
sorted(loaded),
["borrow the clothing style", "borrow the weather", "cinematic color grade"],
[
"borrow drawing medium",
"borrow photo finish",
"borrow the clothing style",
"borrow the weather",
"cinematic color grade",
],
)
# Every starter recipe demonstrates the focus field.
for label, bundle in loaded.items():