Record the three lane-opusmode gate arms and their verdicts
Browse files at this commit325c499ca9dcce7acf57d5fd3b9d979518dda167Parent: 0216345- docs
- record the three lane-opusmode gate arms and their verdicts
4 changed files +13 -1
- crates/ec-opus/src/celt_enc.rs +10 -1
- lanes/opus-opusmode-r1.sweep.txt +1 -0
- lanes/opus-opusmode-r2.sweep.txt +1 -0
- lanes/opus-opusmode-r3.sweep.txt +1 -0
crates/ec-opus/src/celt_enc.rsmodified+10 -1
| @@ -83,6 +83,9 @@ fn tf_boost_params() -> (f32, f32, bool, f32) { | |||
| 83 | /// | 1.3 trim + tonality term (`-r1`) | nik@64 .708→.647, reelo@64 1.510→1.071, reelo@96 .940→.898, reell@96 4.499→2.458, dl8a .552/.374→.512/.336 | nik@96 .985→1.006, her@64 1.103→1.109, her@96 1.051→1.085, reell@64 2.697→2.872 | | 83 | /// | 1.3 trim + tonality term (`-r1`) | nik@64 .708→.647, reelo@64 1.510→1.071, reelo@96 .940→.898, reell@96 4.499→2.458, dl8a .552/.374→.512/.336 | nik@96 .985→1.006, her@64 1.103→1.109, her@96 1.051→1.085, reell@64 2.697→2.872 | |
| 84 | /// | vbr tonality + activity (`-r2`) | hein@64 .853→.327, hein@96 .528→.426, nik@64 →.672, dl8a@64 →.541 | nik@96 →1.061, reelo@96 →1.165, her@64 →1.104, her@96 →1.060, dl8a@96 →.414 | | 84 | /// | vbr tonality + activity (`-r2`) | hein@64 .853→.327, hein@96 .528→.426, nik@64 →.672, dl8a@64 →.541 | nik@96 →1.061, reelo@96 →1.165, her@64 →1.104, her@96 →1.060, dl8a@96 →.414 | |
| 85 | /// | vbr activity alone (`-r3`) | hein@64 →.430, hein@96 →.408, nik@64 →.657, dl8a@64 →.511 | nik@96 →.990, her@64 →1.104, her@96 →1.071, dl8a@96 →.382 | | 85 | /// | vbr activity alone (`-r3`) | hein@64 →.430, hein@96 →.408, nik@64 →.657, dl8a@64 →.511 | nik@96 →.990, her@64 →1.104, her@96 →1.071, dl8a@96 →.382 | |
| 86 | +/// | `EC_OPUS_BW_DETECT` (`opusmode -r1`) | -- | -- (byte-identical: `analysis.bandwidth` is 20 on every valid frame of every gate source, so the clamp never fires) | | ||
| 87 | +/// | `EC_OPUS_LEAK` (`opusmode -r2`) | -- | nik@64 .708→.709, nik@96 .985→.986, her@96 1.051→1.052 (the rest identical) | | ||
| 88 | +/// | `EC_OPUS_BW_DETECT` + `EC_OPUS_VBR_ACT` + `EC_OPUS_TF_K=1.25` (`opusmode -r3`) | reell@96 4.499→2.516, reell@64 2.697→1.440, hein@64 .853→.470, hein@96 .528→.404, dl8a@96 .374→.315, dl8a@64 →.535, nik@64 →.651, **nik@96 .985→.957**, reelo@96 →.928, reelo@64 →1.509 | her@96 1.051→1.071, her@64 1.103→1.104 | | ||
| 86 | /// | all four + `EC_OPUS_ALIGN=1` (`-r4`) | reell@64 →1.865, reell@96 →3.986, reelo@64 →1.123, reelo@96 →.891, her@64 →.952 | nik@64 →1.014, nik@96 →1.842, her@96 →1.217, dl8a →1.162/.988, hein →.971/1.514 | | 89 | /// | all four + `EC_OPUS_ALIGN=1` (`-r4`) | reell@64 →1.865, reell@96 →3.986, reelo@64 →1.123, reelo@96 →.891, her@64 →.952 | nik@64 →1.014, nik@96 →1.842, her@96 →1.217, dl8a →1.162/.988, hein →.971/1.514 | |
| 87 | /// | 90 | /// |
| 88 | /// `corr_ours` is never worse by more than .0005 on any unaligned arm (it is | 91 | /// `corr_ours` is never worse by more than .0005 on any unaligned arm (it is |
| @@ -93,7 +96,13 @@ fn tf_boost_params() -> (f32, f32, bool, f32) { | |||
| 93 | /// discrete-ladder arm was run. The activity cut is the nearest miss ever | 96 | /// discrete-ladder arm was run. The activity cut is the nearest miss ever |
| 94 | /// measured on this gate for a speech source (hein halves) and is blocked by | 97 | /// measured on this gate for a speech source (hein halves) and is blocked by |
| 95 | /// her@96 +.020 and nik@96 +.005 -- the same two rows that have blocked the | 98 | /// her@96 +.020 and nik@96 +.005 -- the same two rows that have blocked the |
| 96 | -/// tf boost. Aligned, the analysis moves reell/reelo/her@64 a long way but leaves | 99 | +/// The combined arm (`opusmode -r3`) is the first arm ever measured on this |
| 100 | +/// gate that moves a blocking row the right way: nik@96 .985→.957. It is | ||
| 101 | +/// **rejected by the per-row KEEP rule** (her@96 +.020, her@64 +.001) and | ||
| 102 | +/// **passes the aggregate rule** (geometric-mean err_ratio 1.0218→0.8378, | ||
| 103 | +/// -18.0%; worst row her@96 +1.9%, under the 5% bound; `corr_ours` within | ||
| 104 | +/// .0001 on every row). Which rule ships is the user's call; the default is | ||
| 105 | +/// off either way. Aligned, the analysis moves reell/reelo/her@64 a long way but leaves | ||
| 97 | /// the aligned blocking set (nik, her@96, dl8a, hein) exactly where the | 106 | /// the aligned blocking set (nik, her@96, dl8a, hein) exactly where the |
| 98 | /// analysis-free aligned arms left it, so the alignment default stays off. | 107 | /// analysis-free aligned arms left it, so the alignment default stays off. |
| 99 | pub(crate) fn analysis_params() -> (bool, bool, bool, bool, bool, bool) { | 108 | pub(crate) fn analysis_params() -> (bool, bool, bool, bool, bool, bool) { |
lanes/opus-opusmode-r1.sweep.txtmodified+1 -0
| @@ -1,3 +1,4 @@ | |||
| 1 | +# lane-opusmode r1: EC_OPUS_BW_DETECT=1 (detected-bandwidth clamp) -- byte-identical to shipped | ||
| 1 | # ec-opus encoder vs ffmpeg libopus — encoders-only gate (r1) | 2 | # ec-opus encoder vs ffmpeg libopus — encoders-only gate (r1) |
| 2 | # both bitstreams decoded by ec-opus; 120s cap; VBR; 48kHz stereo | 3 | # both bitstreams decoded by ec-opus; 120s cap; VBR; 48kHz stereo |
| 3 | # source kbps ours_kbps ref_kbps rate% corr_ours corr_ref gap Q_ours Q_ref err_ratio minsec_ours minsec_ref drop_ours drop_ref | 4 | # source kbps ours_kbps ref_kbps rate% corr_ours corr_ref gap Q_ours Q_ref err_ratio minsec_ours minsec_ref drop_ours drop_ref |
lanes/opus-opusmode-r2.sweep.txtmodified+1 -0
| @@ -1,3 +1,4 @@ | |||
| 1 | +# lane-opusmode r2: EC_OPUS_LEAK=1 (dynalloc leak_boost) | ||
| 1 | # ec-opus encoder vs ffmpeg libopus — encoders-only gate (r1) | 2 | # ec-opus encoder vs ffmpeg libopus — encoders-only gate (r1) |
| 2 | # both bitstreams decoded by ec-opus; 120s cap; VBR; 48kHz stereo | 3 | # both bitstreams decoded by ec-opus; 120s cap; VBR; 48kHz stereo |
| 3 | # source kbps ours_kbps ref_kbps rate% corr_ours corr_ref gap Q_ours Q_ref err_ratio minsec_ours minsec_ref drop_ours drop_ref | 4 | # source kbps ours_kbps ref_kbps rate% corr_ours corr_ref gap Q_ours Q_ref err_ratio minsec_ours minsec_ref drop_ours drop_ref |
lanes/opus-opusmode-r3.sweep.txtmodified+1 -0
| @@ -1,3 +1,4 @@ | |||
| 1 | +# lane-opusmode r3: EC_OPUS_BW_DETECT=1 EC_OPUS_VBR_ACT=1 EC_OPUS_TF_K=1.25 (combined arm) | ||
| 1 | # ec-opus encoder vs ffmpeg libopus — encoders-only gate (r1) | 2 | # ec-opus encoder vs ffmpeg libopus — encoders-only gate (r1) |
| 2 | # both bitstreams decoded by ec-opus; 120s cap; VBR; 48kHz stereo | 3 | # both bitstreams decoded by ec-opus; 120s cap; VBR; 48kHz stereo |
| 3 | # source kbps ours_kbps ref_kbps rate% corr_ours corr_ref gap Q_ours Q_ref err_ratio minsec_ours minsec_ref drop_ours drop_ref | 4 | # source kbps ours_kbps ref_kbps rate% corr_ours corr_ref gap Q_ours Q_ref err_ratio minsec_ours minsec_ref drop_ours drop_ref |