tensorflow / tensorflow/datasets
tfds.load() does not load datasets with a capital letter
@fineguy is already working on this.
Since Feb 6, 2024.
- 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
-
tensorflowversion: 2.14.0 -
Does the issue still exists with the last
tfds-nightlypackage (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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.