Skip to content

A finding against the upscaler's history takes two and a half standard errors - #299

Merged
wryyx merged 2 commits into
meshy-dev:mainfrom
wryyx:upscaler-thresholds
Dec 1, 2026
Merged

wryyx merged 2 commits into
meshy-dev:mainfrom
wryyx:upscaler-thresholds

Conversation

@wryyx

@wryyx wryyx commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

reject counts the mean distance of the samples around a traced pixel as a finding against the upscaler's history from 2.5 of its own standard errors, in full from 5 (UP_FINDING, UP_CERTAIN; 2 and 4 before). Two constants; the kernel's note and a roadmap entry carry the measurements.

Why

The lower pair was chosen as the highest at which what a moving object leaves behind was no worse, on clips whose cameras hardly move (one drifts half a metre a second without turning, the others stand). Under a camera that moves as a player's does the picture was measured apart (all figures: Apple M4, half resolution):

  • Not the samples. bench-ghosting --quick, mean ΔE against the converged frame of each pose: settled 0.72, mid-turn 2.04, mid-strafe 2.45, as the camera stops 2.54. With every sampled signal sixteen times over: 0.33, 1.49, 1.72, 2.06. What a move adds over the settled frame hardly changes; in motion the error is the reconstruction's.
  • Which rule. Two scenes recorded in lockstep at 60 frames a second while the camera plays that bench's moves; the change of the picture's 4 × 4 block means from a frame to the next over the six frames after a move ends. A moving pixel's longer history (UP_MOVING 16), a longer one while the lighting changes (UP_LIVE 16) and no clamp of a moving pixel's history each change it by 0 to 8 %. reject's thresholds do:
the six frames after 2 and 4 2.5 and 5 3 and 6 MetalFX's upscaler, same denoised frames
Bistro at night: the turn 0.63 0.43 0.34 0.38
the strafe 0.92 0.63 0.51 0.48
the stop from 8 m/s 1.00 0.67 0.49 0.44
before any move 0.18 0.13 0.12 0.30
a hall of 551 moving parts: the turn 1.95 1.52 1.29 1.13
the strafe 2.78 2.25 1.94 1.88
the stop 2.38 1.96 1.73 2.16
the camera still 1.65 1.41 1.28 1.22

What it costs

  • Moving objects (bench-object-ghosting, sixteen moments): 3 to 12 % more mean ΔE (5.9 % in the mean); trails as long to within five pixels but for a thrown lamp's as it stops (259 → 275 px). At 3 and 6 it would be 6 to 22 % (11.2 %) and that lamp's trail a tenth of a second after its stop 95 px for 64, which is why this stops at 2.5 and 5.
  • A light that changes slowly and everywhere is found later: a city through an afternoon in ten seconds reads ΔE 1.91 → 2.04 against offline.
  • Detail: against offline renders of nine moments of the hall's moves, ΔE within 0.05 and 1 to 5 % less of their detail; over twelve clips 0 to 0.012 less.

Validation

  • Twelve clips against offline: ΔE as before or nearer on nine, the city above 1.91 → 2.04, a garden in wind 0.79 → 0.80. Whole pixels' change from a frame to the next: a night street with its crowd 1.57 → 1.23, a house at golden hour 1.61 → 1.26, the hall 1.63 → 1.49, a gallery 0.24 → 0.21. Frame time from 0.8 % less to 0.4 % more.
  • bench-ghosting --quick --check passes (after the stop 1.34 → 1.40). bench-temporal --shot edit: the same frames to settle on every row.
  • Unit suite 292 pass; render suite 273 of 273; npm test 324 pass, 1 skipped.

Not done

MetalFX's upscaler is as steady as 3 and 6 would make this one, without what they cost and with more of the detail: the difference is in what the judging can tell apart, not in where its threshold stands. The roadmap entry also records what the three reconstruction methods do under motion against offline, and that at a cut into a view whose lights have just dropped every method's first frames are too bright (before reconstruction; not looked into). The recordings and their measures were made outside the repository. Not checked on Vulkan, nor in a browser.

🤖 Generated with Claude Code

wryyx and others added 2 commits December 1, 2026 00:45
…d errors

`reject` counts the mean distance of the samples around a traced pixel as a
finding against the history from 2.5 of its own standard errors, in full from 5
(2 and 4 before). The lower pair was the highest at which what a moving object
leaves behind was no worse; it was chosen on clips whose cameras hardly move.
While the camera moves, and in the frames after it stops, the picture's 4 x 4
block means change 19 to 33 % less from frame to frame with the higher pair, for
3 to 12 % more of what a moving object leaves behind (measured on an Apple M4;
the kernel's note has the figures).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The roadmap entry for the upscaler's thresholds at 2.5 and 5: what was measured
while the camera moves (the camera-motion bench with the samples sixteen times
over, two scenes recorded under three reconstruction methods, their frames
against offline renders of the same instants), which of the upscaler's rules the
flicker after a move comes from, and what the higher thresholds cost on moving
objects and on a light that changes slowly. Measured on an Apple M4.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@wryyx
wryyx merged commit c8fc98f into meshy-dev:main Dec 1, 2026
8 checks passed
@wryyx
wryyx deleted the upscaler-thresholds branch December 1, 2026 07:18
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