Paddle2ONNX icon indicating copy to clipboard operation
Paddle2ONNX copied to clipboard

官方模型:ppmatting-hrnet_w18-human_512导出为onnx失败

Open xdg2016 opened this issue 1 year ago • 3 comments

请将下面信息填写完整,便于我们快速解决问题,谢谢!

问题描述 官方的ppmatting-hrnet_w18-human_512的Inference模型转成onnx时,报pool2d节点错误,无法转换。已经按照建议的做法,导出成静态模型时,指定输出为1,3,512,512,导出onnx成功,但是测试结果无法和paddleinferenece推理结果对齐,抠图结果边缘过渡是锯齿,不是平滑的过渡。请问最新的版本有没有解决这个问题呢(去ppMatting微信交流群问过没人回复)

更多信息 :

  • 用于部署的推理引擎: onnxruntime
  • 为什么需要转换为ONNX格式: 需要使用onnxruntime做推理
  • Paddle2ONNX版本: 1.0.0rc4
  • 你的联系方式(Email/Wechat/Phone): [email protected]

报错截图 image

其他信息

xdg2016 avatar Dec 15 '23 02:12 xdg2016

Same problem with pp-humanmatting-resnet34_vd and Paddle2Onnx version paddle2onnx-1.0.6.

Steph55 avatar Apr 01 '24 13:04 Steph55

I think the problem has been corrected in the last version (1.0.7), but it is not available in pip install and te following doesn't work: pip install git+https://github.com/PaddlePaddle/[email protected]. How can we get it?

Steph55 avatar Apr 01 '24 15:04 Steph55

@xdg2016 问题解决了吗,我通过paddle转化成onnx模型后,推测效果也会下降

wangkd0 avatar Apr 19 '24 06:04 wangkd0