Hello,
I have large images with their masks. I want to extract overlapping patches, then feed them to the network and at the end reconstruct the masks to calculate the loss based on the whole image.
Because of that I cannot load the whole data in one dataloader since I will lose which patch belongs to which image.
Ideally, I want to make a folder for each image, put the patches and masks to that folder, then feed the batches of that folder to the model, then reconstruct the images and calculate the loss.
I would appreciate it if someone can help me.