I'm using Microsoft Custom Vision to build an image classifier. Then, I'm able to download the ONNX file and get probabilities from the Model on a WPF app.
My issue is that I'm not able to get labels for those probabilities.
Under netron.app the neural network looks like this: ONNX model inputs and outputs
but since I'm not having an output that is referencing a string I'm assuming that I can't get the labels from this ONNX. Am I right?
Another hypothesis is to assume that the index on the label file match the output index of the ONNX. But how could I validate that?
it seems like you're using Microsoft Custom Vision to build an image classifier and then exporting the model to ONNX format for use in a WPF app. To map the output probabilities to their corresponding labels, you need to know how the labels are associated with the output indices in the ONNX model.
To validate this assumption, you can perform a simple test. Choose an image that you used during training, run inference on it using your ONNX model, and then check the index with the highest probability in the output tensor. This index should correspond to a line number in your label file, which will give you the associated label.
Here's a simple code snippet in Python