Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 16 additions & 7 deletions content/en/upscale.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,17 @@ the compiler fuses multiply-adds. The vector rows (below) are tested against the
under the same bound.

v0.25.0 makes the oracle public (`upscale/fsrref`) and measures against it: the worst error is
5.7e-6 on the oracle corpus, on the CPU and on both GPU back ends. On noise of at most 3 levels
of 255, 0.9 % of samples are outside `ErrorBound`, by up to 4.7e-3 (`TestOracleLowContrast`);
the cause is not established.
5.7e-6 on the oracle corpus, on the CPU and on both GPU back ends.

`ErrorBound` is not a bound on every input. EASU measures an edge as
`|d-b| / max(|d-c|, |c-b|)` on the lumas of three neighbours, which is 0/0 where different
colours share a luma; the reference defines no answer there and each precision answers with its
rounding noise. On noise of at most 3 levels of 255, 3.6 % of samples have such a neighbourhood
and 0.9 % are outside `ErrorBound`, by up to 4.7e-3. This is present since v0.21.0, on the scalar
and vector CPU paths and on Metal alike, and is not an arithmetic defect. v0.25.1 states the
contract: `ErrorBound` on every sample whose analysis is well conditioned (1.13 million measured,
worst 3.4e-5), and `ErrorBound` plus the range of the four nearest source colours on any sample
(`TestOracleLowContrast`).

## Quality {#quality}

Expand Down Expand Up @@ -96,11 +104,12 @@ Sample positions are now computed in integers (`fsrref.Phase`), which costs 10 %
(26.2 ms before it) for a reason not established; output pixels at positions that were on an
integer in float differ from v0.24.0.

### GPU, not released yet {#gpu}
### GPU {#gpu}

A Vulkan compute path (module `upscale/gpu`, branch `upscale-gpu`) is not released yet and is
measured on a branch only: 5.77 to 5.87 ms per frame on a RADV NAVI32 including upload and
readback, about 2.0 ms for the dispatch alone. Metal was checked for correctness only, not timed.
A GPU compute path (Vulkan and Metal; module `upscale/gpu`) is released as `upscale/gpu/v0.1.0`
(go-avkit/avkit#151). On Vulkan it measured 5.77 to 5.87 ms per frame on a RADV NAVI32 including
upload and readback, about 2.0 ms for the dispatch alone. Metal was checked for correctness only,
not timed.

Today `upscale` suits stills, offline work and small frames on one core, and 60 Hz 1080p only
with many workers.
Expand Down
Loading