Skip to content

MobileNetV3的HardSwish不支持 #1072

Open
@Yanxingang

Description

@Yanxingang

问题描述

我将MobileNetV3的onnx模型转换为paddle模型,转换命令:
x2paddle --framework=onnx --model=mobilenet.onnx --save_dir=pd_model,出现报错。

  • 错误信息
    ========= 1 OPs are not supported yet ===========
    ========== HardSwish ============
    Traceback (most recent call last):
    File "/usr/local/bin/x2paddle", line 8, in
    sys.exit(main())
    File "/usr/local/lib/python3.9/dist-packages/x2paddle/convert.py", line 501, in main
    onnx2paddle(args.model,
    File "/usr/local/lib/python3.9/dist-packages/x2paddle/convert.py", line 316, in onnx2paddle
    mapper = ONNXOpMapper(model)
    File "/usr/local/lib/python3.9/dist-packages/x2paddle/op_mapper/onnx2paddle/onnx_op_mapper.py", line 39, in init
    raise Exception("Model is not supported yet.")
    Exception: Model is not supported yet.

  • 错误截图
    2024-10-15_16-31

具体信息

  • 转换模型后用处
    • 使用 Paddle 框架/ PaddleInference 推理预测
    • [ x] 使用 Paddle-Lite 做移动端推理
    • 转换预训练参数,再使用 Paddle 进行模型开发
  • 模型来源
    https://github.com/xiaolai-sqlai/mobilenetv3
  • 应用场景
    用于移动端业务下的分类
  • 版本信息
    PaddlePaddle ==2.5.2
    X2Paddle == 1.5.0
    ONNX==14
    [email protected]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions