🛠 Inférence de réseau de neurones sur le C7x+MMA avec edgeai-tidl-tools

BeagleBone AI-64 (TI TDA4VM / J721E) · avance · Schéma : IMG-beaglebone-ai64-avance-1-inference-edgeai-tidl-c7x-mma.svg — BeagleBone AI-64 avec image caméra encadrant un objet (classe et score affichés), flux annoté modèle quantisé INT8 → TIDL → accélérateur C7x+MMA 8 TOPS.

Objectives

Move beyond CPU emulation: install the TI edgeai-tidl-tools stack (the J721E/TDA4VM is an officially supported device), retrieve pre-quantized models from the Edge AI Model Zoo, and run classification/detection on the C7x+MMA accelerator (~8 TOPS INT8) using the TIDL runtime. This tutorial justifies the purchase of this board.

Hardware

Complete Code

sudo apt update && sudo apt install -y python3-pip git python3-venv
git clone --depth 1 https://github.com/TexasInstruments/edgeai-tidl-tools
cd edgeai-tidl-tools
# Suivre le README pour le setup aarch64 ON-DEVICE (script osd/setup.sh) ;
# les versions exactes d'API bougent, rester sur un tag stable (ex. 10_01_00_02).
export OS_ARCH=aarch64
cd examples/osd && sudo ./setup.sh && cd ../..
sudo ./get_models.sh            # modèles pré-quantisés du Model Zoo

# Exemple de classification sur le C7x-MMA (cible SoC, pas CPU)
sudo ./tidl_classification \
  -t 1 -m mobilenet-v2-12 \
  -l ../../dl_test_lists/labels.txt \
  -i ../../test_images/ -b ../../model_zoo/

# Vérifier que l'accélérateur travaille (pas les A72)
htop   # les 2 Cortex-A72 doivent rester majoritairement inactifs

Expected Verification

The benchmark displays a throughput (FPS or inferences/s) significantly higher than what the CPU would achieve, and the runtime log indicates execution on the target SoC with C7x/MMA offload. The classes and scores for the test image are output correctly.

Common Errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials