Output not good, though loss is very less

I’m not sure how your model works, but I assume it’s some kind of segmentation model?
If so, the model might overfit to the majority class, which is the background, as the white lines use very little spatial size compared to the background.
You could try to add weighting to your loss or something like focal loss.

1 Like