The model currently outputs a numpy array containing the class for each pixel. I would like to get access to the complete list of all probabilities for all classes for each pixel.
I'd add some people who might be able to help.
Please check the code for details.
https://github.com/tensorflow/models/blob/master/research/deeplab/model.py#L151
You could use the predictions before taking argmax.
Hello ! I have the same question here, I don't really understand how the line that you have specified can answer to the question. Is it possible to change the model so that it can output the class probabilities after exporting the model instead of returning the class of each pixel ?
@younesbelkada currently that line is changed to 163. What you need is the 'predictions' inline 163.
@aquariusjay How to get the class probabilities using forzen_inference_graph.pb. Not able to understand how to get the output of class probabilities in demo.ipynb.
Can this be done by changing OUTPUT_TENSOR_NAME = 'SemanticPredictions:0' to _OUTPUT_PROB_NAME = 'SemanticProbabilities' (# Output name of the exported probabilities). What are SemanticProbabilities?
Thanks in advance
Most helpful comment
Please check the code for details.
https://github.com/tensorflow/models/blob/master/research/deeplab/model.py#L151
You could use the predictions before taking argmax.