tensorflow / tensorflow/datasets

Allow avoiding the download of extra, when loading the train split of SVHN

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

Nobody has claimed this yet.

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

Description

Is your feature request related to a problem? Please describe.
I am frustrated when I want to load the train split of SVHN on a new server, because it will always also download the extra split, which is huge.

Describe the solution you'd like
It would be nice to have a flag in the load function, like download_split_only, that allows to only download (and prepare) the necessary splits as specified in the split argument of the function.

Describe alternatives you've considered
I might be able to manually download only the data I need, but I would like to avoid this solution.

Additional context
You can see the problem happening in this colab notebook:

import tensorflow_datasets as tfds

ds = tfds.load(
    'svhn_cropped',
    split='train',
    as_supervised=True,
)

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 tfds.load('svhn_cropped', split='train', as_supervised=True) example and inspect the SVHN dataset loading and preparation path. Determine where the requested split is handled, then verify that loading train downloads and prepares only the requested split while preserving existing behavior for other loads.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tensorflow
Domain
data
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.