简体   繁体   中英

How do I set manage the path of CelebA dataset on my computer to let pytorch work with it?

Since the limitation of Google Drive, I can't download CelebA using this code:

torchvision.datasets.CelebA(root='E:/BaiduNetdiskDownload', download=True, transform=transform, target_type=target_type)

So I downloaded the dataset to my computer. There are some zip files and 7z files in it, and I don't know whether I should unzip them, of which ones of them I should unzip. I don't want to stuck at such a low-level problem, so can anyone tell me how should I manage the downloaded CelebA?

在此处输入图像描述

Download the dataset, unzip the img_align_celeba.zip , and put other files as shown in the image. Put all about files in a folder called celeba , and when using the dataset with torchvision.datasets.CelebA , root will be the parent directory of celeba .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM