Below you can find my code. How can I create the targets for this dataset ?
data_root = "./data/OCT2017/"

train_transform = transforms.Compose([
                                  transforms.Resize(img_size),
                                  transforms.CenterCrop(img_size),
                                  transforms.Grayscale(),
                                  transforms.RandomHorizontalFlip(),
                                  transforms.ToTensor(),
                                  transforms.Normalize([0.5], [0.5]) 
                              ])



test_transform = transforms.Compose([
                                  transforms.Resize(img_size),
                                  transforms.CenterCrop(img_size),
                                  torchvision.transforms.Grayscale(),
                                  transforms.ToTensor(),
                                  transforms.Normalize([0.5], [0.5])
                              ])


train_data = dataset.ImageFolder(root = data_root+ 'train', transform= train_transform)
test_data = dataset.ImageFolder(root = data_root + 'test', transform= test_transform)

trainloader = torch.utils.data.DataLoader(train_data, batch_size=batch_size, shuffle=True)                                
testloader = torch.utils.data.DataLoader(test_data, batch_size=1,shuffle=True)