Hi Guys,
I am trying to generate data in parallel using this tutorial. I am using it for image classification problem so I have image data in jpeg format.
I have a very basic doubt, in the below code , the data is being accessed using X = torch.load('data/' + ID + '.pt'), is this some sort of pickling the data or is the general notation for data of every kind.
How to convert my image data in this format(Also is this a better approach or not)?
def __getitem__(self, index):
'Generates one sample of data'
# Select sample
    ID = self.list_IDs[index]
# Load data and get label
    X = torch.load('data/' + ID + '.pt')
    y = self.labels[ID]

    return X, y