roformer stems: systematic x0.9 output gain (normalization_threshold) + level seam at partial last chunk
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- audio-video-rtc, machine-learning
Hướng nghiên cứu
Start at the roformer inference and output-writing paths, tracing normalization and how chunks are assembled. Reproduce the report with a multi-chunk input and compare the package output with the reference, then check a short single-chunk input as a control. Done means the partial final chunk has no level step and the output normalization behavior is understood and documented or configurable.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Observed behavior (audio-separator 0.48.0, Windows 11 Pro, CUDA 12.8, torch 2.11.0)
With roformer models (checked mel_band_roformer_karaoke_aufr33_viperx_sdr_10.1956.ckpt and the ep317/bs_roformer checkpoint), the package output stems differ from the reference ZFTurbo MSST inference on the same checkpoint, same input in two ways. On an aligned 62.9 s dialogue pair the waveforms track closely (correlation 0.9986, RMS ratio 0.999) — the differences below are in the output stage, not the separation itself.
1. Output peak normalization to ≈0.9
Every roformer stem the package writes for us peaks at ≈0.9 — which matches the package normalization_threshold — topping out at exactly the threshold (0.895–0.904 across a 30-file corpus; quieter stems stay below, min 0.716). The reference implementation output peaks at 1.09 in float (it clips to 1.0 in our PCM16 save). So the package appears to peak-normalize/limit stem outputs to its normalization_threshold where the reference does not. Note this is peak-level behavior, not a uniform gain: aligned RMS matches (0.999).
2. Level step at the partial last chunk
On a 63 s file (chunk 352800 samples @ 44.1 kHz → last chunk partial: 56–63 s), the package stem shows an isolated +31% RMS second at ~59 s (0.063 vs 0.048 reference; neighboring seconds match at 0.99–1.02) — consistent with the assembly of the partial final chunk. Single-chunk (short) inputs match the reference within 0.3% RMS, so the difference is in the multi-chunk assembly path.
Why it matters
The level step is the clearest candidate issue: downstream consumers that sit close to decision boundaries (we feed stems to an AED-based ASR) can flip on borderline passages — we observed a checkpoint where borderline utterances decoded to empty on the package stem but decoded fine on the reference build (deterministic, reproducible). Peak normalization at 0.9 is mostly cosmetic for listeners, but worth documenting/exposing since it makes package stems subtly non-interchangeable with reference outputs.
Environment
- audio-separator 0.48.0 (runtime self-reports 0.48.0; our venv also carries 0.47.1 pip metadata from an interrupted update — wheel diff between the two tags does not touch roformer inference)
rotary-embedding-torch==0.6.5(the pinned range respected)- torch 2.11.0+cu128, fp32 inference (
use_autocast=False), Python 3.12, Windows 11 Pro
Reproduction
Run any roformer model on a dialogue/music mix ≥ 2 chunks long; compare the written stem against ZFTurbo MSST inference of the same checkpoint: peaks cap at ≈0.9 vs reference float peaks, and a one-second level step appears around the partial-last-chunk boundary (~93% of file length).
Suggestion
- Expose (or document) the output peak normalization applied to roformer stems so consumers can disable or match it;
- Normalize overlap-add across the partial last chunk so no level step is introduced at the seam.
Happy to provide exact WAV pairs if useful.
— Filed by GLM (AI assistant) on behalf of the reporter.
- Ngôn ngữ chính
- Python
- Star
- 1.5k
- Fork
- 216
- Merge trung bình
- 1 giờ
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nomadkaraoke/python-audio-separator
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
nomadkaraoke/python-audio-separator#292 · 2 bình luận ·
-
Confusing info in READMECó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
nomadkaraoke/python-audio-separator#246 · 1 bình luận ·
-
[Bug]: MDX models: vocals scaled down by the input's peak when the input peak is below normalization_threshold , leaving voice in the instrumental stemCó thể đã có người làm @Rahul-cs50 đã nhận 24 ngày trước. Đang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
Tất cả issue của nomadkaraoke/python-audio-separator
Issue tương tự
-
enhancement good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
jirikuncar/sqlty#1454 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
approved-direction help wanted kind/bug stage/010-actionable triage/accepted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
projectbluefin/testsuite#1329 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Tests: tests/mcp/server.test.ts fails on Windows when Microsoft Store python3 alias is presentĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày