Replies: 2 comments 4 replies
-
Hi @admyber, I'm moving this issue into our discussion forum and routing it to the appropriate team members |
Beta Was this translation helpful? Give feedback.
-
Hi @admayber, Not familiar with the specifics of OpenCV's pitched memory, but let me take a shot at this question: Does ONNX/ORT support padded images? - Yes. Is it possible to achieve this behavior dynamically such that input images could be handled correctly regardless of being padded or not? - Yes, to an extent. Image based ONNX ops have an attribute called Hopefully this clarifies. If it doesn't, can you give us a more concrete example of your use-case? If possible, sharing an ONNX model and centering the discussion around that will definitely help. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We recently found some discrepancies in the behavior of our models in the cuda EP, which we identified as being an issue related to the "pitch" (padding) of an input image in cuda memory. Seems that OpenCV, by default, will use pitched memory, whereas by default our traced models were not handling the padding correctly.
I was unable to find any documentation on this, so wanted to get clarification on some points related to this. Does onnx or ORT have the ability to handle inputs with padding? If so, is it possible to achieve this behavior dynamically such that input images could be handled correctly regardless of being padded or not?
Beta Was this translation helpful? Give feedback.
All reactions