From e121224ba49630846e3a4dcbdfdccb74d637842d Mon Sep 17 00:00:00 2001 From: Djshinshin <129614060+Djshinshin@users.noreply.github.com> Date: Thu, 13 Aug 2026 23:57:35 +0800 Subject: Add device-agnostic inference support --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 371b9f4..9e3cb02 100644 --- a/README.md +++ b/README.md @@ -76,9 +76,18 @@ python train.py --conf_dir=configs/apollo.yml To evaluate the Apollo model, run the following command: ```bash -python inference.py --in_wav=assets/input.wav --out_wav=assets/output.wav +python inference.py \ + --in_wav=asserts/input_wav.wav \ + --out_wav=output.wav \ + --device=auto ``` +`--device=auto` prefers CUDA, then Apple Silicon MPS, and finally CPU. Use +`--checkpoint=/path/to/pytorch_model.bin` for an existing local checkpoint; +otherwise the official `JusperLee/Apollo` checkpoint is downloaded from +Hugging Face. See [Apple Silicon macOS notes](MACOS_ARM64.md) for a tested MPS +setup and current limitations. + ## 📊 Results *Here, you can include a brief overview of the performance metrics or results that Apollo achieves using different bitrates* -- cgit v1.2.3