aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorDjshinshin <129614060+Djshinshin@users.noreply.github.com>2026-08-14 14:46:38 +0800
committerDjshinshin <129614060+Djshinshin@users.noreply.github.com>2026-08-14 14:46:38 +0800
commit0a91c5fe084bb4643410c52f72a12001871f8ec6 (patch)
tree05f925fb1d6d2888a7b880238c21bdd0bbe169b7 /README.md
parentbe0a056079414683d1e1b89d136415882c82acb8 (diff)
downloadapollo-gfx803-0a91c5fe084bb4643410c52f72a12001871f8ec6.tar.gz
Add chunked inference for long audio
Diffstat (limited to 'README.md')
-rw-r--r--README.md20
1 files changed, 19 insertions, 1 deletions
diff --git a/README.md b/README.md
index f0a2181..c1ab71d 100644
--- a/README.md
+++ b/README.md
@@ -86,7 +86,25 @@ python inference.py \
default downloads the official `JusperLee/Apollo` checkpoint from Hugging Face.
For a custom checkpoint, `--checkpoint` accepts only an existing local file;
arbitrary remote repositories are rejected because the upstream checkpoint
-loader deserializes the file with PyTorch. See
+loader deserializes the file with PyTorch.
+
+Full-file inference remains the default. For long audio, enable bounded-memory
+inference explicitly:
+
+```bash
+python inference.py \
+ --in_wav=long_input.wav \
+ --out_wav=long_output.wav \
+ --device=auto \
+ --chunk-seconds=6 \
+ --overlap-seconds=1
+```
+
+Chunked inference processes one segment on the selected device at a time and
+uses normalized linear crossfades. The overlap must be no more than half the
+chunk duration, and the output keeps the input frame count. 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
limitations.