Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

FP13, FP2f, FP1b: the manual and the scene guide teach fingerprint things with raea check --things, the post-mortem and scripts; docs/fingerprint.md says realness was measured and not shipped, and what FP1b's text column and FP13's things read

shinyobjectzd6d97c3b8df3
diff --git a/docs/fingerprint.md b/docs/fingerprint.md
index 8524e39b..47c0c642 100644
--- a/docs/fingerprint.md
+++ b/docs/fingerprint.md
@@ -35,8 +35,8 @@ media ─► columns (once, at ingest, cached by content hash)
picture: SigLIP 2 per frame at 4 fps (pooled vector; 14x14 patch grid for flagged or marked frames)
change: frame-to-frame SigLIP distance look: luminance histogram, saturation, contrast, sharpness
sound: CLAP audio, 2 s windows, 1 s hop YAMNet, 0.48 s frames (event classes and timing)
- other: EmbeddingGemma 2 for scripts, briefs, boards, stills (the Library's rows)
- things: EdgeTAM masks, Depth Anything 3 depth and camera (footage only, when an axis needs them)
+ text: EmbeddingGemma 2 for scripts, briefs and other text (a still gets the picture columns)
+ things: a render's layers or EdgeTAM masks, depth from its AOV or Depth Anything 3, and the camera
─► checks (no model): loudness, silence gaps, clipping, flash, freeze, sync to cut, floating, passing through
─► axis heads: word head (zero-shot) → learned head (logistic / Bradley-Terry) → patch head (heatmap)
─► person's weighting over axis scores ─► profile ranges from reference work
@@ -49,10 +49,10 @@ media ─► columns (once, at ingest, cached by content hash)
| sound columns | CLAP htsat-unfused (audio tower) | 117 MB fp32 (34 MB q8 copy, off by default) | yes | about 3 s (33 ms a 2 s clip) |
| sound events | YAMNet | 16 MB | yes | under 1 s |
| change and look | none | none | yes | negligible |
-| words, scripts, boards, stills | EmbeddingGemma 2 | 841 MB q8, already the Library's | only for non-video items | 2.3 s a window; reads Library rows instead where they exist |
+| words, scripts, briefs | EmbeddingGemma 2 | 841 MB q8, the Library's copy when it has one | only for text files; a still gets the picture columns | 2.3 s a window |
| axis words → vectors | CLAP text tower (502 MB fp32), SigLIP 2 text tower | | **no**: only when an axis's words change; the vectors are stored in the fingerprint | |
| heads, weighting, profile | ours | 7 KB a head | yes | milliseconds |
-| things (footage only) | EdgeTAM, Depth Anything 3 Small | 37 MB, 51 MB (both already in perception) | only for thing-level axes and checks | about 86 ms a frame for EdgeTAM |
+| things | EdgeTAM, Depth Anything 3 Small | 37 MB, 51 MB (both already in perception) | only for thing-level axes and checks | about 86 ms a frame for EdgeTAM |
Only CLAP is a new download. Its fp32 audio and text towers come to 619 MB. The q8 copies (161 MB) match fp32 only to
cosine 0.998, and differ between ONNX Runtime builds, so fp32 is the default (RAEA_CLAP_DTYPE=q8 picks the copies). Every encoder runs in Rust:
@@ -194,7 +194,7 @@ which raea doesn't ship. We take six ideas:
|---|---|---|
| text-audio match calibrated as a z against a 322-term vocabulary, with verdict bands whose precision is measured on held-out recordings | word heads from the axis words, for sound (CLAP) and picture (SigLIP 2); bands on gated heads | FP2e, FP2d |
| `profile` reference films, `critique` against their ranges with timestamped fixes, checked leave-one-out (86% in range against a 71% baseline) | profiles from golden references and approved work: the positives that notes don't give (3 approvals in 205 notes) | FP6e |
-| realness: real against code-synthesised sound, a small head on CLAP vectors, grouped CV AUC 0.92 held out by category and engine | a realness axis for sound, with labels by construction from raea's own generators (TokenSynth, SAO, Fish) against recorded foley; matches the taste rule "real material only" | FP2f |
+| realness: real against code-synthesised sound, a small head on CLAP vectors, grouped CV AUC 0.92 held out by category and engine | measured, not shipped: a head on CLAP and YAMNet means, labelled by construction from raea's own generators (TokenSynth, SAO, Fish) against recordings under CC0 and CC BY, scored 0.90, 0.80 and 0.57 held out by generator, under the 0.85 it needed on all three, so there is no realness axis | FP2f |
| summary first, `--json`, an annotated `sheet` PNG, a `timeline` transcript | the same outputs from `raea fingerprint score` | FP3a, FP3c |
| a resident MCP server, because loading the models costs 20-40 s | everything in the feed host, models loaded once | FP3a |
| "model critics stop discriminating after search; model-free measurements still do"; a "cannot judge" list | checks as arbiter, red-team cheats per axis, limits in report.json | FP4b, FP4c, FP9a |
@@ -316,7 +316,7 @@ frozen (VADB, arXiv 2510.25238). Rich Human Feedback (CVPR 2024) learns heatmaps
| phase | step | what | confidence | why |
|---|---|---|---|---|
-| 1, foundation | FP1 | columns at ingest: SigLIP 2, change, look, CLAP, YAMNet; EmbeddingGemma 2 rows read from the Library | high | every model is measured; only the look columns and CLAP's Rust front end are new |
+| 1, foundation | FP1 | columns at ingest: SigLIP 2, change, look, CLAP, YAMNet; EmbeddingGemma 2 rows for text files | high | every model is measured; only the look columns and CLAP's Rust front end are new |
| | FP2 | the folder, the base taxonomy, word heads, learned heads, the trainer and the gate, in Rust | high | FP0b-d and FP0g: heads learn from 4-32 labels in milliseconds, and words already score noise and clipping at 0.97-0.98 |
| | FP3 | `raea fingerprint score` through the feed host: summary, JSON, sheet, timeline, watch lane | high | plumbing over FP1-2; earshot shows the outputs agents can use |
| | FP4 | bootstrap from damage variants; red-team cheats; measured checks for dropout, clipping, loudness, flash, freeze | high; glow was low on the look columns and holds out 0.90 on SigLIP 2 pictures (FP10a, 11-12) | FP0b, FP0d, FP0g |
@@ -328,7 +328,7 @@ frozen (VADB, arXiv 2510.25238). Rich Human Feedback (CVPR 2024) learns heatmaps
| | FP13 | things per shot (EdgeTAM, DA3); geometry checks; a note's nouns grounded near its pin | high, high, gated | both models are in perception; the grounder ships only if FP13b passes |
| 4, share and use | FP8 | teams: shared evidence, retrain, diff | medium-high | FP0c measured pooling; the transport is the project |
| | FP9 | the agent scores before posting and can't game it | medium | needs FP5-7 and red-team sets |
-| gated | FP2f | realness axis for sound | medium, measured first | earshot's 0.92; our labels come free from raea's generators |
+| measured | FP2f | realness axis for sound | not shipped | held out by generator, SAO foley scored 0.57 against a bar of 0.85 (TokenSynth 0.90, Fish 0.80) |
| | FP10 | a LoRA adapter on SigLIP 2, or another device-sized encoder | low | only for an axis stuck after its own columns |
**The first proof that matters is FP5c.** A fingerprint built from Shane's evidence on Stay assemblies 18-22 has to
diff --git a/docs/manual/guides/fingerprint.md b/docs/manual/guides/fingerprint.md
index 10d7b16c..4d6590a2 100644
--- a/docs/manual/guides/fingerprint.md
+++ b/docs/manual/guides/fingerprint.md
@@ -2,13 +2,14 @@
title: "Fingerprint: teach raea your eye"
summary: "What raea learns about good work from your notes, marks and approvals, on your Mac: the axes it judges, how one is trained and trusted, keeping one fingerprint for each kind of work, and sharing one with a team."
order: 6
-sources: ["docs/fingerprint.feature", "docs/fingerprint.md", "apps/fingerprint/src", "systems/fingerprint/src", "systems/fingerprint-use/src", "apps/app/src/fingerprint"]
+sources: ["docs/fingerprint.feature", "docs/fingerprint.md", "apps/fingerprint/src", "systems/fingerprint/src", "systems/fingerprint-use/src", "systems/fingerprint-things/src", "apps/app/src/fingerprint"]
---
A fingerprint is your sense of good work, as raea has learned it on your Mac. It's a list of axes, the things you
notice: blur, a black frame, hiss, clipping, a glow over everything, a frozen picture, and taste axes such as fake,
barren or unreadable text. Each axis has a small model over encoders that run on your Mac (SigLIP 2 for pictures, CLAP
-for sound, YAMNet for sound events), so nothing leaves the machine unless you share it.
+for sound, YAMNet for sound events, EmbeddingGemma 2 for scripts and other text), so nothing leaves the machine unless
+you share it.
Your agents use it before they post a cut: `raea fingerprint score` lists the moments your fingerprint expects a note
on, each named in your words, and the agent fixes them or tells you why it didn't. It tells you the axis and the
@@ -52,7 +53,43 @@ raea fingerprint readings --ask 50 # check 50 of th
Notes become evidence only after you've checked how they were read: the kind right 45 times in 50 and the axis 40. A
note that asks for a creative change goes to the brief, never into an axis. An axis is trusted once it has 16 labels of
each kind from 3 projects, ranks real defects above clean work on projects it never saw, and catches its disguises.
-`raea fingerprint report` says where each one stands.
+`raea fingerprint report` says where each one stands. An axis that is still under its bar with 300 labels is
+**stuck**: more labels won't help it, so `report` names it as one to try on another encoder.
+
+## Scripts, briefs and stills
+
+A fingerprint reads more than video. A script, a brief or another text file gets EmbeddingGemma 2 rows, one per
+paragraph, and a still gets the picture columns. Each axis judges only what the file has, so a script is never called
+blurry. raea's own axes judge pictures, sound and motion. To judge writing, add an axis that reads text to your
+fingerprint.ts and teach it like any other.
+
+## Looking back on a project
+
+When a project is done, a post-mortem asks you what the fingerprint is least sure of:
+
+```sh
+raea fingerprint postmortem projects/film # at most ten yes/no questions in the app, each with its moment
+raea fingerprint postmortem projects/film --tally # your answers become evidence; each head's score before and after
+```
+
+It scores every version in the project's feed and first asks where a head disagrees with a label you gave on that
+moment, then where a head is nearest its flag, one question per axis within four seconds.
+
+## Things in a shot
+
+```sh
+raea render shot.tsx --layers -o shot.mp4 # the video and its layers (shot.layers)
+raea render shot.tsx --aov -o shot.aov # its depth, beside it
+raea fingerprint things shot.mp4 --json > things.json
+raea check shot.mp4 --things things.json
+```
+
+`things` finds a piece's shots, the things in each (a render's layers, and anything marked on its notes) with their
+depth, and the camera's path. It says where a thing floats, where two pass through each other, where the camera lurches
+in the middle of a move, and where nothing is on screen. `raea check --things` turns those into findings beside the
+rest. Floating needs real depth: with the render's `--aov` pass beside it (`shot.aov` for `shot.mp4`) it uses the
+render's own depth, and without one it estimates depth from the picture, which can't always tell a hanging box from
+one on the floor.
## One for each kind of work
diff --git a/docs/manual/reference/cli/fingerprint.md b/docs/manual/reference/cli/fingerprint.md
index 8c1998ef..4a2081ba 100644
--- a/docs/manual/reference/cli/fingerprint.md
+++ b/docs/manual/reference/cli/fingerprint.md
@@ -2,16 +2,19 @@
title: "raea fingerprint"
summary: "A person's sense of good work, learned on this Mac: axes with small heads over on-device encoders that score a render moment by moment and say what they can't judge yet."
order: 44
-sources: ["apps/fingerprint/src/lib.rs", "systems/fingerprint/src/taxonomy.rs"]
+sources: ["apps/fingerprint/src/lib.rs", "systems/fingerprint/src/taxonomy.rs", "systems/fingerprint-things/src/things.rs"]
---
A fingerprint is one person's sense of good work, kept in `~/.raea/fingerprints/NAME`. It is a list of axes (blur,
flash, clipping, pace, a brand's colours) with a small head for each over encoders that run on this Mac: SigLIP for
-pictures, CLAP for sound and YAMNet for sound events. A new axis judges from its words until it has been trained;
+pictures, CLAP for sound, YAMNet for sound events and EmbeddingGemma 2 for scripts and other text; each axis judges
+only what a file has. A new axis judges from its words until it has been trained;
`bootstrap` trains the mechanical axes by damaging moments of your own renders, and `teach` adds a label at a moment
you point at. A person can keep several, each saying what it's for, and one can build on another with `--extends`.
The app's Fingerprint page shows the same thing: what each one knows, what it's still learning, and what it can't
-judge yet. See [docs/fingerprint.md](https://github.com/shinyobjectz/raea/blob/main/docs/fingerprint.md) for the plan.
+judge yet. `postmortem` looks back on a finished project with at most ten questions, and `things` says where a
+thing floats or passes through another, the camera lurches or the frame is empty, for `raea check --things`. See
+[docs/fingerprint.md](https://github.com/shinyobjectz/raea/blob/main/docs/fingerprint.md) for the plan.
```sh
raea fingerprint new me
@@ -20,6 +23,8 @@ raea fingerprint bootstrap renders/*.mp4 --fp client-ads
raea fingerprint score cut.mp4 --timeline
raea fingerprint teach cut.mp4 --axis blur --at 4.2 --bad
raea fingerprint report
+raea fingerprint postmortem projects/film
+raea fingerprint things shot.mp4 --json > things.json
```
<!-- generated:begin by tools/manual-ref/cli.ts from `raea help --json`; edit only the flag descriptions -->