@tom thank you. calling the model is working.
In pyplot.plot(mask[0].detach().cpu()) I think you did plot the current mask (ground truth) which is already in the dataset. is that right?
Maybe I didn’t ask my question clearly. I wanted to test the model and display a test image from test_loader and visualise a predicted segmentation mask for this test image to find out is model learned anything or not. (for example like Predicted Mask(U-Net) in fig 3 in this paper 6.