From 99b31871fba0e86bad72137ac7601f5085d8e4a7 Mon Sep 17 00:00:00 2001 From: Zakaria Zbitou Date: Wed, 19 Aug 2026 02:21:00 +0200 Subject: Pad chunk inference and discard the model's degraded edges --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 829dc5d..2cc6ece 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,7 @@ python inference.py \ --device=auto \ --chunk-seconds=6 \ --overlap-seconds=1 \ + --chunk-pad-seconds=1 \ --chunk-batch-size=2 ``` @@ -109,7 +110,10 @@ python inference.py \ pass. Its default is `1` for minimum accelerator memory; larger values may improve throughput on some devices but use more memory and should be measured on the target backend. Normalized linear crossfades preserve the input frame -count, and the overlap must be no more than half the chunk duration. Chunking +count, and the overlap must be no more than half the chunk duration. +`--chunk-pad-seconds` infers each chunk with that much surrounding audio per +side and discards it from the output; with its default of `0` the listener may +hear artifacts at the chunk seams. Chunking can change the result relative to full-file inference because the model sees less context, so important material should still receive a listening check. See [Apple Silicon macOS notes](MACOS_ARM64.md) for a tested MPS setup and current -- cgit v1.2.3