(1) I tried to transfer all the python list to np.array but It does not work.
(2) I tried to just use the dataloader without any training but still get memory leaking. Like:
sen12mscr_test = SEN12MSCR(opt.data_root, split=‘test’, cloud_masks=‘s2cloudless_map_mask’)
test_dataloader = torch.utils.data.DataLoader(sen12mscr_test, batch_size=2, shuffle=False, num_workers=0, pin_memory=True)
for pdx, samples in enumerate(test_dataloader):
print(pdx)