I am trying to use my custom dataset and hence downloaded the the code data_loading_tutorial available in the Pytorch tutorials.
The code works fine till the line:
transformed_dataset = FaceLandmarksDataset(csv_file=‘faces/face_landmarks.csv’,
_                                           root_dir=‘faces/’,
_                                           transform=transforms.Compose([
Rescale(256),
_                                               RandomCrop(224),
_                                               ToTensor()
_                                           ]))
I skipped the part of manual iteration after that using the for loop and tried to run the rest of the code from
dataloader = DataLoader(transformed_dataset, batch_size=4,
shuffle=True, num_workers=4)
It shows the error : BrokenPipeError: [Errno 32] Broken pipe
To point out more precisely ,I would like to inform that the dataloader object is created. The error is basically created from enumerate(dataloader)
I cannot understand what might be the reason of this. Please suggest a way around this . Thanks !