Coder Social home page Coder Social logo

paddle转onnx出错 about paddle2onnx HOT 7 OPEN

paddlepaddle avatar paddlepaddle commented on May 22, 2024
paddle转onnx出错

from paddle2onnx.

Comments (7)

leeburt avatar leeburt commented on May 22, 2024 1

能说的具体一点吗?models1.5是指? PaddleDetection的版本不需要指定版本吗?

from paddle2onnx.

aixier avatar aixier commented on May 22, 2024

用paddle1.5.1训练了一个一样的问题

from paddle2onnx.

aixier avatar aixier commented on May 22, 2024

这个模块没有人维护了么@cjt222

from paddle2onnx.

cjt222 avatar cjt222 commented on May 22, 2024

可以尝试使用models1.5下的PaddleDetection训练yolov3,由于PaddleDetection做了一些更新,造成了一些OP的不适配

from paddle2onnx.

cjt222 avatar cjt222 commented on May 22, 2024

现在代码中已修复,你可以更新下代码,下载最新的PaddleDetection的模型进行转换

from paddle2onnx.

leeburt avatar leeburt commented on May 22, 2024

现在代码中已修复,你可以更新下代码,下载最新的PaddleDetection的模型进行转换

我用的是paddlepaddle1.6.2版本,onnx是1.6.0版本。PaddleDetection和PaddleONNX都是最新的版本。但是报错如下,模型是mobilenet yolov3
`load the model parameter done.
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle2onnx-0.1-py3.7.egg/fluid_onnx/detection_ops.py:845: UserWarning: The parameter normalized of multiclass_nms OP of Paddle is False, which has diff with ONNX. Please set normalized=True in multiclass_nms of Paddle
The operator sets to run test case.
{'depthwise_conv2d', 'transpose2', 'concat', 'elementwise_add', 'scale', 'multiclass_nms', 'batch_norm', 'nearest_interp', 'yolo_box', 'leaky_relu', 'conv2d', 'relu'}
Traceback (most recent call last):
File "/opt/conda/envs/python35-paddle120-env/bin/paddle2onnx", line 11, in
load_entry_point('paddle2onnx==0.1', 'console_scripts', 'paddle2onnx')()
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle2onnx-0.1-py3.7.egg/fluid_onnx/fluid_to_onnx.py", line 230, in main
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle2onnx-0.1-py3.7.egg/fluid_onnx/fluid_to_onnx.py", line 194, in convert
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/onnx/checker.py", line 91, in check_model
C.check_model(model.SerializeToString())
onnx.onnx_cpp2py_export.checker.ValidationError: Node () has input size 2 not in range [min=3, max=4].

==> Context: Bad node spec: input: "leaky_relu_6.tmp_0" input: "nearest_interp_0.tmp_0@scales" output: "nearest_interp_0.tmp_0" op_type: "Resize" attribute { name: "mode" s: "nearest" type: STRING }`

from paddle2onnx.

cjt222 avatar cjt222 commented on May 22, 2024

测试时使用的onnx 1.5.0版本,onnx1.6版本有些OP做过改动,之后会更新升级。可以先使用onnx 1.5.0进行转换试一下

from paddle2onnx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.