python - How do I load the CelebA dataset on Google Colab ...
stackoverflow.com › questions › 65528568Jan 01, 2021 · Try the following: from torchvision.datasets import ImageFolder from torch.utils.data import DataLoader from torchvision import transforms # Root directory for the dataset data_root = 'data/celeba' # Spatial size of training images, images are resized to this size. image_size = 64 # batch size batch_size = 10 transform=transforms.Compose([ transforms.Resize(image_size), transforms.CenterCrop ...