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

TFDS imagenet_resized link broken #3257

Closed
sun2000nian opened this issue May 28, 2021 · 2 comments · Fixed by #3259
Closed

TFDS imagenet_resized link broken #3257

sun2000nian opened this issue May 28, 2021 · 2 comments · Fixed by #3259
Labels
bug Something isn't working

Comments

@sun2000nian
Copy link

Short description
tfds returned 404 when trying to load dataset'imagenet_resized'

  • Does the issue still exists with the last tfds-nightly package (pip install --upgrade tfds-nightly) ?
  • yes

Reproduction instructions

---------------------------------------------------------------------------
DownloadError                             Traceback (most recent call last)
<ipython-input-37-157431618bfb> in <module>()
----> 1 imagenet2012_train = tfds.load('imagenet_resized/64x64')

21 frames
/usr/local/lib/python3.7/dist-packages/tensorflow_datasets/core/download/downloader.py in _assert_status(response)
    257   if response.status_code != 200:
    258     raise DownloadError('Failed to get url {}. HTTP code: {}.'.format(
--> 259         response.url, response.status_code))

DownloadError: Failed to get url https://image-net.org/image/downsample/Imagenet64_train_part1_npz.zip. HTTP code: 404.

Expected behavior
line 50 of file 'datasets/tensorflow_datasets/image_classification/imagenet_resized.py' is

_URL_PREFIX = 'http://www.image-net.org/image/downsample/'

which should be

_URL_PREFIX = 'http://www.image-net.org/data/downsample/'

I changed the url and made it load normally

@sun2000nian sun2000nian added the bug Something isn't working label May 28, 2021
@NikhilBartwal
Copy link
Contributor

Thank you for pointing this out @sun2000nian! I've sent the required PR, changing the URL and re-generating the checksums.

@eliaspo
Copy link

eliaspo commented Apr 4, 2022

update tensorflow-datasets version to 4.5.2 with this code:

pip install tensorflow-datasets==4.5.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants