移动端推理引擎通用性小测

移动端推理引擎通用性小测

推理引擎

引擎公司Commit id(或Tag)链接使用方法
MNN阿里巴巴2.6.0https://github.com/tensorflow/tensorflow/tree/v2.13.0-rc1https://mnn-docs.readthedocs.io/en/latest/start/overall.html
TensorFlow Lite谷歌v2.13.0-rc1https://github.com/tensorflow/tensorflow/tree/v2.13.0-rc1https://tensorflow.google.cn/lite/performance/benchmarks?hl=zh-cn
Paddle Lite百度v2.13-rchttps://github.com/PaddlePaddle/Paddle-Lite/tree/v2.13-rchttps://github.com/PaddlePaddle/Paddle-Lite/blob/v2.13-rc/README.md
NCNN腾讯20230517https://github.com/Tencent/ncnn/tree/20230517https://github.com/Tencent/ncnn/wiki/how-to-build
TNNfbe15fe6e7eb3858fd356b6d189a48821d2e9d49https://github.com/Tencent/TNN/tree/fbe15fe6e7eb3858fd356b6d189a48821d2e9d49https://github.com/Tencent/TNN/blob/fbe15fe6e7eb3858fd356b6d189a48821d2e9d49/doc/cn/get_started.md
MindSpore Lite华为v2.0.0-rc1https://github.com/mindspore-ai/mindspore/tree/v2.0.0-rc1https://www.mindspore.cn/lite/docs/en/master/use/build.html

测试模型

类别模型地址输入尺寸
视觉分类MobileNet-V2https://github.com/onnx/models/blob/main/vision/classification/mobilenet/model/mobilenetv2-10.onnx1,3,224,224
ResNet50-V1https://github.com/onnx/models/blob/main/vision/classification/resnet/model/resnet50-v1-7.onnx1,3,224,224
SqueezeNet-V1.1https://github.com/onnx/models/blob/main/vision/classification/squeezenet/model/squeezenet1.1-7.onnx1,3,224,224
检测分割FasterRCNN-12https://github.com/onnx/models/blob/main/vision/object_detection_segmentation/faster-rcnn/model/FasterRCNN-12.onnx3,224,224
超分辨率SuperResolution-10https://github.com/onnx/models/blob/main/vision/super_resolution/sub_pixel_cnn_2016/model/super-resolution-10.onnx1,1,224,224
文本GPTGPT-2https://github.com/onnx/models/blob/main/text/machine_comprehension/gpt-2/model/gpt2-10.onnx1,8,56
BertBertsquad-12https://github.com/onnx/models/blob/main/text/machine_comprehension/bert-squad/model/bertsquad-12.onnxinput_ids:0=1,256 input_mask:0=1,256 segment_ids:0=1,256 unique_ids_raw_output___9:0=1

模型支持情况

CPU 运行

模型MNNTensorFlow LitePaddle LiteTNNMindSpore LiteNCNN
MobileNet-V2OOOXOO
ResNet50-V1OOOOOO
SqueezeNet-V1.1OOOOOO
FasterRCNN-12OXXXXX
SuperResolution-10OOOOOO
GPT-2OXXXOX
Bertsquad-12OXXXXX

GPU 运行 (OpenCL 或 Vulkan)

模型MNNTensorFlow LitePaddle LiteTNNMindSpore LiteNCNN
MobileNet-V2OXOXOO
ResNet50-V1OXOOOO
SqueezeNet-V1.1OOOOOO
FasterRCNN-12XXXXXX
SuperResolution-10OOOXOO
GPT-2OXXXXX
Bertsquad-12OXXXXX

结论与后续

CPUGPU视觉文本
MNN7/76/75/52/2
Paddle-Lite4/74/74/50/2
TNN3/73/73/50/2
Mindspore-Lite5/73/74/51/2
NCNN4/74/74/50/2
Tensorflow-Lite4/72/74/50/2
  • MNN 全部模型均支持CPU运行,但GPU 跑 FasterRCNN12 出现错误(已于 2.6.2 修正)
  • 其他推理引擎对 视觉类模型支持较好,文本类模型支持较弱。
  • 带控制流的ONNX模型仅 MNN 转换运行成功
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值