I have an image dataset so I load it with pytorch in this manner:
training_dataset = datasets.ImageFolder(path)
train_set = torch.utils.data.DataLoader(training_dataset)
my train_set
is a torch.dataloader.DataLoader
however I want to get sy.BaseDataset
more details
So please how can I transfrom my dataset knowing that
dataset = sy.BaseDataset(data, target)
So how extracting data and target knowing that the name of directory is the label(target) ?
Thanks