-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to load CelebA dataset. File is not zip file error. #4
Comments
Thanks for the note, Richard, and I agree, this is definitely frustrating. I was recently teaching a GAN tutorial and had similar issues. Downloading the dataset from the original website can be a bit tedious because it involves several steps. So, for this tutorial, I gathered the relevant files and uploaded it as a zip file to my Google Drive. In case it's useful, it's 1.7 Gb and you only need to unzip it in the current notebook directory (or rather the directory the dataset/dataloader points to): https://drive.google.com/file/d/1m8-EBPgi5MRubrm6iQjafK2QMHDBMSfJ/view?usp=sharing |
Download from your Google Drive and extracted/replace into L17/data folder was simple and worked great. |
I have the same issue but even after downloading from your link, I get an error from the |
Have you checked that all the files are non 0 kb? If download=True it may try to overwrite existing files such that they become empty files. If I have the files as shown below it seems to work (tried it the other day, see https://github.com/rasbt/machine-learning-book/blob/main/ch12/ch12_part1.ipynb) |
I did set So, I wrote a simple workaround to resolve it
|
Thanks for sharing! |
More of a FYI... Tried to reproduce L17 4_VAE_celeba-inspect notebook. When loading dataset, got ERROR "Unable to load CelebA dataset. File is not zip file error" with "BadZipFile: File is not a zip file". Found TorchVision Issue #2262 that identified problem as exceeding daily max quote on GoogleDrive, punted issue back to dataset authors, and closed their issue. A future version of TorchVision should give a better descriptive error message.
So, FYI to your students. Work-around is to...
The text was updated successfully, but these errors were encountered: