tensorflow / tensorflow/datasets

tfds url error with imagenet_resized

Open
#3,713 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

There is a problem with the url of imagenet_resized, I am running on a colab notebook with this code:

import tensorflow as tf
import tensorflow_datasets as tfds

imagenet_origin = tfds.load(name="imagenet_resized", split="train", data_dir="~/tensorflow_datasets")

This gives an error:

/usr/local/lib/python3.7/dist-packages/tensorflow_datasets/core/download/downloader.py in _assert_status(response)
257 **kwargs: Additional kwargs to forward to request.get.
258
--> 259 Returns:
260 response: The url response with .url and .header attributes.
261 iter_content: A bytes iterator which yield the content.
DownloadError: Failed to get url https://image-net.org/image/downsample/Imagenet64_train_part1_npz.zip. HTTP code: 404.

Instead of https://image-net.org/image/downsample/Imagenet64_train_part1_npz.zip,
I think the correct url should be: https://image-net.org/data/downsample/Imagenet64_train_part1_npz.zip

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.

Research direction

Start by reproducing the failure with the provided tfds.load call for imagenet_resized and inspect the dataset's download URL configuration. Verify that the Imagenet64 archive is available at the proposed /data/downsample path, then confirm that the dataset downloads successfully without the 404 error.

Written by the indexing model from the issue text.

Assessment

Tech stack
machine-learning, python
Domain
data, machine-learning
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.