tensorflow / tensorflow/datasets

imagenet_resized refers to broken URL

Open
#3,563 3 comments 1 reaction 1 assignee View on GitHub

@pierrot0 is already working on this.

Since Dec 1, 2021.

bug
Dominant language
Python
Stars
4.6k
Forks
1.6k
Avg merge
3h 54m
Merged PRs (30d)
1

Description

The imagenet_resized TFDS (v 4.0.1) refers to a stale URL ( https://image-net.org/image/).

This fails:

dataset_builder = tfds.builder('imagenet_resized/32x32')
dataset_builder.download_and_prepare()
ds = dataset_builder.as_dataset('train')
dataset_builder.info

with this message

Downloading and preparing dataset imagenet_resized/32x32/0.1.0 (download: 3.46 GiB, generated: Unknown size, total: 3.46 GiB) to /root/tensorflow_datasets/imagenet_resized/32x32/0.1.0...
Dl Completed...: 0%
0/2 [00:00<?, ? url/s]
Dl Size...:
0/0 [00:00<?, ? MiB/s]
INFO:absl:Downloading http://www.image-net.org/image/downsample//Imagenet32_train_npz.zip into /root/tensorflow_datasets/downloads/image-net.org_image_downs_Image_train_npzCdP5lfQznLH4yDYWhnghDBFDBsDsw2-s1nreN4Ftpek.zip.tmp.e76953fbd3be4d6f8e01437a3e4f9f61...
INFO:absl:Downloading http://www.image-net.org/image/downsample//Imagenet32_val_npz.zip into /root/tensorflow_datasets/downloads/image-net.org_image_downsa_Imagen_val_npzUd6qacwy7f-5phIoBKBRrNdSmATWvi8D721ONSSU53I.zip.tmp.c3fbd53c05c3444cab6b37d626cebb29...
---------------------------------------------------------------------------
DownloadError                             Traceback (most recent call last)
<ipython-input-9-5b37d5c78999> in <module>()
      1 #https://www.tensorflow.org/datasets/catalog/imagenet_resized
      2 dataset_builder = tfds.builder('imagenet_resized/32x32')
----> 3 dataset_builder.download_and_prepare()
      4 ds = dataset_builder.as_dataset('train')
      5 dataset_builder.info

20 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/Imagenet32_train_npz.zip. HTTP code: 404.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.