Closed AbdelrahimKoura closed 7 months ago
Sorry for the hassle here. It's a bit frustrating that it doesn't work out of the box via torchvision anymore.
This was also shared as an issue here: https://github.com/pytorch/vision/issues/1920
What I did is I downloaded the files from here: https://drive.google.com/drive/folders/0B7EVK8r0v71pWEZsZE9oNnFzTm8?resourcekey=0-5BR16BdXnb8hVj6CNHKzLg
For simplicity, you can also use my link here where I already prepared the directory structure: https://drive.google.com/file/d/1m8-EBPgi5MRubrm6iQjafK2QMHDBMSfJ/view?usp=share_link
Download that zip file and place it in the celeba
folder. Then unzip img_align_celeba.zip
. And it should work:
Let me know in case it still doesn't work, and please feel free to reopen this issue then.
To load dataset using this statement celeba_train_dataset = torchvision.datasets.CelebA( image_path, split='train', target_type='attr', download=True ) dataset can not load why?