diff options
| author | Kai Li (李凯) <tsinghua.kaili@gmail.com> | 2026-08-14 15:15:16 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-14 15:15:16 +0800 |
| commit | b17bf536b11fa527cddce5dd6694c4b04a44d3f6 (patch) | |
| tree | 3e17a3facbbb1d9a53bf8e0d2837238745d049ce /README.md | |
| parent | 4f3ff075428b261f43e94b92b081553ee87791ec (diff) | |
| parent | 802f429831f257c7e6295594c39ccfc864cd490f (diff) | |
| download | apollo-gfx803-b17bf536b11fa527cddce5dd6694c4b04a44d3f6.tar.gz | |
Merge pull request #41 from Djshinshin/codex/chunked-inference
Thanks for implementing configurable chunk batching in response to the review feedback.
I reviewed the latest changes, and this now addresses the requested behavior. The validation, bounded-memory design, overlap-add handling, and documentation look good. Keeping `--chunk-batch-size=1` as the default is reasonable given the backend-specific memory and throughput tradeoff.
The 20/20 test suite passes, and the MPS validation results are clearly documented. I have no further changes requested and approve this PR.
Please mark the PR as ready for review. Once it is out of draft, I will merge it.
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -90,7 +90,28 @@ 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 \ + --chunk-batch-size=2 +``` + +`--chunk-batch-size` groups a fixed number of chunks into each model forward +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 +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. |
