Run MobileSAM prompt segmentation on Arm Ethos-U85 with ExecuTorch
Introduction
Understand the MobileSAM deployment workflow
Prepare the ExecuTorch and Arm environment
Export MobileSAM for Ethos-U85
Build and run MobileSAM on the Corstone-320 FVP
Validate the MobileSAM segmentation result
Next Steps
Run MobileSAM prompt segmentation on Arm Ethos-U85 with ExecuTorch
Who is this for?
This Learning Path is for embedded machine learning developers who want to evaluate transformer-based image segmentation on an Arm Ethos-U85 NPU with ExecuTorch.
What will you learn?
After completing this Learning Path, you'll be able to perform the following tasks:
- Identify how the MobileSAM example turns a fixed point prompt and an image into a quantized segmentation mask
- Set up ExecuTorch and the Arm Ethos-U development tools
- Export, build, and run the MobileSAM example on a Corstone-320 Fixed Virtual Platform (FVP)
- Validate quantization quality, Ethos-U delegation, and target mask agreement
Prerequisites
Before starting, you'll need the following prerequisites:
- A Linux development machine with glibc 2.28 or later, or an Apple silicon Mac running macOS 15 or later
- On Linux, libstdc++.so.6 providing GLIBCXX_3.4.26 or later for the Corstone-320 FVP
- Python 3.12 with development headers and virtual-environment support
- Familiarity with PyTorch model export and embedded cross-compilation
Summary
This summary was drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
You’ll deploy MobileSAM prompt segmentation on Ethos-U85 with ExecuTorch and validate its output on the Corstone-320 FVP. First, you’ll prepare the model and export a quantized program with a fixed point prompt. Then, you’ll build the standard Arm runner and pass image tensors through semihosting. Finally, you’ll compare the host and target masks and confirm both intersection over union (IoU) checks reach
0.9.