Repository navigation
quantized .pte model for image classification with Ethos-U55 or Cortex M CPU #16854
Replies: 3 comments
|
I am not sure if you have seen the examples here: https://github.com/pytorch/executorch/tree/main/examples/arm/image_classification_example_ethos_u |
|
The ExecuTorch repo has pre-quantized .pte examples in the examples/ directory. examples/arm/ From the executorch rootpython examples/arm/aot_arm_compiler.py For a minimal classification example to verify the toolchain first, try MobileNetV2 The examples/arm/README.md also has links to pre-built .pte files for CI testing. |
|
Hi @xianghui-renesas, MobileNetV2 is a good starting point. The repository provides export flows to generate a quantized After completing the Arm environment setup, the current # Ethos-U55 with 128 MACs
python -m backends.arm.scripts.aot_arm_compiler \
--model_name=mv2 \
--delegate \
--quantize \
--target=ethos-u55-128 \
--output=mv2_ethos_u55.pte
# Cortex-M55 CPU using CMSIS-NN
python -m backends.arm.scripts.aot_arm_compiler \
--model_name=mv2 \
--quantize \
--target=cortex-m55 \
--output=mv2_cortex_m55.pteFor classification accuracy, supply representative, preprocessed calibration inputs through Two clarifications to the earlier replies:
Which board/SoC and ExecuTorch version are you using? For an Ethos-U55 |
Uh oh!
There was an error while loading. Please reload this page.
Hi, can you share any quantized .pte model for image classification with Ethos-U55 or Cortex M CPU? Appreciate your response!
All reactions