Will try this. I am not doing anything wrong here, am I? I mean, the samples look alright to you?
Actually, this is the first time I am doing segmentation and all the code available online are two channels classification.
By the way, I am calculating loss like this: ce = F.cross_entropy(pred, target.squeeze(1).long() * 255)