Tutorials#
Hello, MXA!
Simple guide to quickly benchmark a model using the MemryX Accelerator.
Basic Inference
Learn simple classification with the Neural Compiler & Simulator API.
Classify images using ResNet50 with the Neural Compiler & MXA.
Realtime Inference
Simple end-to-end Depth Estimation using MIDASv2-small in Python & C++.
Single-stream end-to-end Object Detection using YOLOv7-tiny in Python.
Object Detection using CenterNet with cropped pre/post sections in C++.
Pose Estimation using YOLOv8m-pose in Python & C++.
Multi-Stream Applications
MultiStream Object Detection using YOLOv7-tiny in Python & C++.
MultiStream Object Detection using YOLOv8S in Python & C++.
Multi-Model Applications
Perform multi-model inference by chaining
Fun Projects
Play the Chrome Dino game using palm detection powered by the MX3 chip.
Generate stories using the TinyStories model in Python.
Simple Integration
Learn how to integrate the MXA into a popular Face Recognition software.
Before You Start
To complete the tutorials, you may need to install some third-party libraries. Please refer to the Third Party Libraries Installation guide for detailed instructions.
MemryX eXamples
For a complete list of end-to-end example applications, visit the MemryX eXamples GitHub page, where you’ll find full code implementations.
How-To
Learn how to programmatically compile and benchmark a neural network model using MemryX APIs.
Learn how to utilize the neural compiler’s model cropping feature.
This tutorial walks you through the steps of converting a PyTorch model to ONNX.
This tutorial showcases a way of automating dfp compilation with compiler API.
Accuracy Calculation
Classification Accuracy Calculation for the ResNet50 (MLPerf) model.
Compare the accuracy of several Keras models on the MXA and the CPU.
Validate YOLOv8 mean Average Precision (mAP) on the COCO dataset for:
Object detection
Segmentation
Pose estimation
Advanced
Tune the MX3 M.2’s performance higher or lower.
Advanced tutorial for configuring per-layer weight precision settings beyond the default options.
Deploy and test your model on fewer than 4 chips included in the M.2 module.
Learn how and when to use HPOC, demonstrated with YOLOv7.