Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MobileNetV3的HardSwish不支持 #1072

Open
2 tasks
Yanxingang opened this issue Oct 15, 2024 · 0 comments
Open
2 tasks

MobileNetV3的HardSwish不支持 #1072

Yanxingang opened this issue Oct 15, 2024 · 0 comments

Comments

@Yanxingang
Copy link

问题描述

我将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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant