Open PhilCuriosity opened 3 years ago
完整报错:
d:\softwarework\anaconda3\lib\site-packages\urllib3\util\selectors.py:14: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working
from collections import namedtuple, Mapping
d:\softwarework\anaconda3\lib\site-packages\urllib3_collections.py:2: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working
from collections import Mapping, MutableMapping
Traceback (most recent call last):
File "d:\softwarework\anaconda3\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "d:\softwarework\anaconda3\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "D:\SoftwareWork\Anaconda3\Scripts\paddle2onnx.exe__main__.py", line 7, in
@PhilCuriosity maskrcnn包含控制流op,目前paddle2onnx尚不支持。
@PhilCuriosity maskrcnn包含控制流op,目前paddle2onnx尚不支持。 好的,谢谢
先使用PaddleDetection 中自带export_model 代码导出为inference_model
然后使用下面命令转onnx:
paddle2onnx --model_dir mask_rcnn_r50_fpn_2x --model_filename mask_rcnn_r50_fpn_2x/__model__ --params_filename mask_rcnn_r50_fpn_2x\__params__ --save_file onnx_file.onnx --opset_version 12 --enable_onnx_checker True
报错为:raise NotImplementedError(error_info) NotImplementedError: There's 4 ops are not supported yet =========== less_than =========== =========== logical_not =========== =========== conditional_block =========== =========== assign =========== 是我命令用的不对吗