报错信息具体如下:
(paddle) D:\Paddle\3.PaddleDetection\PaddleDetection-release-2.5>paddle2onnx --model_dir inference_model\mask_rcnn_r50_1x_coco --model_file model.pdmodel --params_filename model.pdiparams --save_file model.onnx --enable_dev_version True --opset_version 16 --enable_onnx_checker True
[Paddle2ONNX] Start to parse PaddlePaddle model...
[Paddle2ONNX] Model file path: inference_model\mask_rcnn_r50_1x_coco\model.pdmodel
[Paddle2ONNX] Paramters file path: inference_model\mask_rcnn_r50_1x_coco\model.pdiparams
[Paddle2ONNX] Start to parsing Paddle model...
[Paddle2ONNX] Oops, there are some operators not supported yet, including generate_proposals_v2,
[ERROR] Due to the unsupported operators, the conversion is aborted.
问题描述 mask-rcnn模型转换为onnx模型的时候,提示不支持转换的op:generate_proposals_v2,但是我在这个issue上面看说是这个算子已经支持了,同时我在环境路径上也找到了对应的文件。 https://github.com/PaddlePaddle/Paddle2ONNX/pull/636 文件打开也能看到对generate_proposals_v2的支持
报错信息具体如下: (paddle) D:\Paddle\3.PaddleDetection\PaddleDetection-release-2.5>paddle2onnx --model_dir inference_model\mask_rcnn_r50_1x_coco --model_file model.pdmodel --params_filename model.pdiparams --save_file model.onnx --enable_dev_version True --opset_version 16 --enable_onnx_checker True [Paddle2ONNX] Start to parse PaddlePaddle model... [Paddle2ONNX] Model file path: inference_model\mask_rcnn_r50_1x_coco\model.pdmodel [Paddle2ONNX] Paramters file path: inference_model\mask_rcnn_r50_1x_coco\model.pdiparams [Paddle2ONNX] Start to parsing Paddle model... [Paddle2ONNX] Oops, there are some operators not supported yet, including generate_proposals_v2, [ERROR] Due to the unsupported operators, the conversion is aborted.
报错截图
更多信息 :