Hi, thank you for your response!
I am confused because I thought that the output of a UNET should be [batch_size, # of classes, height, width].
When I print preds.shape right after preds = (preds > 0.5).float(), I get
= Prediction shape: torch.Size([1, 5, 100, 100]). Am I doing something wrong?