dataset = datasets.ImageFolder(root='/data_path', transform=transform)
After the above code, how can I split the dataset into 20 percent for testing and 80 percent for training and load into torch.utils.data.DataLoader?
dataset = datasets.ImageFolder(root='/data_path', transform=transform)
After the above code, how can I split the dataset into 20 percent for testing and 80 percent for training and load into torch.utils.data.DataLoader?
what should be the root directory parameter in torchvision.datasets.ImageFolder on google colab
what should be the root= ‘data_path’ on google colab…?
perhaps the code changed but that link has no mention of ImageFolder