Loss Function for Semantic Segmentation

This is from the Image_segmentation_Unet assignment.