-
Notifications
You must be signed in to change notification settings - Fork 11
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
VALID auto_pad value #382
Comments
Btw as I see this operator just returning constant value? https://github.com/onnx/onnx/blob/2b504f81f1cadb098e69b53b76e4e12b66a3bdbf/onnx/reference/ops/op_constant.py#L57 I can try to add it if you think that it's easy |
However there is a different error that gets reported after:
From the list of values given in the spec, only the "NOTSET" and "SAME_UPPER" values are currently supported. The latest version of the |
Thank you for response, I'll try it |
Found an illustration of how VALID pading works. It seems that with stride=1 this mode is no different from just no padding. So I just removed that parameter and re-converted the onnx weights. After that I ran into a bug during inference, some operators didn't handle int8, so I made a PR with fixes for that: #387 |
Do you have a link to the re-converted weights?
Thanks. Does the model work as intended with those changes applied? |
Yes, it works ok with the example images. I added migan example in comparisons-rten. I have also provided links to images and weights |
I looked at the weights with the netron app and saw that in this padding stride=1, so it seems it doesn't make sense to specify padding='valid'. So I removed the parameter in this line of code Moreover on my machine with this parameter I get an error when trying to convert weights. Maybe this parameter is for older versions of packages? |
btw the author refers to this code and it doesn't have this parameter |
I found an interesting model for removing objects from image. I'm going to add it to comparisons-rten repo, I already prepared python code. But I got an error with converting:
weights link
The text was updated successfully, but these errors were encountered: