Skip to content
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

CelebA dataset error #2387

Closed
Nilanshrajput opened this issue Jul 3, 2020 · 4 comments
Closed

CelebA dataset error #2387

Nilanshrajput opened this issue Jul 3, 2020 · 4 comments

Comments

@Nilanshrajput
Copy link

🐛 Bug

CelebA Dataset download produce bad zip file

To Reproduce

Steps to reproduce the behavior:

from torchvision.datasets import CelebA import os os.mkdir('Data') liader = CelebA(root = '/Data',download=True)

Environment

On google Colab
Please copy and paste the output from our
`Collecting environment information...
PyTorch version: 1.5.1+cu101
Is debug build: No
CUDA used to build PyTorch: 10.1

OS: Ubuntu 18.04.3 LTS
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
CMake version: version 3.12.0

Python version: 3.6
Is CUDA available: No
CUDA runtime version: 10.1.243
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5

Versions of relevant libraries:
[pip3] numpy==1.18.5
[pip3] torch==1.5.1+cu101
[pip3] torchsummary==1.5.1
[pip3] torchtext==0.3.1
[pip3] torchvision==0.6.1+cu101
[conda] Could not collect`

Additional context

`---------------------------------------------------------------------------
BadZipFile Traceback (most recent call last)
in ()
2 import os
3 #os.mkdir('Data')
----> 4 liader = CelebA(root = '/Data',download=True)

3 frames
/usr/lib/python3.6/zipfile.py in _RealGetContents(self)
1196 raise BadZipFile("File is not a zip file")
1197 if not endrec:
-> 1198 raise BadZipFile("File is not a zip file")
1199 if self.debug > 1:
1200 print(endrec)

BadZipFile: File is not a zip file`

@fmassa
Copy link
Member

fmassa commented Jul 3, 2020

Hi,

Thanks for opening this issue! I believe this is a duplicate of #2317, and should be fixed with #2321 (which I'll be merging today after a rebase)

@fmassa
Copy link
Member

fmassa commented Jul 3, 2020

Closing as a duplicate of #2317

@fmassa fmassa closed this as completed Jul 3, 2020
@Nilanshrajput
Copy link
Author

okay, but I was able to download 3 days ago :) on colab

@fmassa
Copy link
Member

fmassa commented Jul 3, 2020

yeah, it is a problem with Google Drive exceeding quota. We will be raising a more meaningful error message with #2321

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants