Paddle 使用paddle2onnx转商品识别模型中检测模型ppyolov2_r50vd_dcn_mainbody_v1.0_infer为onnx,3个操作不支持!

gab6jxml  于 2021-12-07  发布在  Java
关注(0)|答案(3)|浏览(486)

(paddle) D:\vison_software\paddle\Paddle2ONNX-develop>paddle2onnx --model_dir D:\vison_software\paddle\Paddle2ONNX-develop\models\ppyolov2_r50vd_dcn_mainbody_v1.0_infer\ --save_file onnx_models/resnet50_onnx/det_model.onnx --opset_version 11 --enable_onnx_checker True --model_filename inference.pdmodel --params_filename inference.pdiparams
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\paddle\Scripts\paddle2onnx-script.py", line 33, in
sys.exit(load_entry_point('paddle2onnx==0.6', 'console_scripts', 'paddle2onnx')())
File "C:\ProgramData\Anaconda3\envs\paddle\lib\site-packages\paddle2onnx-0.6-py3.7.egg\paddle2onnx\command.py", line 142, in main
File "C:\ProgramData\Anaconda3\envs\paddle\lib\site-packages\paddle2onnx-0.6-py3.7.egg\paddle2onnx\command.py", line 114, in program2onnx
File "C:\ProgramData\Anaconda3\envs\paddle\lib\site-packages\paddle2onnx-0.6-py3.7.egg\paddle2onnx\convert.py", line 77, in program2onnx
File "C:\ProgramData\Anaconda3\envs\paddle\lib\site-packages\paddle2onnx-0.6-py3.7.egg\paddle2onnx\convert.py", line 32, in export_onnx
File "C:\ProgramData\Anaconda3\envs\paddle\lib\site-packages\paddle2onnx-0.6-py3.7.egg\paddle2onnx\graph\onnx_graph.py", line 229, in build
File "C:\ProgramData\Anaconda3\envs\paddle\lib\site-packages\paddle2onnx-0.6-py3.7.egg\paddle2onnx\graph\onnx_graph.py", line 75, in init
File "C:\ProgramData\Anaconda3\envs\paddle\lib\site-packages\paddle2onnx-0.6-py3.7.egg\paddle2onnx\graph\onnx_graph.py", line 185, in update_opset_version
File "C:\ProgramData\Anaconda3\envs\paddle\lib\site-packages\paddle2onnx-0.6-py3.7.egg\paddle2onnx\op_mapper\op_mapper.py", line 119, in get_recommend_opset_version
File "C:\ProgramData\Anaconda3\envs\paddle\lib\site-packages\paddle2onnx-0.6-py3.7.egg\paddle2onnx\op_mapper\op_mapper.py", line 160, in check_support_status
NotImplementedError:
There's 3 ops are not supported yet
=========== conditional_block ===========
=========== logical_not ===========
=========== select_input ===========

np8igboo

np8igboo1#

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档常见问题历史IssueAI社区来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQGithub Issue and AI community to get the answer.Have a nice day!

vddsk6oq

vddsk6oq2#

Duplicate of PaddlePaddle/Paddle2ONNX#303

此问题原因是导出模型时,将控制流导了出来,需要PaddleClas对齐PaddleDetection导出PPYOLOv2的方式

k5ifujac

k5ifujac3#

你好,主体检测模型已经更新,感谢反馈

相关问题