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?
Upon completion of this Learning Path, you will be able to:
- 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 will need the following:
- A Linux development machine or an Apple silicon Mac
- 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.
Frequently asked questions
These FAQs were 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.
python3.12, git, cmake, c++, and either Ninja or Make.ExecuTorch repository root. Activate your Python environment and source examples/arm/arm-scratch/setup_path.sh in the current shell.arm_test/mobilesam_manual/export/ and a reference quantized mask image.arm_test/mobilesam_manual/fvp.log). That log contains the encoded segmentation mask for the visualization tool to decode.--minimum-iou=0.9.