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.load() does not load datasets with a capital letter #5275

Open
BogueUser opened this issue Feb 5, 2024 · 2 comments
Open

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

BogueUser opened this issue Feb 5, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@BogueUser
Copy link

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

@BogueUser BogueUser added the bug Something isn't working label Feb 5, 2024
@fineguy fineguy self-assigned this Feb 6, 2024
@fineguy
Copy link
Collaborator

fineguy commented Feb 6, 2024

Thanks for reporting this issue!

This is indeed a real problem, we'll need to think if supporting uppercase in tfds.load is possible. In the meanwhile you should stick with lowercase for your dataset names. Sorry for the inconvenience.

@BogueUser
Copy link
Author

Awesome. Thank you for looking into this.

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

No branches or pull requests

2 participants