Configuration Parsing
Warning:
Invalid JSON for config file config.json
MobileSAM
基于MobileSAM的图像分割Pipeline,支持多种输入提示(框、点、掩码),支持650N/620E系列平台的模型推理。
支持芯片:
- AX650N
- AX620E
- AX630C
支持硬件
原始模型请参考
性能对比
- 输入图片大小 1024x1024
| Chip | Models | Latency (ms) | CMM Usage (MiB) |
|---|---|---|---|
| 650N | mobile_sam_encoder | 49.495 | 48.334 |
| 630C | mobile_sam_encoder | 520.044 | 63.231 |
| 650N | mobile_sam_decoder | 9.930 | 16.703 |
| 630C | mobile_sam_decoder | 36.382 | 14.970 |
模型转换
- 模型转换工具链Pulsar2
- 转换文档Model Convert
环境准备
- NPU Python API: pyaxengine
安装需要的python库
pip install -r requirements.txt
运行
cd python_ax
python3 main.py -i ../images/test.jpg -c 650
- Downloads last month
- -
Model tree for AXERA-TECH/MobileSAM
Base model
qualcomm/MobileSam
