forge
Explore
Log in

Don't you dare go Hollow

Lane-rdoq report -- lambda sweep bowl, deadzone re-sweep, preset gate

Browse files at this commit

5b2bdcec577e79cc44efe4b0847a57ee5284ab4dAhmet Kaan GümüşParent: 4e24be3
  • docs
    • lane-rdoq report -- lambda sweep bowl, deadzone re-sweep, preset gate
Show full message
docs(av1): lane-rdoq report -- lambda sweep bowl, deadzone re-sweep, preset gate
lanes/rdoq-inv.logadded+23 -0
@@ -0,0 +1,23 @@
1+
2+running 1 test
3+test encoder::tests::tile_bytes_do_not_depend_on_the_thread_count ... ok
4+
5+test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 603 filtered out; finished in 10.31s
6+
7+
8+running 1 test
9+test encoder::tests::the_facade_codes_the_same_bytes_as_encode_sequence ... ok
10+
11+test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 603 filtered out; finished in 20.42s
12+
13+
14+running 1 test
15+speed 0: 32947 bytes []
16+speed 3: 30559 bytes [no 8x8 split, no warp, no angle delta, no CfL, no filter intra, no loop restoration, chroma top-3, no tpl]
17+speed 6: 35858 bytes [no 8x8 split, no extra-reference NEWMV, no warp, no inter var-tx/tx-depth, no 32x32 tx depth, no compound var-tx, no angle delta, no CfL, no filter intra, no loop restoration, split-RD breakout 0.5, coeff breakout 1, intra top-4, inter-intra top-2, chroma top-2, no tpl]
18+speed 10: 106649 bytes [no 8x8 split, no 32x32 split (32x32-only partitions), no leaf second-reference search, no extra-reference NEWMV, no leaf compound, no compound, no warp, no inter var-tx/tx-depth, no 32x32 tx depth, no compound var-tx, no key tx-depth, no angle delta, no CfL, no filter intra, no loop restoration, no deblock refine, no chroma deblock stage, split-RD breakout 4, coeff breakout 4, intra top-1, inter-intra top-1, chroma top-1, no tpl, no CDEF search, CDEF presets 0]
19+test encoder::tests::every_speed_preset_decodes_sample_exact_through_both_decoders ... ok
20+
21+test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 603 filtered out; finished in 18.43s
22+
23+RC=0
lanes/rdoq-lgctl.logadded+6 -0
@@ -0,0 +1,6 @@
1+
2+running 1 test
3+test encode::tests::bd_rate_film_long_gop ...
4+native crop, 48 frames, gop=48; tiles (0, 0), tile threads 1, intrabc false, palette maxcolors 128
5+| clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e (noisy) |
6+|---|---|---|---|---|
lanes/rdoq-lgship.logadded+6 -0
@@ -0,0 +1,6 @@
1+
2+running 1 test
3+test encode::tests::bd_rate_film_long_gop ...
4+native crop, 48 frames, gop=48; tiles (0, 0), tile threads 1, intrabc false, palette maxcolors 128
5+| clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e (noisy) |
6+|---|---|---|---|---|
lanes/rdoq.report.mdmodified+60 -10
@@ -55,16 +55,66 @@ and a block spends at most 24 prices, taken from the tail backwards
5555
5656 ## 12-frame `bd_rate_screen_native` (1920-wide crops, 4 quantizers, vs libaom cpu-used 6 / rav1e speed 6)
5757
58-| row | control (`EC_AV1_RDOQ=0`) | RDOQ, lambda x1.0 | lambda x0.7 |
59-|---|---|---|---|
60-| bars 1080p | +2.2 / -14.0 | -0.4 / -16.3 | +0.1 / -15.9 |
61-| bars 2160p | +12.7 / -9.8 | +10.5 / -11.7 | +10.9 / -11.4 |
62-| film A | +37.1 / +7.3 | **+26.3 / -0.5** | +27.6 / +0.3 |
63-| film B | +52.5 / +22.3 | **+37.5 / +9.7** | +39.5 / +11.6 |
64-| screen | +33.4 / -23.8 | **+29.1 / -25.7** | +29.6 / -25.5 |
58+| row | control (`EC_AV1_RDOQ=0`) | SHIPPED (lambda x2.2) |
59+|---|---|---|
60+| bars 1080p | +2.2 / -14.0 | -0.9 / -16.7 |
61+| bars 2160p | +12.7 / -9.8 | +9.3 / -12.8 |
62+| film A | +37.1 / +7.3 | **+24.4 / -1.8** |
63+| film B | +52.5 / +22.3 | **+35.5 / +7.6** |
64+| screen | +33.4 / -23.8 | **+28.1 / -25.7** |
6565
6666 The control row-for-row reproduces the charter's numbers on this head, so the
6767 baseline is not stale. The keep rule (both film rows down on both columns,
68-screen not worse by 0.3) passes with room: film A -10.8 / -7.8, film B
69--15.0 / -12.6, and the screen capture comes DOWN on both columns too.
70-lambda x0.7 is worse than x1.0 on every row.
68+screen not worse by 0.3) passes with room: film A -12.7 / -9.1, film B
69+-17.0 / -14.7, and the screen capture comes DOWN on both columns too.
70+
71+### The rate-term sweep (`EC_AV1_RDOQ_LAMBDA`, BD vs libaom / vs rav1e)
72+
73+| x | film A | film B | screen |
74+|---|---|---|---|
75+| 0.7 | +27.6 / +0.3 | +39.5 / +11.6 | +29.6 / -25.5 |
76+| 1.0 | +26.3 / -0.5 | +37.5 / +9.7 | +29.1 / -25.7 |
77+| 1.3 | +25.6 / -0.9 | +37.0 / +9.3 | +28.8 / -25.8 |
78+| 1.6 | +24.6 / -1.6 | +35.9 / +8.2 | +28.7 / -25.7 |
79+| **2.2** | **+24.4 / -1.8** | **+35.5 / +7.6** | **+28.1 / -25.7** |
80+| 3.2 | +24.7 / -1.5 | +36.1 / +7.6 | +29.4 / -25.0 |
81+
82+One bowl, at the same multiplier on all three rows, and it is a factor of TWO
83+above the weight the mode search prices the same bits at. The likeliest cause
84+is named in `rdoq_lambda`'s doc comment: the price is taken against tables
85+that have not adapted yet, which over-states what a coefficient really costs,
86+and this is the one decision taken per coefficient.
87+
88+### The deadzone, re-swept WITH the pass (`EC_AV1_DEADZONE`, at lambda x1.0)
89+
90+| deadzone | film A | film B | screen |
91+|---|---|---|---|
92+| 0.42 | +48.1 / +20.7 | +55.7 / +23.8 | +29.0 / -25.6 |
93+| **0.5 (shipped)** | **+26.3 / -0.5** | **+37.5 / +9.7** | **+29.1 / -25.7** |
94+| 0.6 | +49.3 / +21.5 | +58.4 / +26.6 | +31.4 / -24.8 |
95+
96+It was fitted without the pass and it survives it: both neighbours are 20+
97+points worse on both films. Rounding to nearest and letting the RD pass do
98+every zeroing is strictly better than a quantiser that guesses at it, in
99+either direction. 0.35 was NOT run: 0.42 is already 22 points the wrong way
100+and the arm below it can only be further out (deferred, one gate arm).
101+
102+## Preset gate (`crate::speed::RDOQ`)
103+
104+| row | preset 0 off | preset 0 on | preset 6 off | preset 6 on |
105+|---|---|---|---|---|
106+| film A | +37.1 / +7.3 (77s) | +24.4 / -1.8 (138s) | +46.0 / +14.5 (32s) | +30.4 / +2.9 (60s) |
107+| film B | +52.5 / +22.3 (78s) | +35.5 / +7.6 (130s) | +67.8 / +35.0 (30s) | +43.5 / +14.2 (51s) |
108+| screen | +33.4 / -23.8 (45s) | +28.1 / -25.7 (79s) | +40.3 / -20.0 (15s) | +34.9 / -22.0 (34s) |
109+
110+About 2x wall, and it pays at both ends of the measured range. It also
111+DOMINATES the ladder: preset 6 with the pass beats preset 0 without it on
112+every row and both columns, at less wall. So the lever is on from preset 0 to
113+6; 7..=10 are the real-time rungs, are unmeasured here, and keep the cheaper
114+choice (`EC_AV1_RDOQ=1` turns it on there).
115+
116+Wall caveat: every number above is one gate row with a second gate arm running
117+beside it on the same box (the lane runs two arms in parallel), which is what
118+the gate's own "noisy" label means. Best-of the five preset-0 RDOQ arms
119+(lambda 1.0/1.3/1.6/2.2/3.2, all the same work) is film A 131.7s, film B
120+118.6s, screen 78.5s against the control's 77.1 / 78.1 / 45.1s -- 1.7-1.8x.