Skip to content

armgit / kokon

Public Imported from GitHub
0

Edit photos by describing the change, on your own GPU. A free, open-source alternative to Nano Banana and ChatGPT image editing: photos stay on your computer, no daily limit. One installer for Windows, Mac and Linux sets up the best open model (Qwen-Image 2.1). MCP server for AI agents.

Update the README demo to the "Fatto in casa." TV series walkthrough

Gabriele Lozuponee895337b17ff
diff --git a/README.md b/README.md
index 975e93c..69cf997 100644
--- a/README.md
+++ b/README.md
@@ -31,7 +31,7 @@
<a href="docs/engineering-notes.md">How it works</a>
</p>
-https://github.com/user-attachments/assets/ceaf29e5-ee36-4727-bf95-db98e14b654d
+https://github.com/user-attachments/assets/f954c20e-eb07-4bc8-8216-b8a412860e99
<p align="center">
<a href="https://github.com/GabrieleLozupone/kokon/releases/latest"><picture>
@@ -94,6 +94,13 @@ https://github.com/user-attachments/assets/ceaf29e5-ee36-4727-bf95-db98e14b654d
## Examples
+<p align="center">
+ <img src="docs/media/examples/fatto-in-casa.jpg" alt="A grandmother sprinkles parmesan over a miniature Colosseum made of pasta, standing on a tomato sauce river on her kitchen table, with Rome's rooftops at sunset through the window" width="860">
+ <br>
+ <sub>One project from the demo video, made in six steps: generate the Colosseum, rebuild it out of pasta,
+ add a tomato sauce river, generate the kitchen, combine the two, expand to 21:9.</sub>
+</p>
+
Every result below came from one sentence in Kokon, with default settings.
| | |
@@ -163,7 +170,7 @@ Other weights, such as fine-tunes, can be selected in Settings → Models.
| Any result | **Upscale** to 2×, 4K, the source size or a custom width | Quick (seconds) or Detailed (about a minute) |
<p align="center">
- <img src="docs/media/screenshot-app.png" alt="The Kokon window: a living room staged in four edits, with its versions, the compare views and the prompt box" width="860">
+ <img src="docs/media/screenshot-app.png" alt="The Kokon window: a cat-and-cowboy western showdown built from three generated images, combined, edited and expanded, with its version tree, the compare views and the prompt box" width="860">
</p>
Every result can be edited again, varied, used as a reference, upscaled, saved, copied or
diff --git a/docs/media/examples/fatto-in-casa.jpg b/docs/media/examples/fatto-in-casa.jpg
new file mode 100644
index 0000000..e03343f
Binary files /dev/null and b/docs/media/examples/fatto-in-casa.jpg differ
diff --git a/docs/media/screenshot-app.png b/docs/media/screenshot-app.png
index 028c0ec..62bfa35 100644
Binary files a/docs/media/screenshot-app.png and b/docs/media/screenshot-app.png differ
diff --git a/scripts/readme/make_demo_gif.py b/scripts/readme/make_demo_gif.py
index 57abd31..11ec65c 100644
--- a/scripts/readme/make_demo_gif.py
+++ b/scripts/readme/make_demo_gif.py
@@ -28,14 +28,26 @@ RECORDINGS = {
(137, 157, "wait"), (157, 172, 3.0), (172, 203, "wait"), (203, 228, 4.0),
(228, 268, "wait"), (268, 279, 3.0), (279, 320, "wait"), (320, 325.1, 2.0), # ends on the full title
],
+ # 2026-10-09: "Fatto in casa." TV series. Colosseum -> pasta -> sauce -> kitchen with
+ # grandmother -> combine -> expand -> series key art with the title logo
+ "series": [
+ (0, 100.5, "wait"), (100.5, 113.5, 4.0), (113.5, 197.5, "wait"), (197.5, 216, 3.0),
+ (216, 297.5, "wait"), (297.5, 316, 3.0), (316, 328.5, 4.0), (328.5, 417, "wait"),
+ (417, 437.5, 4.0), (437.5, 498.5, "wait"), (498.5, 537, 4.0), (537, 626.5, "wait"),
+ (626.5, 643, 4.0), (643, 729, "wait"), (729, 734, 1.0), # ends on the key art
+ ],
}
# docs/media/demo.mp4: the "pasta" recording zoomed onto the app window (same timing),
# with black margins around it that are cropped away; then padded in the app's background
# colour so the UI does not touch the edges of GitHub's video player.
RECORDINGS["demo"] = RECORDINGS["pasta"]
-CROPS = {"demo": "crop=1304:994:460:78,pad=1464:1134:80:70:color=0x161616,"}
+CROPS = {"demo": "crop=1304:994:460:78,pad=1464:1134:80:70:color=0x161616,",
+ # recorded as the app window only: just add the margin
+ "series": "pad=1964:1494:80:70:color=0x161616,"}
NAME = sys.argv[3] if len(sys.argv) > 3 else "demo"
SEGMENTS, CROP = RECORDINGS[NAME], CROPS.get(NAME, "")
+# label position as a fraction of the frame: centred on the image, below the app's top bar
+LABEL_X, LABEL_Y = {"series": (0.6, 0.2)}.get(NAME, (0.5, 0.08))
parts, labels = [], []
for i, (a, b, sp) in enumerate(SEGMENTS):
@@ -43,7 +55,7 @@ for i, (a, b, sp) in enumerate(SEGMENTS):
if sp == "wait":
f += f",setpts=PTS*{WAIT_S / (b - a):.5f}"
f += (f",drawtext=fontfile='{FONT}':text='sped up · {round(b - a)} s':fontsize=44:fontcolor=white"
- f":box=1:boxcolor=0x0d0d0dcc:boxborderw=18:x=(w-tw)/2:y=h*0.08")
+ f":box=1:boxcolor=0x0d0d0dcc:boxborderw=18:x=w*{LABEL_X}-tw/2:y=h*{LABEL_Y}")
else:
f += f",setpts=PTS/{sp}"
if i == len(SEGMENTS) - 1: