Python Cross Entropy Loss Segmentation