[英]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:由于 Google Drive 的限制,我无法使用以下代码下载 CelebA:
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.
里面有一些zip文件和7z文件,不知道要不要解压,应该解压哪些。 I don't want to stuck at such a low-level problem, so can anyone tell me how should I manage the downloaded CelebA?
我不想纠结这么低级的问题,谁能告诉我应该如何管理下载的CelebA?
Download the dataset, unzip the img_align_celeba.zip
, and put other files as shown in the image.下载数据集,解压缩
img_align_celeba.zip
,然后放入其他文件,如图所示。 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
.将所有 about 文件放在一个名为
celeba
的文件夹中,当使用带有torchvision.datasets.CelebA
的数据集时,root 将是celeba
的父目录。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.