tensorflow / tensorflow/datasets

tfds.load() does not load datasets with a capital letter

Open
#5,275 2 comments 0 reactions 1 assignee View on GitHub

@fineguy is already working on this.

Since Feb 6, 2024.

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

Description

Short description

Running tfds build Mk0_datasets_builder.py will save to ~/tensorflow_datasets/Mk0
When running tfds.load('Mk0', split='train', shuffle_files=True) to import it, the following error is given.

No registered data_dirs were found in:
        - /home/user/tensorflow_datasets

Renaming the file to mk0 from Mk0 will allow it to load however.

Environment information

  • Operating System: Arch Linux

  • Python version: 3.11.5

  • `tensorflow-datasets version: 4.9.4

  • tensorflow version: 2.14.0

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

  • Yes

Reproduction instructions
Build a dataset with a capital letter in the name then attempt to load with tfds

tfds.load('Mk0', split='train', shuffle_files=True)

Expected behavior
Either tfds build should automatically make the name lowercase or tfds.load() should be able to deal with uppercase letters

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.