Open mrgloom opened 6 years ago
Hey @mrgloom are you able to solve this question? I actually have a related question: Is the values of heat map inter-comparable? I.e. if the max value of heat map 1 is 34, and the max value of heat map 2 is 19, can we see that the max value cell of heat map 1 contribute more to the final class score than heat map 2?
I feel like the answer is yes, but was having a hard time justifying this. Let me know your thoughts on this!
For example I have 2 classes and for single image I have heatmap with shape [H,W,N_CLASSES]. I train my model with sigmoid + binary crossentropy. At prediction time when I use larger image as network input, at each pixel I want my classes to be exclusive, so I need to compare heatmap values with
np.argmax
to get 'best' class, so my questions is values in heatmaps are really comparable?I tried to dump min, max values of heatmap for single image:
As I can see range of values are different and heatmaps are not normalized.
Is there a way to normalize all planes of heatmap to [0,1] range and make them comparable?