I tried by creating my custom dataset loader from the csv file. But it is giving me some error.
Code of the custom dataset loader.
class CustomDataset(torch.utils.data.Dataset):
def __init__(self, csv_path, images_folder, transform = None):

    self.df = pd.read_csv(csv_path)

    self.images_folder = images_folder

    self.transform = transform

def __len__(self):

    return len(self.df)

def __getitem__(self, index):

    filename = self.df[index, "Images"]

    image = PIL.Image.open(os.path.join(self.images_folder, filename))

    if self.transform is not None:

        image = self.transform(image)

    return image

I am getting this error:-
KeyError: (0, ‘Images’)