composition-lens: named readings of composition, checked against human marks
Lab book, generated 20 Nov 2026 by labbook/make_labbook.py from the files in results/ and catalogue/. Everything is local.
1. Summary and claims ledger
Background for a new reader. Photographers describe composition with named patterns: a horizon in the middle or on a third of the frame, a subject at the centre or at a rule-of-thirds point, a diagonal. Two public datasets label photographs this way. PICD (Zhao et al., CVPR 2025) gives each photograph one of 24 expert-assigned categories. CADB (Zhang, Niu and Zhang, BMVC 2021) gives each photograph one or more of 13 composition classes and the annotators' own drawn marks (lines, boxes). A reading here is a named number computed from an image with no training, such as "the strongest horizontal line sits at 0.37 of the height". The work asks whether such readings track what people mark and label, where they do, and where they don't. Every stage was fixed in a written plan before it ran, and the real-photograph tests were read once under a hashed specification.
Question. Photographers and artists use a small set of named compositions (thirds, phi, diagonals, golden triangle, rabatment, spiral, one- to three-point perspective). As far as a limited GitHub search found (it was rate-limited), public tools score one or two of them with a heuristic and none reports, per template, how far the measurement can be trusted. Can a named, inspectable measurement of each template be built, and where does it work?
Where it stands. Established (two datasets). The dominant horizontal and vertical line readings agree with the annotators' marked lines on CADB, rank the CADB horizontal and vertical classes above the rest (AUC 0.77 and 0.63), and separate the PICD horizon and vertical-line pairs on three sets. A trained probe with position-aware features matches or passes them given labelled images, so their advantage is that they need none. Held back. The compact-object reading separates P-RoT from P-Cent on PICD (AUC 0.83 on fresh images) but did not follow CADB's annotated subject boxes. Modest. 8 of 11 crosswalk predictions are met on each PICD set, with AUCs of 0.63 to 0.82; on CADB thirds and centre are 0.57 and 0.55. Not supported on real photographs. Diagonal, golden ratio, golden triangle, spiral and perspective scores. Synthetic. On exact layouts the catalogue of 23 templates (13 position templates implemented, the rest built or planned) is located to about 0.2% of the frame, and the engine reports which templates it cannot separate. As a classifier of dataset categories the lens is weaker than a fitted DINOv3 probe, which leads on 24 of 24 PICD categories.
| id | status | claim | evidence | where | note |
|---|---|---|---|---|---|
| C9 | replicated on a second dataset | The dominant horizontal and vertical line readings agree with where CADB annotators marked the line. | Images with one marked segment, all 9,497 images: horizontal n = 2117, median |y* - mark| 0.040 of the height against 0.226 for permuted marks, 53% within 0.05; vertical n = 377, median 0.069 against 0.287, 47% within 0.05. Line-coverage scores rank the CADB horizontal and vertical classes above the rest: AUC 0.77 and 0.63 on the test split. | Figures 15, 16 | Zero-shot: the lens spec was frozen before CADB was read. Different annotators and class definitions from PICD. |
| C6 | replicated: confirmation and fresh | A line-position reading separates two of the five PICD category pairs that no earlier whole-image method separated: horizon in the middle vs a third, and a vertical line in the middle vs a third. | AUC on DevA / DevB / LockboxB: LS-Hori3 vs LS-Hori2 0.85 / 0.86 / 0.78; L-Ver3 vs L-Ver2 0.77 / 0.82 / 0.79. Fitted DINOv3 probe on the pooled embedding for the same pairs: 0.54, 0.64 (DevB, about 69 images per category). | Figures 12, 13 | The categories differ in position as their definitions say. Separation is partial. The same readings agree with human-marked lines on CADB (C9). |
| C7 | partly replicated | Position-aware learned probes match or pass the named reading once they have labelled images; the pooled DINOv3 embedding does not. | Pool learning curves (10 to 100 per category): pooled embedding 0.53 to 0.68; edge-strength grid 0.81 and 0.85 on the horizon and vertical pairs; patch-norm map 0.93 on the compact pair. LockboxB (train 138 per category): best baselines LS-Hori3 vs LS-Hori2: G-edge 0.82, L-Ver3 vs L-Ver2: G-edge 0.85, P-RoT vs P-Cent: D-norm 0.93; pooled embedding 0.74, 0.64, 0.57. Four of six pre-stated baseline sub-predictions met; both misses are on the horizon pair (the pooled embedding reached 0.74 against a cap of 0.70; the best baseline was 0.04 above the reading against 0.03 allowed). | Figure 14 | The named reading's advantage is that it needs no labelled images, not a higher ceiling. |
| C6b | held back: PICD only | A compact-object reading separates P-RoT from P-Cent on PICD. | AUC 0.89 / 0.74 / 0.83 on DevA / DevB / LockboxB, against 0.66 for a pooled DINOv3 probe. But on CADB the same blob location does not follow the annotated subject boxes (C10). | Figure 13 | Not treated as established: one dataset, and the reading failed its second-dataset check. |
| C10 | not supported on the second dataset | The compact-object, thirds-point, centre-point, diagonal, golden, spiral and perspective scores. | CADB test AUC: rule_of_thirds 0.57, center 0.55 (above chance, barely), diagonal 0.53, golden_ratio 0.54, triangle 0.51, curved 0.47, vanishing_point 0.60. The blob location does not track the annotated subject boxes: median distance 0.28 to the centre-class boxes against 0.28 for permuted boxes. The Facet-style thirds heuristic scores 0.59 on rule_of_thirds, above the lens. | Figure 15 | The line readings carry the cross-dataset result; the compact-object reading carries the PICD P-RoT vs P-Cent result and is not validated outside PICD. |
| C5 | replicated: confirmation and fresh | The training-free template scores rank the categories they map to above the rest (AUC above 0.5), modestly. | Predictions met (AUC above 0.5, interval above 0.5): 8 of 11 on DevA (design), 8 of 11 on DevB (confirmation, spec frozen), 8 of 11 on LockboxB (fresh, spec hashed first): LS-Hori2, LS-Hori3, L-Ver2, L-Ver3, LS-Dia, P-Dia, P-RoT, P-Cent. LockboxB AUCs 0.63 to 0.82. | Figure 9 | Modest AUCs; the claim is direction, not accuracy. |
| C1 | solid (synthetic) | On exact synthetic layouts the 13 position templates are located and recovered. | Position error: median 0.17% (horizontal) and 0.13% (vertical) of the frame, 95th percentile about 0.5%. Top-1 recovery within a kind, rank score: 0.97 at default contrast, 0.90 at contrast 0.10, 0.83 at 0.05. Lines and diagonals keep AUC at least 0.99 against nulls down to contrast 0.05. | Figures 4, 5 | Synthetic only; strokes and tone splits on smooth backgrounds are the easy case. |
| C2 | solid (synthetic) | Some templates cannot be told apart by geometry, and the engine reports where. | Thirds and phi lines (4.9% of the frame apart) hand over at 0.355 on a single-line sweep. Fifths against phi (1.8% apart) is confused: fifths recovered 0.78 and 0.83. Rabatment equals the thirds lines on 3:2 and the fifths end lines on 4:5. | Figures 5, 6 | Identifiability is a property of the templates and the tolerance (1.5% of the frame), not a defect. |
| C3 | solid (synthetic) | An extent reading (line vs compact) removes most cross-kind confusion, and compact structures need much more contrast to be seen. | Kind accuracy 0.96 at default contrast, 0.79 at 0.10, 0.65 at 0.05; top-1 among the detected kind 0.94 against 0.86 unarbitrated. | Figure 7 | The arbitrated rule abstains when it sees nothing. |
| C4 | solid (synthetic, easy case) | Golden triangle, golden spiral and perspective readings pass their gates on drawn strokes and line drawings. | Triangle AUC 1.00 against shifted and random nulls; spiral AUC 0.99, eight-way variant accuracy 0.99, tolerance about 2% of the short side; perspective exact count 0.95 (one-point scenes weakest, 0.90). | Figure 8 | Not validated on any real photograph: PICD has no category for them. |
| C8 | descriptive | As a classifier of PICD categories the lens is weaker than a fitted learned probe; its value is that every number has a name. | Fitted DINOv3 probe ahead of the fitted lens-feature probe on 24 of 24 categories on LockboxB; Facet-style heuristic (reimplemented) 0.44 to 0.60. | Figure 10 | Fitted layers are named as fitted wherever they appear. |
| E1 | exploratory | Single lens features other than the pre-stated ones carry signal for several categories (for example line coverage for the horizon categories, AUC 0.81 to 0.85 on DevA and DevB). | Best single feature per category is listed in results/m3_devA.json and m3_devB.json; 62 features per category, no multiplicity correction. | - | Not a claim; a place to look. |
| N1 | not claimed | That these templates describe how people see composition, or that fit to a template means a photograph is well composed. | Nothing here measures quality or perception. | ||
| N2 | not claimed | Anything about the golden triangle, golden spiral, phi, fifths or rabatment templates on real photographs. | Tested on synthetic layouts only; PICD has no labelled category for them. | ||
| N3 | not claimed | Anything about the P-Dia vs P-Hori and P-Dia vs P-Ver pairs. | They are arrangements of several points and the lens has no reading for them. | ||
| N4 | not claimed | That the pattern holds in other datasets beyond the line readings checked on CADB, in other photographic collections, or at other resolutions. | Two datasets (PICD, CADB), both Flickr-derived or web photographs, 384-pixel readings. | ||
| N6 | not claimed | Anything about the ADadras thirds classifier, PhotoFramer, or Facet itself. | Only a reimplementation of Facet's thirds and centre heuristic was compared; the other two were not run. | ||
| N5 | not claimed | That the remaining overlap between labelled categories is label noise, or that annotators would agree. | No annotator-agreement data on these pairs. |
2. Aims, and what changed
The work started from an earlier, unpublished benchmark study of PICD, where five category pairs resisted every method and the data could not say why. The idea: build detectors for the named templates themselves, give each a null and a recovery test, and validate against labelled data. The plan (PLAN.md) fixes definitions and tests before each stage runs; changes after a result are dated amendments.
Plan changes after seeing results
| amendment | what and why |
|---|---|
| A1 (20 Nov 2026), point evidence | After the first run, line images were being read as point structures (a line passes through the power points). Point evidence changed from the raw disc share to a blob response: the disc share minus the ring mean (first try, little effect), then minus the ring maximum (kept). Reason: a line has equally high share on both sides along it; a compact structure exceeds all its neighbours. |
| A2 (20 Nov 2026), score definition | The rank-only score saturated (every strong line and every noise bump could reach rank 1), which let a flat profile in the other orientation beat the true line. Added a robust z (best primitive's value against the null positions' median and MAD, minus the expected maximum of k normals). Both scores are now stored and reported: score (z, presence) and rank_score (position rank, used to choose among templates of the same kind). The first-run files are kept in results/v0_first_run/. |
| A3 (20 Nov 2026), contrast stress | Noise at 0.05 barely moved any result, so two low-contrast conditions (structure contrast 0.10 and 0.05, noise 0.02) were added; null images share each condition's contrast. |
| A4 (20 Nov 2026), within-kind accuracy (exploratory) | Top-1 over all templates is confounded across kinds: a compact object on a power point also makes the line profiles peak. Top-1 within a kind (horizontal, vertical, point, diagonal) is reported next to it. Added after seeing R2, so labelled exploratory. |
| A5 (20 Nov 2026), M3b grid size | The DINOv3 model's input is 256 px, so its patch grid is 16 x 16, not 14 x 14: the patch-norm map D-norm has 256 values and the pooled patch grid still 4 x 4. No other change to the M3b plan. |
| A6 (20 Nov 2026), M4 extraction robustness | The first M4 extraction hung after about 29 minutes with every worker process gone (a worker had died on some image) and no output written; no CADB result had been produced or seen. The extraction script now runs in chunks of 200 images, each in its own process with a timeout, redoes a crashed chunk one image per process, and records any image that still fails as an error; the measurements are unchanged. The spec was re-frozen (new hash) before the rerun; the DINOv3 features, already complete, do not depend on it. |
Data roles
| set | images | role | state |
|---|---|---|---|
| PICD held-out pool, DevA | 1,656 | design: the lens may be changed against it (amendments dated) | used |
| PICD held-out pool, DevB | 1,656 | confirmation: read once under the frozen spec (hash 570a835117e0e098) | spent |
| Six-category subset (both halves) | 828 | baseline training and learning curves (M3b) | used |
| LockboxB | 960 | fresh test, read once under the M3c spec (hash 88f4193d8b36edc3) | spent |
| CADB (all 9,497; test split 950) | 9,497 | second dataset, zero-shot transfer under the M4 spec (hash 0fc784df3015916d); annotators' own marks used for T2 | spent |
| Synthetic images | 10,020 + 4,884 + 1,200 | recovery, M2b tests, calibration (seeds fixed in the scripts) | regenerable |
| spec | hash | frozen | covers |
|---|---|---|---|
| M3 (DevB confirmation) | 570a835117e0e0985930855e2ac5317bfd2840008a4c354d12eb905a7cb9c41e | 2026-11-20 12:02:10 | lens/*.py, catalogue, tests/m3_*.py, calibration, plan snapshot |
| M3c (LockboxB) | 88f4193d8b36edc32d3d587fdaecaf1faf65186cde7fa2cfd075bd7fba8c5c82 | 2026-11-20 12:47:36 | the same plus tests/m3b_analyse.py, tests/m3c_*.py, both plan snapshots |
| M4 (CADB) | 0fc784df3015916da5cf3a3d5b38afcb09ab2755fe1185512514dda564a00292 | 2026-11-20 14:50:20 | the same plus tests/m4_*.py and the M4 plan snapshot (re-frozen after amendment A6) |
Related public work
| work | what it does | what we did with it |
|---|---|---|
| ADadras: Rule-of-Thirds detection (ACM SUMAC 2025, MIT) | 22 named geometric features and a logistic or boosted classifier for thirds | not run (listed as a future comparator) |
| PhotoFramer-Assessment (CVPR 2026, MIT) | a 7B vision-language model fine-tuned for composition score and class | not run |
| Facet (analyzers/composition.py) | subject box scored against thirds points and the centre | its heuristic reimplemented from the public source and compared (Figure 10); Facet itself not run |
| CADB (BMVC 2021; AADB images) | 9,497 photographs with composition scores, 13 composition classes and elements | used as the second dataset (Figures 15, 16): class crosswalk, annotators' marks, fitted comparators; zero-shot, local copy only |
| Grid Maker Pro overlay list | 82 drawing and design overlays, about 27 of them photographic compositions | names of templates only; its popularity claims are unsourced |
| DeepGaze, UMSI | gaze saliency and design importance models | not used |
3. Templates and method
Each template is a geometry spec (lines, points, paths) in catalogue/templates.json; the crosswalk to PICD and CADB is by name and marked draft. Only templates whose geometry is unambiguous in standard sources are implemented.
Reading. The overlay vocabulary covers well under half of PICD.
Of the 24 PICD categories, 10 have a v0 template; the other 14 are arrangements, textures, curves or perspective that no overlay in the catalogue describes. CADB classes without any template: pattern, fill the frame.
Data table for figure 1
| PICD category | templates | coverage |
|---|---|---|
| P-RoT | thirds_pts | v0 |
| S-RoT | thirds_pts | v0 |
| P-Cent | centre_pt | v0 |
| S-Cent | centre_pt | v0 |
| P-Dia | diag_baroque, diag_sinister | v0 |
| LS-Dia | diag_baroque, diag_sinister | v0 |
| P-Hori | none | none |
| LS-Hori2 | centre_h | v0 |
| LS-Hori3 | thirds_h | v0 |
| S-Hori | none | none |
| P-Ver | none | none |
| L-Ver2 | centre_v | v0 |
| L-Ver3 | thirds_v | v0 |
| L-VerMul | none | none |
| P-Tri | none | none |
| LS-Tri | none | none |
| LS-C-Cur | none | none |
| LS-O-Cur | none | none |
| LS-S-Cur | none | none |
| LS-Dif | none | none |
| S-Per | persp_1pt, persp_2pt, persp_3pt | planned |
| PL-Den | none | none |
| PL-Pat | none | none |
| P-Scat | none | none |
| id | template | kind | positions / geometry | PICD | CADB | status |
|---|---|---|---|---|---|---|
thirds_h | Rule of thirds, horizontal lines | hline | 0.333, 0.667 | LS-Hori3 | rule of thirds, horizontal | v0 |
thirds_v | Rule of thirds, vertical lines | vline | 0.333, 0.667 | L-Ver3 | rule of thirds, vertical | v0 |
thirds_pts | Rule of thirds, power points | points | [0.3333333333333333, 0.3333333333333333], [0.333333333333333 | P-RoT, S-RoT | rule of thirds | v0 |
centre_h | Centre, horizontal midline | hline | 0.500 | LS-Hori2 | center, horizontal | v0 |
centre_v | Centre, vertical midline | vline | 0.500 | L-Ver2 | center, vertical, symmetric | v0 |
centre_pt | Centre point | points | [0.5, 0.5] | P-Cent, S-Cent | center | v0 |
phi_h | Golden-ratio grid, horizontal lines | hline | 0.382, 0.618 | - | golden ratio | v0 |
phi_v | Golden-ratio grid, vertical lines | vline | 0.382, 0.618 | - | golden ratio | v0 |
phi_pts | Golden-ratio grid, power points | points | [0.3819660112501051, 0.3819660112501051], [0.381966011250105 | - | golden ratio | v0 |
fifths_h | Rule of fifths, horizontal lines | hline | 0.200, 0.400, 0.600, 0.800 | - | - | v0 |
fifths_v | Rule of fifths, vertical lines | vline | 0.200, 0.400, 0.600, 0.800 | - | - | v0 |
diag_baroque | Baroque diagonal (bottom-left to top-right) | diag | BL-TR | LS-Dia, P-Dia | diagonal | v0 |
diag_sinister | Sinister diagonal (top-left to bottom-right) | diag | TL-BR | LS-Dia, P-Dia | diagonal | v0 |
golden_triangle | Golden triangle | composite | - | - | triangle | M2b |
rabatment | Rabatment | vline | - | - | - | M2b |
golden_spiral | Golden spiral | path | - | - | curved | M2b |
persp_1pt | One-point perspective | vp | - | S-Per | vanishing point | M2b |
persp_2pt | Two-point perspective | vp | - | S-Per | vanishing point | M2b |
persp_3pt | Three-point perspective | vp | - | S-Per | vanishing point | M2b |
armature14 | Armature, 14-line | composite | - | - | - | deferred |
rootrect | Root rectangles and phi rectangle (frame proportion) | frame | - | - | - | frame-only |
radial | Radial / circular | path | - | - | radial | deferred |
symmetry | Mirror symmetry | mirror | - | - | symmetric | deferred |
Reading. One measurement (the profile) serves every horizontal template; the thirds, centre, phi and fifths scores differ only in which positions they read. Here the strongest line sits at 0.37 of the height and phi_h scores highest (z 4.2); a line near the lower or upper third can sit nearer the phi position than the thirds one, which are only 4.9% of the frame apart (see the thirds-to-phi sweep below).
A real photograph (PICD; dataset credit under the overlay figure in section 5) beside its row profile. The strongest horizontal line sets y*; each template reads the profile within the tolerance of its position and is scored against the rest of the profile.
Data table for figure 2
| template / reading | z score | rank score |
|---|---|---|
| thirds_h | 0.81 | 0.92 |
| centre_h | 0.14 | 0.43 |
| phi_h | 4.16 | 1.98 |
| fifths_h | 1.70 | 0.74 |
| y* (dominant horizontal line) | 0.369 |
Evidence. At a long side of 384 px: a position profile of line strength against position for horizontal, vertical and the two diagonal orientations; a mass map and a blob response for compact objects; coverage of the dominant line (how much of its length has an edge). Fit. A template's fit is the profile value within a tolerance (1.5% of the frame) of its positions, ranked against the rest of the profile (rank score) and scored by magnitude against the profile's own spread (robust z, corrected for the number of primitives). No trained model is used anywhere in the lens. Full definitions: PLAN.md.
4. Synthetic tests
All stages were tested first on images whose layout is exact by construction. Sanity gates were fixed beforehand and all passed (position error under 1% of the frame, AUC at least 0.9 against nulls, kind accuracy at least 0.9, spiral AUC at least 0.9, perspective count accuracy at least 0.8).
Reading. The synthetic tests are the easy case: clean strokes, tone splits and drawn lines. The hard point at contrast 0.05 shows why compact objects fail first.
Exact layouts placed on template positions with jitter up to 0.5% of the frame, a smooth background, low-contrast distractors and noise. Generated by lens/synth.py and lens/synth2.py; seeds in the figure code.
Data table for figure 3
| synthetic layout |
|---|
| horizontal line at 1/3 |
| vertical line at 0.382 (phi) |
| compact object on a power point |
| diagonal tone split (TL-BR) |
| golden-triangle strokes |
| golden spiral, variant 5 |
| two-point perspective drawing |
| point at contrast 0.05 (hard) |
Reading. Noise barely matters; contrast does. Choosing among all templates at once is worse than within a kind because a compact object on a power point also makes the line profiles peak (see the confusion matrix below).
10,020 images across four aspect ratios and five conditions. 'Within kind' restricts the choice to templates of the same kind (horizontal, vertical, point, diagonal).
Data table for figure 4
| condition | within kind (rank score) | within kind (z score) | all templates (z score) |
|---|---|---|---|
| noise 0 | 0.965 | 0.917 | 0.721 |
| noise 0.02 | 0.966 | 0.922 | 0.717 |
| noise 0.05 | 0.970 | 0.933 | 0.850 |
| contrast 0.10 | 0.900 | 0.864 | 0.772 |
| contrast 0.05 | 0.835 | 0.803 | 0.736 |
Reading. The hand-over sits at 0.355, almost exactly the midpoint (0.358) of the two template positions.
A single synthetic horizontal line, 20 images per position, 4:3, noise 0.02.
Data table for figure 5
| line position | median position error | thirds_h wins | phi_h wins | centre_h wins |
|---|---|---|---|---|
| 0.3 | 0.000 | 1.00 | 0.00 | 0.00 |
| 0.305 | 0.002 | 1.00 | 0.00 | 0.00 |
| 0.31 | 0.001 | 1.00 | 0.00 | 0.00 |
| 0.315 | 0.001 | 1.00 | 0.00 | 0.00 |
| 0.32 | 0.001 | 1.00 | 0.00 | 0.00 |
| 0.325 | 0.003 | 1.00 | 0.00 | 0.00 |
| 0.33 | 0.002 | 1.00 | 0.00 | 0.00 |
| 0.335 | 0.002 | 1.00 | 0.00 | 0.00 |
| 0.34 | 0.002 | 1.00 | 0.00 | 0.00 |
| 0.345 | 0.000 | 1.00 | 0.00 | 0.00 |
| 0.35 | 0.002 | 1.00 | 0.00 | 0.00 |
| 0.355 | 0.001 | 0.55 | 0.45 | 0.00 |
| 0.36 | 0.003 | 0.00 | 1.00 | 0.00 |
| 0.365 | 0.001 | 0.05 | 0.95 | 0.00 |
| 0.37 | 0.003 | 0.00 | 1.00 | 0.00 |
| 0.375 | 0.002 | 0.00 | 0.95 | 0.00 |
| 0.38 | 0.000 | 0.00 | 0.75 | 0.00 |
| 0.385 | 0.002 | 0.00 | 0.55 | 0.00 |
| 0.39 | 0.001 | 0.00 | 0.60 | 0.00 |
| 0.395 | 0.003 | 0.00 | 0.55 | 0.00 |
| 0.4 | 0.002 | 0.00 | 0.45 | 0.00 |
Reading. The mistakes are geometric: compact objects on a power point or the centre are read as the line templates that pass through them, and fifths lines as the nearby phi lines.
Default contrast, noise 0.02, scored over all 13 templates with the z score. Cells with at least 0.10 off the diagonal, or a diagonal below 0.90, are labelled.
Data table for figure 6
| true template | read as | share |
|---|---|---|
| thirds_h | thirds_h | 1.000 |
| thirds_v | thirds_v | 1.000 |
| thirds_pts | thirds_h | 0.025 |
| thirds_pts | thirds_v | 0.225 |
| thirds_pts | thirds_pts | 0.075 |
| thirds_pts | phi_h | 0.358 |
| thirds_pts | phi_v | 0.292 |
| thirds_pts | diag_baroque | 0.008 |
| thirds_pts | diag_sinister | 0.017 |
| centre_h | centre_h | 1.000 |
| centre_v | centre_v | 1.000 |
| centre_pt | centre_h | 0.292 |
| centre_pt | centre_v | 0.425 |
| centre_pt | centre_pt | 0.225 |
| centre_pt | diag_baroque | 0.025 |
| centre_pt | diag_sinister | 0.033 |
| phi_h | phi_h | 0.650 |
| phi_h | fifths_h | 0.350 |
| phi_v | phi_v | 0.700 |
| phi_v | fifths_v | 0.300 |
| phi_pts | thirds_h | 0.233 |
| phi_pts | thirds_v | 0.175 |
| phi_pts | phi_v | 0.083 |
| phi_pts | phi_pts | 0.008 |
| phi_pts | fifths_h | 0.183 |
| phi_pts | fifths_v | 0.292 |
| phi_pts | diag_baroque | 0.017 |
| phi_pts | diag_sinister | 0.008 |
| fifths_h | phi_h | 0.133 |
| fifths_h | fifths_h | 0.867 |
| fifths_v | phi_v | 0.208 |
| fifths_v | fifths_v | 0.792 |
| diag_baroque | diag_baroque | 1.000 |
| diag_sinister | diag_sinister | 1.000 |
Reading. Compact points are the casualty at low contrast; lines and diagonals survive.
Thresholds tau_c = 0.60, tau_b = 0.0175 calibrated on a separate 1,200-image set, then frozen.
Data table for figure 7
| condition | kind accuracy | arbitrated top-1 | unarbitrated top-1 |
|---|---|---|---|
| default contrast | 0.959 | 0.936 | 0.856 |
| contrast 0.10 | 0.791 | 0.754 | 0.724 |
| contrast 0.05 | 0.653 | 0.591 | 0.676 |
Reading. The spiral can be placed to about 2% of the short side; beyond 4% it is lost.
Eight variants; AUC against perturbed spirals and straight strokes, and eight-way variant accuracy, as the exact spiral is displaced.
Data table for figure 8
| displacement (share of short side) | AUC against nulls | variant accuracy |
|---|---|---|
| 0% | 0.993 | 0.990 |
| 1% | 0.990 | 0.938 |
| 2% | 0.980 | 0.938 |
| 4% | 0.772 | 0.688 |
| 8% | 0.704 | 0.125 |
Triangle, rabatment, perspective. The golden triangle separates from a bare diagonal at AUC 1.00; rabatment is the top template on 4:3 ({'rabatment': 40}) and ties with thirds on 3:2 and with the fifths end lines on 4:5; the exact vanishing-point count is 0.95 on clean line drawings (one-point scenes 0.90, median vanishing-point error 0.005 of the frame for one-point scenes).
5. Real photographs (PICD)
Design on DevA; spec frozen and hashed; one confirmation run on DevB; a last fresh test on LockboxB with the plan and predictions fixed before it was read. The comparators are a reimplementation of Facet's thirds and centre heuristic, a fitted logistic probe on the lens features (a fitted layer) and a fitted logistic probe on DINOv3 embeddings (a fitted layer over a trained model).
Reading. 8 of 11 met on each set; the same three fail on all three.
Circles carry 95% bootstrap intervals; squares are the design set. Bold labels are predictions not met on LockboxB. Template scores are the z scores fixed in PLAN.md.
Data table for figure 9
| category | template | DevA | DevB [95% interval] | LockboxB [95% interval] | LockboxB prediction |
|---|---|---|---|---|---|
| P-RoT | thirds_pts | 0.645 | 0.677 [0.612, 0.742] | 0.641 [0.545, 0.724] | met |
| S-RoT | thirds_pts | 0.466 | 0.409 [0.346, 0.466] | 0.501 [0.414, 0.586] | not met |
| P-Cent | centre_pt | 0.616 | 0.621 [0.537, 0.704] | 0.635 [0.536, 0.736] | met |
| S-Cent | centre_pt | 0.543 | 0.514 [0.454, 0.578] | 0.473 [0.395, 0.559] | not met |
| P-Dia | diag (max of two) | 0.647 | 0.672 [0.601, 0.737] | 0.630 [0.536, 0.728] | met |
| LS-Dia | diag (max of two) | 0.788 | 0.754 [0.697, 0.809] | 0.802 [0.724, 0.868] | met |
| LS-Hori2 | centre_h | 0.800 | 0.836 [0.783, 0.879] | 0.824 [0.766, 0.879] | met |
| LS-Hori3 | thirds_h | 0.742 | 0.687 [0.613, 0.758] | 0.800 [0.724, 0.868] | met |
| L-Ver2 | centre_v | 0.773 | 0.805 [0.749, 0.864] | 0.753 [0.657, 0.843] | met |
| L-Ver3 | thirds_v | 0.726 | 0.722 [0.650, 0.786] | 0.743 [0.652, 0.822] | met |
| S-Per | finite VP support | 0.462 | 0.480 [0.422, 0.541] | 0.399 [0.327, 0.470] | not met |
Reading. The fitted DINOv3 probe leads almost everywhere. Between the two training-free scores, the lens template is above the Facet-style heuristic on the line, diagonal and point categories and below it on S-Cent.
Fitted probes train on the whole pool (3,312 images); the lens template score and the Facet-style heuristic need no training.
Data table for figure 10
| category | lens template | Facet-style | fitted lens probe | fitted DINOv3 probe |
|---|---|---|---|---|
| P-RoT | 0.641 | 0.592 | 0.804 | 0.872 |
| S-RoT | 0.501 | 0.502 | 0.786 | 0.939 |
| P-Cent | 0.635 | 0.554 | 0.816 | 0.928 |
| S-Cent | 0.473 | 0.599 | 0.760 | 0.931 |
| P-Dia | 0.630 | - | 0.715 | 0.888 |
| LS-Dia | 0.802 | - | 0.754 | 0.936 |
| P-Hori | - | - | 0.764 | 0.954 |
| LS-Hori2 | 0.824 | 0.499 | 0.896 | 0.959 |
| LS-Hori3 | 0.800 | 0.461 | 0.905 | 0.980 |
| S-Hori | - | - | 0.759 | 0.961 |
| P-Ver | - | - | 0.715 | 0.896 |
| L-Ver2 | 0.753 | 0.437 | 0.861 | 0.865 |
| L-Ver3 | 0.743 | 0.512 | 0.754 | 0.833 |
| L-VerMul | - | - | 0.826 | 0.936 |
| P-Tri | - | - | 0.752 | 0.905 |
| LS-Tri | - | - | 0.869 | 0.963 |
| LS-C-Cur | - | - | 0.719 | 0.921 |
| LS-O-Cur | - | - | 0.892 | 0.981 |
| LS-S-Cur | - | - | 0.742 | 0.985 |
| LS-Dif | - | - | 0.812 | 0.955 |
| S-Per | 0.399 | - | 0.888 | 0.992 |
| PL-Den | - | - | 0.851 | 0.994 |
| PL-Pat | - | - | 0.866 | 0.992 |
| P-Scat | - | - | 0.726 | 0.933 |
What the lens reports
Strongest horizontal line at 0.40 of the height: 0.07 from the upper third.
Strongest horizontal line at 0.28 of the height: 0.05 from the upper third.
Strongest vertical line at 0.50 of the width: 0.00 from the middle.
Strongest vertical line at 0.41 of the width: 0.07 from the left third.
Most compact object at (0.52, 0.52): 0.03 from the centre, 0.21 from the nearest power point.
Most compact object at (0.30, 0.30): 0.28 from the centre, 0.05 from the nearest power point.
Six images drawn at random (seeded) from LockboxB, one per category of the three position pairs. White dashed lines mark 1/3, 1/2 and 2/3; the solid line or circle is the measured position. Images from PICD (Zhao et al., CVPR 2025), the part released for redistribution, shown reduced and uncropped under CC BY-NC-SA 4.0 and the dataset's Terms of Use; the dataset does not record photographer or platform per image; ids shown.
Data table for figure 11
| category | image id | reading |
|---|---|---|
| LS-Hori2 | 000217 | Strongest horizontal line at 0.40 of the height: 0.07 from the upper third. |
| LS-Hori3 | 034445 | Strongest horizontal line at 0.28 of the height: 0.05 from the upper third. |
| L-Ver2 | 014341 | Strongest vertical line at 0.50 of the width: 0.00 from the middle. |
| L-Ver3 | 028027 | Strongest vertical line at 0.41 of the width: 0.07 from the left third. |
| P-Cent | 036915 | Most compact object at (0.52, 0.52): 0.03 from the centre, 0.21 from the nearest power point. |
| P-RoT | 041811 | Most compact object at (0.30, 0.30): 0.28 from the centre, 0.05 from the nearest power point. |
6. The five pairs that no whole-image method separated
In an earlier benchmark study (unpublished) five category pairs scored 0.49 to 0.57 pair accuracy for every method. Three of them have a position reading. Two use the line readings (LS-Hori2 vs LS-Hori3, L-Ver2 vs L-Ver3), which section 7 validates against human-marked lines on a second dataset. The third (P-RoT vs P-Cent) uses the compact-object reading, which that check did not support, so it is shown here but held back. The two P-Dia pairs need an arrangement reading the lens does not have. The reading is the distance of the dominant horizontal line, vertical line or compact blob from the centre; the interpretation rule was fixed before any real image was read.
Reading. Middle categories cluster at 1/2 (or at the centre); third categories sit at 1/3 and 2/3 (or a power point).
40 images per category.
Data table for figure 12
| reading | category 1 | median | category 2 | median |
|---|---|---|---|---|
| Strongest horizontal line: height | LS-Hori2 | 0.528 | LS-Hori3 | 0.653 |
| Strongest vertical line: position | L-Ver2 | 0.496 | L-Ver3 | 0.584 |
| Compact object: distance from centre | P-Cent | 0.120 | P-RoT | 0.256 |
Reading. All three pairs separate on all three sets.
AUC of the pre-stated position reading; the pooled DINOv3 probe uses about 69 training images per category.
Data table for figure 13
| pair | score | DevA | DevB [95% interval] | LockboxB [95% interval] | pooled DINOv3 probe, DevB | detection rate, LockboxB |
|---|---|---|---|---|---|---|
| LS-Hori3 vs LS-Hori2 | |y*-0.5| | 0.846 | 0.863 [0.789, 0.923] | 0.776 [0.665, 0.876] | 0.543 | 98% |
| L-Ver3 vs L-Ver2 | |x*-0.5| | 0.766 | 0.816 [0.738, 0.888] | 0.794 [0.682, 0.901] | 0.639 | 95% |
| P-RoT vs P-Cent | blob distance to centre | 0.885 | 0.744 [0.654, 0.822] | 0.828 [0.728, 0.928] | 0.658 | 29% |
Reading. Position-aware features catch up with the reading at about 20 to 40 labelled images for the vertical and compact pairs; the pooled embedding does not.
Probes use cross-validated regularisation; 38 test images per category in the pool experiment.
Data table for figure 14
| pair | method | 10 | 20 | 40 | 70 | 100 | LockboxB (train 138) |
|---|---|---|---|---|---|---|---|
| LS-Hori3 vs LS-Hori2 | D-pool | 0.555 +/- 0.074 | 0.550 +/- 0.089 | 0.596 +/- 0.064 | 0.602 +/- 0.057 | 0.630 +/- 0.077 | 0.740 |
| LS-Hori3 vs LS-Hori2 | D-grid | 0.590 +/- 0.071 | 0.631 +/- 0.063 | 0.693 +/- 0.048 | 0.738 +/- 0.045 | 0.770 +/- 0.037 | 0.668 |
| LS-Hori3 vs LS-Hori2 | D-norm | 0.586 +/- 0.065 | 0.584 +/- 0.070 | 0.623 +/- 0.050 | 0.629 +/- 0.032 | 0.641 +/- 0.027 | 0.653 |
| LS-Hori3 vs LS-Hori2 | G-bright | 0.621 +/- 0.070 | 0.678 +/- 0.038 | 0.742 +/- 0.042 | 0.777 +/- 0.039 | 0.787 +/- 0.057 | 0.802 |
| LS-Hori3 vs LS-Hori2 | G-edge | 0.643 +/- 0.104 | 0.720 +/- 0.076 | 0.768 +/- 0.054 | 0.797 +/- 0.041 | 0.814 +/- 0.038 | 0.818 |
| LS-Hori3 vs LS-Hori2 | position reading | 0.849 +/- 0.043 | 0.849 +/- 0.043 | 0.849 +/- 0.043 | 0.849 +/- 0.043 | 0.849 +/- 0.043 | 0.776 |
| L-Ver3 vs L-Ver2 | D-pool | 0.575 +/- 0.045 | 0.604 +/- 0.057 | 0.626 +/- 0.049 | 0.659 +/- 0.044 | 0.680 +/- 0.049 | 0.642 |
| L-Ver3 vs L-Ver2 | D-grid | 0.597 +/- 0.057 | 0.618 +/- 0.065 | 0.642 +/- 0.038 | 0.667 +/- 0.047 | 0.698 +/- 0.045 | 0.637 |
| L-Ver3 vs L-Ver2 | D-norm | 0.721 +/- 0.076 | 0.781 +/- 0.072 | 0.820 +/- 0.058 | 0.842 +/- 0.048 | 0.844 +/- 0.052 | 0.844 |
| L-Ver3 vs L-Ver2 | G-bright | 0.563 +/- 0.062 | 0.579 +/- 0.048 | 0.618 +/- 0.053 | 0.638 +/- 0.042 | 0.656 +/- 0.044 | 0.676 |
| L-Ver3 vs L-Ver2 | G-edge | 0.702 +/- 0.092 | 0.774 +/- 0.048 | 0.807 +/- 0.040 | 0.842 +/- 0.041 | 0.849 +/- 0.043 | 0.848 |
| L-Ver3 vs L-Ver2 | position reading | 0.776 +/- 0.037 | 0.776 +/- 0.037 | 0.776 +/- 0.037 | 0.776 +/- 0.037 | 0.776 +/- 0.037 | 0.794 |
| P-RoT vs P-Cent | D-pool | 0.531 +/- 0.080 | 0.532 +/- 0.065 | 0.589 +/- 0.037 | 0.605 +/- 0.052 | 0.662 +/- 0.043 | 0.571 |
| P-RoT vs P-Cent | D-grid | 0.551 +/- 0.075 | 0.556 +/- 0.064 | 0.625 +/- 0.049 | 0.668 +/- 0.061 | 0.732 +/- 0.041 | 0.677 |
| P-RoT vs P-Cent | D-norm | 0.729 +/- 0.081 | 0.836 +/- 0.052 | 0.896 +/- 0.047 | 0.924 +/- 0.033 | 0.926 +/- 0.034 | 0.928 |
| P-RoT vs P-Cent | G-bright | 0.507 +/- 0.083 | 0.544 +/- 0.080 | 0.605 +/- 0.064 | 0.627 +/- 0.053 | 0.646 +/- 0.038 | 0.593 |
| P-RoT vs P-Cent | G-edge | 0.729 +/- 0.077 | 0.782 +/- 0.089 | 0.841 +/- 0.042 | 0.869 +/- 0.033 | 0.881 +/- 0.026 | 0.812 |
| P-RoT vs P-Cent | position reading | 0.796 +/- 0.045 | 0.796 +/- 0.045 | 0.796 +/- 0.045 | 0.796 +/- 0.045 | 0.796 +/- 0.045 | 0.828 |
Reading the three figures together. The labelled categories do differ in position as defined, and a named reading shows it with no labelled images. Position-aware probes show the information is also easy to learn, so the separation is cleaner than the reading alone suggested (AUC up to 0.93 on LockboxB for the compact pair, where a patch-norm probe does much better than the blob reading). The pooled embedding discards much of it, though less on horizons (0.74) than on the other two pairs (0.64, 0.57).
7. A second dataset: CADB
CADB (Zhang, Niu and Zhang, BMVC 2021) has 9,497 photographs, 13 composition classes per image (multi-label) and the annotators' own marks for each class. It was downloaded after the plan (PLAN.md, section M4) was written and the spec hashed, and read once, with no design step: the lens is the same frozen lens. Two questions: do the template scores rank the CADB classes they map to, and do the lens's line positions agree with where the annotators drew the lines?
Reading. Four of five predicted classes are above chance, but only the line-coverage readings are strong. A fitted DINOv3 probe leads on every class.
CADB (BMVC 2021; AADB Flickr images; research use only; local copy, no images shown). The lens spec is the frozen M3 spec: zero-shot transfer, no design on CADB. Multi-label images count as positives for each of their classes. Fitted probes train on the official train split (8,547); the test split has 950 images. Bold labels are classes whose lens score does not clear 0.5 with its interval (diagonal was a pre-stated prediction; golden ratio, triangle and curved had none; vanishing point was predicted not to).
Data table for figure 15
| class | positives (test) | lens score | lens AUC test [95% interval] | lens AUC all 9,497 | Facet-style | fitted lens probe | fitted DINOv3 probe |
|---|---|---|---|---|---|---|---|
| center | 451 | max centre_h/v/pt | 0.550 [0.513, 0.587] | 0.537 | 0.512 | 0.658 | 0.810 |
| horizontal | 246 | line coverage (h) | 0.774 [0.740, 0.806] | 0.737 | - | 0.814 | 0.876 |
| diagonal | 201 | max of two diagonals | 0.535 [0.488, 0.582] | 0.522 | - | 0.661 | 0.810 |
| vertical | 182 | line coverage (v) | 0.632 [0.586, 0.675] | 0.617 | - | 0.710 | 0.862 |
| rule_of_thirds | 113 | max thirds_h/v/pts | 0.565 [0.510, 0.619] | 0.535 | 0.594 | 0.619 | 0.736 |
| triangle | 48 | max golden triangle | 0.513 [0.428, 0.601] | 0.505 | - | 0.638 | 0.675 |
| symmetric | 54 | - | - | - | - | 0.597 | 0.885 |
| golden_ratio | 39 | max phi_h/v/pts | 0.545 [0.442, 0.644] | 0.556 | - | 0.580 | 0.591 |
| curved | 57 | golden spiral | 0.473 [0.397, 0.546] | 0.510 | - | 0.537 | 0.828 |
| fill_the_frame | 66 | - | - | - | - | 0.710 | 0.848 |
| vanishing_point | 27 | finite VP support | 0.597 [0.491, 0.704] | 0.559 | - | 0.770 | 0.979 |
| pattern | 21 | - | - | - | - | 0.770 | 0.984 |
| radial | 6 | - | - | - | - | 0.704 | 0.930 |
Reading. The dominant-line readings agree with the human-marked lines; permuting the marks across images gives errors four to six times larger.
Images with exactly one annotated horizontal (n = 2117) or vertical (n = 377) segment, all 9,497 images; the dashed line is perfect agreement. Annotation coordinates are in each image's own pixel frame.
Data table for figure 16
| class | images with one mark | median error | within 0.05 | median error, permuted marks |
|---|---|---|---|---|
| horizontal | 2117 | 0.040 | 53% | 0.226 |
| vertical | 377 | 0.069 | 47% | 0.287 |
Reading. The pre-stated rule (at least four of five predicted classes above chance) reads "supports generalisation", but the result is lopsided. The line-coverage readings are strong (horizontal 0.77, vertical 0.63) and agree with the annotators' marks; the thirds and centre scores are barely above chance (0.57, 0.55); the diagonal, golden, spiral and perspective scores are not supported. The Facet-style thirds heuristic (0.59) is above the lens on rule_of_thirds. A fitted DINOv3 probe leads on every class.
8. Fallen ideas and operating windows
| what was tried or expected | what happened | what it taught |
|---|---|---|
| Rank-only template score | It saturated: any strong line or noise bump could reach rank 1, so a flat profile in the other orientation beat the true line (A2). | Score against the null by magnitude (robust z), keep the rank score for choosing within a kind. |
| Raw disc share as point evidence | A line passes through the power points and scored like a point (A1). | Use a blob response: share minus the maximum on a ring around it. |
| Noise as the stress test | Gaussian noise up to 0.05 barely moved any result (A3). | Contrast against distractors is the stressor; compact structures fail first. |
| Top-1 over all templates | A compact object on a power point also makes the line profiles peak; top-1 over all templates is 0.86 at best. | Add the extent reading and choose among templates of the detected kind. |
| Single-shape and perspective templates on real photographs | S-RoT 0.50, S-Cent 0.47, S-Per 0.40 on LockboxB (S-Per significantly below chance). | A point template is not a shape template; vanishing points are everywhere in textured scenes. Operating window: lines and compact points, not shapes or perspective. |
| Facet-style thirds and centre score | 0.50 and 0.46 on the two horizon categories (LockboxB). | A subject-box score ignores a horizon; the lens line readings do not. |
| Blob-distance reading for P-RoT vs P-Cent | AUC 0.83 on LockboxB against 0.93 for a patch-norm probe; blob detection fires on about 30% of images. | The information is in the image; a better compact-object reading is open. |
| 'The reading stays ahead on the horizon pair' | Held on the pool (0.85 against 0.81 at 100 per category) and not on LockboxB (0.78 against 0.82 for an edge grid). | Differences of 0.05 are inside the noise at 40 images per category; the claim is dropped. |
| 'Pooled embeddings discard position' as a general statement | The pooled DINOv3 embedding reached 0.74 on the horizon pair when trained on 138 images per category. | True for the vertical and compact pairs, weaker for horizons. |
| Compact-object and thirds/centre point scores on CADB | CADB test AUC 0.57 for rule_of_thirds and 0.55 for center; the blob location does not track the annotated boxes (median distance 0.28, permuted 0.28). | The compact-object reading works on PICD's centre-versus-power-point pair but is not validated by the annotators' boxes; subject placement needs a better subject detector (a trained saliency model would be labelled as such). |
| Diagonal, golden and perspective scores on CADB | diagonal 0.53, golden_ratio 0.54, triangle 0.51, curved 0.47, vanishing_point 0.60. | No evidence for these templates on real photographs; the synthetic results are not enough. |
| Overlay templates beyond thirds, centre and diagonals | Golden triangle, spiral, phi, fifths and rabatment have no PICD category and no real-photograph test. | Their value is the synthetic identifiability map, not a validated detector. |
9. Limits and threats to validity
- CADB classes are multi-label and imbalanced (centre 4,804 images, radial 42); several classes have few test positives, so their intervals are wide. CADB images come from AADB (Flickr, research use only) and are not shown in this book.
- The first M4 extraction hung and produced nothing; the extraction script was made crash-safe and the spec re-frozen before the rerun (amendment A6). The measurements are unchanged.
- Eleven one-sided predictions were tested without multiplicity correction; the intervals are descriptive. DevA, DevB and LockboxB are all PICD images from the same sources and labelling scheme, so agreement across them is replication within one dataset, not independence of provenance.
- Position tolerance (1.5% of the frame) and the 384-pixel working size are design choices fixed before the tests, not tuned.
- Everything real was measured on one dataset (PICD) whose labels are the dataset's own; the crosswalk from templates to categories was made by name, not validated independently.
- Synthetic tests use drawn strokes and tone splits on smooth backgrounds; they show the engine does what it is defined to do, not that photographs behave that way.
- With 40 images per category on LockboxB, one AUC carries an interval of about +/- 0.1, so claims are about direction and ordering.
- The three position pairs were chosen because they were the pairs that earlier instruments failed on; the pre-stated rules and the confirmation and fresh sets limit tuning, not that selection.
- The DINOv3 probes use one model, whole-frame squashing to the model's input size, and logistic regression with cross-validated strength; other pooling or models could do better.
- The Facet-style comparator is a reimplementation from the public source, not Facet's code, and runs at 384 pixels.
- Thresholds tau_c and tau_b were calibrated on synthetic images; their transfer to photographs is untested except through the pair results, which do not depend on tau_b.
- Fitted comparators (the logistic probes) are fitted layers and are named so; the lens readings and templates are training-free.
10. Reproduction
Commands in the order they were run. Seeds are fixed in every script; the guards refuse a second DevB or LockboxB run or a changed spec.
# 0. catalogue (templates as data, crosswalk by name) python3 -I catalogue/build_catalogue.py # 1. M2: exact synthetic layouts, position templates python3 -I tests/run_recovery.py ; python3 -I tests/analyse_recovery.py # 2. M2b: extent, golden triangle, rabatment, spiral, perspective (calibrate on separate seeds, then test) python3 -I tests/run_m2b.py cal ; python3 -I tests/run_m2b.py test ; python3 -I tests/analyse_m2b.py # 3. M3: PICD pool (read-only images in composition-benchmark/data); design on DevA, freeze, confirm once on DevB python3 -I tests/m3_extract.py devA ; python3 -I tests/m3_analyse.py devA python3 -I tests/m3_freeze.py ; python3 -I tests/m3_extract.py devB ; python3 -I tests/m3_analyse.py devB # devB refuses a second run or a changed spec # 4. M3b: baselines on the three pairs (DINOv3 in an environment with torch and timm, offline) HF_HUB_OFFLINE=1 python tests/m3b_extract_dino.py ; python3 -I tests/m3b_analyse.py # 5. M3c: fresh LockboxB test. The spec was frozen by writing spec_hash() of tests/m3c_extract.py to results/m3c_spec.sha256, then: python3 -I tests/m3c_extract.py ; HF_HUB_OFFLINE=1 python tests/m3c_extract_dino.py ; python3 -I tests/m3c_analyse.py # 6. M4: CADB (download CADB_Dataset.zip from the authors' Dropbox link into data/cadb_zip, unzip into data/cadb); spec frozen as for M3c, then python3 -I tests/m4_extract.py ; HF_HUB_OFFLINE=1 python tests/m4_extract_dino.py ; python3 -I tests/m4_analyse.py # 7. this book python3 -I labbook/make_labbook.py
| environment | python | libraries | used for |
|---|---|---|---|
| system | 3.14.3 | numpy 2.4.2, scipy, opencv 4.13.0, Pillow, scikit-learn 1.8.0 | everything except DINOv3 |
| second environment with torch and timm (the original used a local venv) | 3.14.3 | torch (nightly), timm 1.0.30 | DINOv3 embeddings (offline, cached weights) |
Results manifest (captured when this book was built)
| file | sha256 (first 16) | last modified |
|---|---|---|
results/claims_ledger.json | fa43213a89074ca4 | 20 Nov 2026 18:27 |
results/m2b.json | d4cd881c365e3714 | 20 Nov 2026 11:13 |
results/m2b_calibration.json | 287c930320bb0924 | 20 Nov 2026 11:11 |
results/m3_devA.json | c05d0bdfc73ae581 | 20 Nov 2026 12:01 |
results/m3_devB.json | 127bf93ab8c5b272 | 20 Nov 2026 12:04 |
results/m3_spec.sha256 | 57355f1ef9bfe0a9 | 20 Nov 2026 12:02 |
results/m3b.json | a042ccaec7b20494 | 20 Nov 2026 12:34 |
results/m3b_dino.npz | 843df516550adc13 | 20 Nov 2026 12:33 |
results/m3c.json | 294de7dbebb00287 | 20 Nov 2026 12:52 |
results/m3c_dino_lockboxb.npz | 378e1b689ac9f109 | 20 Nov 2026 12:48 |
results/m3c_spec.sha256 | d2f2e97b9d1c0f62 | 20 Nov 2026 12:47 |
results/m4.json | 266c58415b901114 | 20 Nov 2026 15:20 |
results/m4_dino_cadb.npy | 80927df63ea2b4a6 | 20 Nov 2026 14:36 |
results/m4_spec.sha256 | 2b60cb23185ab3f9 | 20 Nov 2026 14:50 |
results/recovery.json | f0df35c992411e0c | 20 Nov 2026 11:03 |
Source notes: the template vocabulary comes from a tool vendor's overlay list (Grid Maker Pro; unsourced popularity claims, so used as a list of names only). Datasets: PICD (CC BY-NC-SA 4.0 with Terms of Use). Comparators: Facet (analyzers/composition.py, read for the public description), DINOv3 (timm weights, offline). See also the short note.