Hi @Usama_Hasan
I have tried with only folder name which has all images but still, I am getting the error.
RuntimeError: Found 0 files in subfolders of: D:\MS_Program\DR\Code\train
Supported extensions are: .jpg,.jpeg,.png,.ppm,.bmp,.pgm,.tif,.tiff,.webp
while train folder has all the images which I want read by the program.
Sample: code:
transform = transforms.Compose([transforms.Resize((512,512)), transforms.ToTensor()])
images = []
images.append(ImageFolder(image_folders), transform=transform)
datasets = torch.utils.data.ConcatDataset(images)