Skip to content

Measure the target's detail at the size candidates are rendered at - #95

Merged
rasros merged 1 commit into
mainfrom
fix-detail-resolution
Aug 17, 2026
Merged

Measure the target's detail at the size candidates are rendered at#95
rasros merged 1 commit into
mainfrom
fix-detail-resolution

Conversation

@rasros

@rasros rasros commented Aug 17, 2026

Copy link
Copy Markdown
Owner

The detail objective read the reference at the pixel comparison's scoring resolution (256 long side) and candidates at their render resolution (700), and compressed size grows with pixel count. The same duck image reads 7,607 at 256 and 41,602 at 700 — 5.5x.

So every candidate was charged for the resolution gap rather than for busyness. In the run this was caught on, detail was non-zero on 2410 of 2410 candidates, median 0.943: every candidate read as roughly twice as busy as a target it actually matched. The objective was measuring the wrong thing entirely, and would have pushed the search to strip detail it should have kept.

The reference now comes from original_png_bytes, which is the same size candidates are rasterized at. The resume path already rendered at that size, so it needs no change.

A test pins the property, since the comment asserting it was already there and I wrote the bug under it anyway.

@rasros
rasros merged commit cf31bfb into main Aug 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant