I am trying to implement something like a fully convolutional network where the last convolution layer uses a 1x1 filter size and displays the 'score' tensor. The rating tensor has the form [Lot, height, width, num_classes].
My question is which function in tensorflow can apply the softmax operation for each pixel, regardless of the other pixels. The tf.nn.softmax operations do not seem to be for this purpose.
If there are no such options, I think I should write it myself.
Thanks!
UPDATE: if I need to realize myself, I think I may need to change the input tensor to [N, num_claees], where N = Batch x width x height, and apply tf.nn.softmax and then change it back, Does it make sense ?
tensorflow image-segmentation softmax
Wei liu
source share