KittiSeg icon indicating copy to clipboard operation
KittiSeg copied to clipboard

what is the real of output in kitti_eval.py

Open ywangeq opened this issue 8 years ago • 2 comments

in evaluation fuction ,we can get the output from sess.run, can anyone tell its real meaning? I mean that every elements in the matrix, because if I use output[0][:,k] to de the multiple class , how can I correspond to the original color? The element in the output is the confidence of class (or the index of the class with max confidence?

ywangeq avatar Dec 09 '17 16:12 ywangeq

output[0] is a tensor with shape [xxxx , NUM_CLASSES] , as it is the output of a softmax layer (confidence of each class) , you could simply add an argmax function to get the index of the class with biggest confidence and finally get a tensor with shape [xxx] that you then can reshape to the same shape as your image array [height , width ] PS : you should note that the image that you get is gray scale and all pixels are <= NUM_Classes , so to visualize it you need to map each of those classes to and RGB color for example

obendidi avatar Dec 09 '17 16:12 obendidi

@bendidi ,Thanks for your response, i will check it again. It is not very convenient to check the output of image by print every loop. So i also have some mistakes here and get a image with all orange pixels back! hhhhh, thanks you very very much, i think i can have some ways to debug it !!!!!!

ywangeq avatar Dec 10 '17 04:12 ywangeq