Semantic Segmentation using ONNX Runtime #12909
Unanswered
abenchaaben
asked this question in
Other Q&A
Replies: 1 comment
-
Whatever pre-processing or post-processing you do needs to match exactly what the model requires and how it was trained. e.g. is the ordering RGB or BGR? Is the input in NCHW layout or NHWC? When converting to float do the values need to be normalized and if so what values were used for that when training the model, and are there separate values for each channel or not? I am not familiar with blobFromImage, however the documentation suggests it might swap the R and B channels, but the comment in your code implies it's changing the layout from channels last to channels first, which is a very different operation.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm a noob in using ONNX Runtime. I trained a model using PyTorch then I converted it to ONNX. I'm trying to use ONNX Runtime C++ api to perform a prediction using my model. The idea is to have an image mask as output. I tried to follow some examples of how we use the ONNX Runtime. But I did not succeed in having the right mask as output.
My input image is an RGB of 512x512
Beta Was this translation helpful? Give feedback.
All reactions