A collection of optimized Deep Neural Network (DNN) models for Audio Tasks on TI EdgeAI processors. Models are converted from PyTorch and TensorFlow into embedded-friendly formats optimized for TI SoCs.
Notice: The models in this repository are being made available for experimentation and development - they are not meant for deployment in production.
- Processor: AM62D
- SDK Version: AM62D Processor SDK Linux 12.2
- TIDL Version: 12_00_00_03
The required versions are declared in VERSION (SDK_VER, TVM_VER, TIDL_VER). setup_venv.sh, the inference scripts and benchmarks/benchmark.py compare them with the target, using TISDK_VERSION from /etc/os-release and the installed ti_tvm_am62x package. A mismatch prints a WARNING but doesn't stop the scripts. Run the check on its own with python3 inference/sdk_check.py.
- AM62D Processor SDK Linux documentation: the SDK the demos run on. The compiled artifacts only run with the SDK version given in VERSION.
- TVM + TIDL User's Guide: the deep learning compiler and runtime used to offload the models to the C7x DSP.
- AM62D EdgeAI documentation: the Edge AI developer's guide for the AM62D, including a dedicated EdgeAI Model Zoo section on this audio AI model zoo.
- AUDIO-AM62D-EVM: the AM62D evaluation module the demos and benchmarks run on.
- edgeai-tidlrunner: compiles the model artifacts and evaluates their accuracy on the reference datasets.
On the Linux command line on the AM62D target
mkdir -p ~/tidl && cd ~/tidl
git clone https://github.com/TexasInstruments/audioai-modelzoo.git
cd audioai-modelzooThe notebooks run directly on the target rootfs in a Python virtual environment. This reuses the TIDL-enabled TVM runtime already present in the Processor SDK rootfs.
cd ~/tidl/audioai-modelzoo
./download_models.sh -y
./setup_venv.sh # creates ~/venv/modelzoo with --system-site-packagesThe download script provides an interactive menu (omit -y). The setup script checks for the TIDL-enabled tvm runtime in the system site-packages, and verifies the venv's pip-installed (upstream) onnxruntime shadows the rootfs onnxruntime-tidl build before finishing.
Activate the venv in each new shell before running the scripts below:
source ~/venv/modelzoo/bin/activatecd ~/tidl/audioai-modelzoo
./jupyter_lab_venv.shThe script displays a highlighted access URL (token: tidl) and pre-loads the inference notebooks in tabs.
./download_models.sh downloads the models and their compiled artifacts to model_artifacts/<TIDL_VER>/<SOC>/. Each artifact folder contains the ONNX model (model/) and the TIDL artifacts (artifacts/).
| Model | Task | Architecture | Params | MACs / call | Input (per call) | Precision / Runtime | Details |
|---|---|---|---|---|---|---|---|
| GCRN-mod-g16 | Speech enhancement | Gated conv encoder–decoder + grouped LSTM (G = 16) | 2.78 M | 5.58 G | Complex STFT, 4 s | INT16 (LSTM FP32), TVM + TIDL | Model card |
| GTCRN | Speech enhancement | Grouped temporal conv + dual-path grouped GRU | 48.8 K | 26.4 M per s of audio | Complex STFT, variable length | FP32, ONNX Runtime (CPU) | Model card |
| VGGish11 | Sound classification (10 classes) | VGG-11-style CNN (8 conv + 2 FC) | 10.8 M | 1.15 G | Log-mel 64 × 126, 4 s | INT8, TVM + TIDL | Model card |
| YAMNet | Sound classification (521 classes) | MobileNetV1 (depthwise-separable) | 3.73 M | 69.2 M | Log-mel 96 × 64, 0.96 s | INT8, TVM + TIDL | Model card |
Note: Parameters and MACs are taken from the ONNX models. MACs count convolution, matrix-multiply and recurrent (LSTM/GRU) layers only. Reference accuracy, model origin and architecture details are in each model card.
Runs on the TVM graph_executor runtime with the TIDL-offloaded artifacts (the DSP-accelerated speech-enhancement demo for AM62D). The model is GCRN-mod-g16 (ase-0212): it keeps the grouped LSTM from the original GCRN paper (G = 16: 16 smaller LSTMs instead of one large LSTM); only the encoder and decoder layers are modified, and its convolutions are not grouped. It is fully offloaded to the C7x as a single TIDL subgraph, so no layers fall back to the ARM CPU.
Model card: inference/gcrn_se/README.md
Inference in Jupyter Notebook: inference/gcrn_se/gcrn_inference.ipynb
Python script version (run in the activated venv):
cd ~/tidl/audioai-modelzoo/inference/gcrn_se
python3 gcrn_infer_audio.py --input sample_wav/noisy.wavRuns FP32 on the ARM CPU via upstream ONNX Runtime (no TIDL offload) — already faster than real-time.
Model card: inference/gtcrn_se/README.md
Inference in Jupyter Notebook: inference/gtcrn_se/gtcrn_inference.ipynb
Python script version (run in the activated venv):
cd ~/tidl/audioai-modelzoo/inference/gtcrn_se
python3 gtcrn_infer_audio.py --input sample_wav/mix.wavModel card: inference/vggish11_sc/README.md
Inference in Jupyter Notebook: inference/vggish11_sc/vggish_inference.ipynb
Python script version (run in the activated venv):
cd ~/tidl/audioai-modelzoo/inference/vggish11_sc
python3 vggish_infer_audio.py --audio-file sample_wav/139951-9-0-9.wavModel card: inference/yamnet_sc/README.md
Inference in Jupyter Notebook: inference/yamnet_sc/yamnet_inference.ipynb
Python script version (run in the activated venv):
cd ~/tidl/audioai-modelzoo/inference/yamnet_sc
python3 yamnet_infer_audio.py --audio-file samples/miaow_16k.wavSteady-state latency, measured with benchmarks/benchmark.py: the session is loaded once, warm-up runs are discarded, and at least 20 inferences (100 for VGGish11/YAMNet) are timed back to back.
| Model | Runtime | Audio / call (s) | Mean latency (ms) | Real-Time Factor |
|---|---|---|---|---|
| GCRN-mod-g16 (INT16) | TVM + TIDL | 4.00 | 2233.81 | 0.559 |
| GTCRN (FP32) | ONNX Runtime (CPU) | 9.77 | 760.52 | 0.078 |
| VGGish11 (INT8) | TVM + TIDL | 4.00 | 9.68 | 0.002 |
| YAMNet (INT8) | TVM + TIDL | 0.96 | 4.63 | 0.005 |
Measured on AM62D EVM, SDK 12.2, TIDL 12_00_00_03.
Note: Real-Time Factor (RTF) = mean latency of one model call / audio duration covered by that call. RTF < 1.0 means faster than real-time. Latency covers the model call only (pre/post-processing excluded). Performance metrics may vary depending on system conditions.
To reproduce (in the activated venv on the target):
cd ~/tidl/audioai-modelzoo
python3 benchmarks/benchmark.py # all models
python3 benchmarks/benchmark.py --models gcrn yamnet --iters 50Each model runs in its own subprocess so the C7x is released between models. The results, including cold first-call latency, min/median/P90 and the exact artifact paths, are written to benchmarks/benchmark-results.md (Git-ignored; use --report for another path). The checked-in reference measurements, including A53 load and DDR bandwidth, are in benchmarks/results/am62d-sdk12.2.md.
The per-demo scripts above time one pass in a fresh process, so their numbers include first-call overhead. The GCRN script reports two RTFs. The model RTF divides by the audio actually processed, which is 3 × 4 s = 12 s for the 9.77 s sample: the 4 s chunks overlap by 1 s and the last one is zero-padded. This is the same definition as the table above, so the values are comparable. The file RTF divides by the file duration, so it also counts that overlap and padding.
Full details for each model are in its model card.
- GCRN: https://github.com/JupiterEthan/GCRN-complex. K. Tan and D. Wang, "Learning complex spectral mapping with gated convolutional recurrent networks for monaural speech enhancement," IEEE/ACM TASLP, 2020.
- GTCRN: https://github.com/Xiaobin-Rong/gtcrn. X. Rong et al., "GTCRN: A Speech Enhancement Model Requiring Ultralow Computational Resources," ICASSP 2024.
- VGGish: https://github.com/tensorflow/models/tree/master/research/audioset/vggish. S. Hershey et al., "CNN Architectures for Large-Scale Audio Classification," ICASSP 2017.
- YAMNet: https://github.com/tensorflow/models/tree/master/research/audioset/yamnet, https://github.com/w-hc/torch_audioset. Backbone: A. Howard et al., "MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications," 2017.
If you have any questions or feedback, please visit TI E2E.