转eco的onnx报错
Created by: thunder95
ONNX模型: ECO 视频分类 报错信息: /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/sklearn/externals/joblib/externals/cloudpickle/cloudpickle.py:47: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp paddle.version = 1.8.0 Now translating model from onnx to paddle. model ir_version: 4, op version: 9 shape inferencing ... shape inferenced. Now, onnx2paddle support convert onnx model opset_verison [9],opset_verison of your onnx model is 9, automatically treated as op_set: 9. Total nodes: 138 Nodes converting ... convert failed node:355, op_type is Pad Traceback (most recent call last): File "/opt/conda/envs/python35-paddle120-env/bin/x2paddle", line 10, in sys.exit(main()) File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/x2paddle/convert.py", line 269, in main onnx2paddle(args.model, args.save_dir, params_merge) File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/x2paddle/convert.py", line 185, in onnx2paddle mapper = ONNXOpMapper(model) File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/x2paddle/op_mapper/onnx2paddle/onnx_op_mapper.py", line 42, in init func(node) File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/x2paddle/op_mapper/onnx2paddle/opset9/opset.py", line 73, in run_mapping res = func(*args, **kwargs) File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/x2paddle/op_mapper/onnx2paddle/opset9/opset.py", line 437, in Pad attr['paddings'] = paddings UnboundLocalError: local variable 'paddings' referenced before assignment