Conversation
Signed-off-by: wj <126436871+WenJing95@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. 📝 SummarySummaryWhisper mel preprocessing now matches reference boundary behavior.
Architecture impact
Review outcomeHUMAN REVIEW REQUIRED The supplied evidence reports passing native reference tests and source-quality checks. Review severity counts are unavailable. TensorRT and full-suite compatibility remain unverified. WalkthroughThe Whisper mel-spectrogram code now reflects audio edges during center padding and removes the final frame before normalization. A standalone C++ test validates output shapes, values, and edge cases for 80- and 128-mel configurations. ChangesWhisper mel-spectrogram
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~15 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The mel preprocessing change includes coverage for the changed padding, frame-trimming, and normalization behavior. No actionable merge risk remains. 🚥 Pre-merge checks | ✅ 8 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (8 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 30.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 10 functions across 2 files. (1 skipped: 1 unsupported.) Comment |
|
Hi @WenJing95 thanks for the contribution. The general direction looks good on this PR. Let me know once you think it is ready to be reviewed and run the internal CI on it. Then we can bring it out of draft mode |
|
Ready for review and internal CI. Thanks! |
Background
Nonzero audio edges produced different Whisper mel features because STFT used zero padding. The discarded final frame could also change the log floor.
Exit Criteria
Match reference features at chunk boundaries.
Implementation
Reflect both ends of the waveform and remove the last frame before normalization.
Change categories
Validation
Commands and Results
Native reference goldens passed at 80/128 mels; source-quality: 164 passed.
Hardware, Environment, and Revisions
8a95b0e: Ubuntu CPU, GCC 13.3; Transformers 5.2.0 reference.Not Run / Remaining Gaps
TensorRT inference and full CMake suite: TensorRT environment unavailable.
Contributor Self-Review
Notes For Future Readers
Reflect after padding/truncating to 30 seconds so short clips keep their zero-padded tail.
Risk level
Changes are confined to Whisper's center padding and log normalization.