AttributeError: module 'model' has no attribute 'x2paddle_net'
Created by: zhhezhhe
lib/python3.6/site-packages/x2paddle-0.6.0-py3.6.egg/x2paddle/core/op_mapper.py", line 122, in save_inference_model
inputs, outputs = model.x2paddle_net()
AttributeError: module 'model' has no attribute 'x2paddle_net'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "bin/x2paddle", line 11, in <module>
load_entry_point('x2paddle==0.6.0', 'console_scripts', 'x2paddle')()
File "/lib/python3.6/site-packages/x2paddle-0.6.0-py3.6.egg/x2paddle/convert.py", line 233, in main
onnx2paddle(args.model, args.save_dir, params_merge)
File "/lib/python3.6/site-packages/x2paddle-0.6.0-py3.6.egg/x2paddle/convert.py", line 176, in onnx2paddle
mapper.save_inference_model(save_dir, params_merge)
File "lib/python3.6/site-packages/x2paddle-0.6.0-py3.6.egg/x2paddle/core/op_mapper.py", line 158, in save_inference_model
.format(py_code_dir))
Exception: Paddle code was saved in ./model.py, but seems there's wrong exist, please check model.py manually.