PaddlePaddle / Paddle2ONNX

ONNX Model Exporter for PaddlePaddle
Apache License 2.0
703 stars 162 forks source link

是否支持faster_rcnn_swin_tiny_fpn转onnx #896

Open wobenxiaoyaoKurt opened 1 year ago

wobenxiaoyaoKurt commented 1 year ago

我是在paddleDetection导出的模型 我的导出流程如下: 1.设置配置文件 faster_rcnn_swin_tiny_fpn_3x_coco.yml export_onnx: True batch_size: 1 2.运行paddleDetection的export_model.py !python tools/export_model.py -c configs/faster_rcnn/faster_rcnn_swin_tiny_fpn_3x_coco.yml -o weights=output/faster_rcnn_swin_tiny_fpn_3x_coco/model_final.pdparams --output_dir inference_model 3.安装paddle2onnx pip install paddle2onnx 版本为1.0.0 4.导出ONNX !paddle2onnx --model_dir inference_model/faster_rcnn_swin_tiny_fpn_3x_coco --model_filename model.pdmodel --params_filename model.pdiparams --opset_version 16 --enable_dev_version False --enable_onnx_checker True --save_file faster_rcnn.onnx 5.结果报错 There's 7 ops are not supported yet =========== lod_array_length =========== =========== conditional_block =========== =========== select_input =========== =========== pad =========== =========== tensor_array_to_tensor =========== =========== while =========== =========== write_to_array ===========

按照一些Issue的建议都是设置export_onnx: True就可以了,不知道我的为何依然缺少ops? 请大家帮帮我,Thanks!

yeliang2258 commented 1 year ago

看起来是导出Paddle模型的时候没有设置对参数,导致导出的Paddle模型无法导出为ONNX,麻烦在PaddleDetection下提一个issue

wobenxiaoyaoKurt commented 1 year ago

看起来是导出Paddle模型的时候没有设置对参数,导致导出的Paddle模型无法导出为ONNX,麻烦在PaddleDetection下提一个issue 在那边也提了 没有解决

Zheng-Bicheng commented 1 month ago