@ptrblck I have seen you comment on some similar issues, would you mind giving my code a look to see if there are any issues you can point out? I’ve tried changing the loss function to BCEWithLogitsLoss(), tried adding squeeze() to the output, tried adding nn.Flatten() in my layers but just not getting anywhere with it. My image shape is torch.Size([8, 3, 256, 256]) and label shape is torch.Size([8])