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

Error while downloading the dataset #11

Closed
serhan-gul opened this issue Apr 11, 2016 · 2 comments
Closed

Error while downloading the dataset #11

serhan-gul opened this issue Apr 11, 2016 · 2 comments

Comments

@serhan-gul
Copy link

When I try to download the dataset, I get a KeyError about content-length. What might be the cause of it? Below is error message:

$ python download.py --datasets celebA
Traceback (most recent call last):
  File "download.py", line 121, in <module>
    download_celeb_a('./data')
  File "download.py", line 65, in download_celeb_a
    filepath = download(url, dirpath)
  File "download.py", line 30, in download
    filesize = int(u.headers["Content-Length"])
  File "/home/guel/anaconda/lib/python2.7/rfc822.py", line 393, in __getitem__
    return self.dict[name.lower()]
KeyError: 'content-length'
@carpedm20
Copy link
Owner

You may not able to connect https://www.dropbox.com/sh/8oqt9vytwxb3s4r/AADIKlz8PR9zr6Y20qbkunrba/Img/img_align_celeba.zip?dl=1&pv=1.

You can manually download the file if download.py doesn't work and you can reference https://github.com/carpedm20/DCGAN-tensorflow/blob/master/download.py#L64

@crizCraig
Copy link
Contributor

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

No branches or pull requests

3 participants