-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【Hackathon 6th No.56】Add deform conv2d op #1256
【Hackathon 6th No.56】Add deform conv2d op #1256
Conversation
|
另外这个仓库pre-commit还在使用吗,昨天配置的时候一直遇到网络的问题 |
目前PR存在的问题
|
这个确实暂时用不了,先不管他,保持一个文件内的代码格式变化不要太大就好了 |
还有几个问题
|
opset和onnx版本绑定,一个onnx版本对应一个opset,Paddle2ONNX默认从opset7开始支持,目前Paddle2ONNX支持的最高opset是18,因此需要升级 |
可以用netron可视化静态图模型获取 |
@Zheng-Bicheng 那我目前这边测例无法通过就不用改了吗,请麻烦看一下还有哪里需要修改。 目前单测报的是版本不支持的问题:
|
2668a67
to
a28ea04
Compare
我今天会添加Paddle2ONNX对OP19的支持,到时候你再测试下 |
在这个 PR 中更新 opset 版本到支持19 |
a28ea04
to
377ead8
Compare
上面还是报错了,这里有点困惑,其实我上面只输入了三个参数。X W offset,另外的bias和mask其实一开始没填,还是报同样的错。 我参考看了一下conv2d,这里面其实也只有两个输入参数,但是ONNX上是输入参数也是2~3个。
|
这个我看了下好像是第三方库onnx的报错,我再看看原因。 |
补充修复: |
ONNXRuntime暂时没有对DeformConv进行实现,考虑实现后再合入这个PR |
mask = paddle.rand((8, kh * kw, 26, 26)) | ||
weight = paddle.rand((16, 1, kh, kw)) | ||
obj.set_input_data("input_data", input, offset, weight, mask) | ||
obj.run() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest comment out this line, and go ahead on merging this PR.
或者在这里加入一下你的test的名字吧,也不用注释了 |
@Zheng-Bicheng @jzhang533 已注释,麻烦review一下,感谢~ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Details:
add deform conv2d op