PaddlePaddle / Paddle2ONNX

ONNX Model Exporter for PaddlePaddle
Apache License 2.0
731 stars 172 forks source link

pp-shitu主体检测模型转onnx,提示有算子不支持 #1083

Open huge3286 opened 1 year ago

huge3286 commented 1 year ago

请将下面信息填写完整,便于我们快速解决问题,谢谢! pp-shitu主体检测模型转onnx,提示有算子不支持。

问题描述 (pp) PS D:\PaddleClas\deploy> paddle2onnx --model_dir=./models/picodet_PPLCNet_x2_5_mainbody_lite_v1.0_infer/ --model_filename=inference.pdmodel --params_filename=inference.pdiparams --save_file=./models/picodet_PPLCNet_x2_5_mainbody_lite_v1.0_infer/inference.onnx --opset_version=10 --enable_onnx_checker=True [Paddle2ONNX] Start to parse PaddlePaddle model... [Paddle2ONNX] Model file path: ./models/picodet_PPLCNet_x2_5_mainbody_lite_v1.0_infer/inference.pdmodel [Paddle2ONNX] Paramters file path: ./models/picodet_PPLCNet_x2_5_mainbody_lite_v1.0_infer/inference.pdiparams [Paddle2ONNX] Start to parsing Paddle model... [Paddle2ONNX] LodTensorArray is not supported. [Paddle2ONNX] Oops, there are some operators not supported yet, including conditional_block,lod_array_length,reverse,select_input,tensor_array_to_tensor,while,write_to_array, [ERROR] Due to the unsupported operators, the conversion is aborted.

更多信息 :

报错截图

其他信息

yeliang2258 commented 1 year ago

这个模型中含有控制流及lod tensor,Paddle2ONNX暂时不支持将此模型转换为ONNX

huge3286 commented 1 year ago

这个模型中含有控制流及lod tensor,Paddle2ONNX暂时不支持将此模型转换为ONNX

哦哦,您好,那就是没有办法了是吧。我还想请教一下,如果要单独把这个模型加载写成一个模块函数来调用,除了转ONNX还有什么好的办法吗。

Zheng-Bicheng commented 4 months ago