Spaces:
Running on Zero
Running on Zero
Commit History
7 days ago
-
test: a dark black-and-white night and a soft snowfall scene get no note from the picture check
Unverified signatureThe labelled set grew to 42 outputs (27 good). No good file fires a condition. Two of the new ones are hard negatives, now kept as fixtures with tests that they yield no note: - A low-key black-and-white night (true blacks, dim highlights, no colour). It passes two of veiled's three tests (p99 66.7 < 135, colourfulness 0.7 < 20) and is kept out by its blacks: p1 1.0 against 40. It is also now the worst good file for flat: luma std 14.9 against 6, 2.49x clear. - A cabin in heavy snowfall at dusk, soft by content. It fails all three veiled tests and sits 2.01x clear of static. veiled needs both ends of the range pulled toward grey, and no good file has both. The three good files with lifted blacks all keep highlights of at least 176.8 (the overcast beach, 1.31x above 135). The one good file with dim highlights has p1 1.0. The pinned numbers in the test now say that, and the provenance comment in outputs.py gives the 42-file counts. No threshold moves.0b00a5b -
fix: the picture check names flat, veiled and static pictures from measurements on real outputs, at one size, and tells the user as a hint
Unverified signatureThe old check gated on two ratios (8x8 structure ratio < 0.70 AND high-frequency ratio > 1.0) placed between two populations that were both garbage: colour static from the broken Space build and flat grey. On a labelled set of 38 real outputs (23 good, 3 flat grey, 9 veiled, 3 colour static, every one looked at), it let all of the colour static through. It said nothing about any veiled picture. Its ratios also changed with resolution: the operator's grey fails at 512x960 and passes once resized to 256 px. Its message quoted the garbage ranges as "real renders". assess_picture() resizes up to 16 evenly spaced frames to one analysis size (long side 256 px, area-averaged; numpy only), takes medians, and names at most one of three conditions: - flat (no picture): luma std < 6. Worst grey 4.3, worst good 22.0. - veiled (a picture under a grey veil, which pulls both ends of the tonal range toward grey): luma p1 >= 40 AND luma p99 < 135 AND Hasler-Susstrunk colourfulness < 20. Veiled fr…752b18e