Thanks for giving me clarity with the torch.max() ,i will try to get the thresholding working,
With regards to the dataloader,you are right ,when i set the batch size to be 2,it returns [2, 3, 128, 128]